mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[ADF-2018] Hide details button when it's displayed on a smartphone (#3100)
* [ADF-2018] Hide details button when it's displayed on a smartphone * [ADF-2018] Media query with variables fixed * [ADF-2018] Properly merged
This commit is contained in:
parent
5c4a18dd48
commit
2084748993
@ -129,7 +129,7 @@
|
|||||||
<button mat-menu-item (click)="toolbarColor = 'warn'">Warn</button>
|
<button mat-menu-item (click)="toolbarColor = 'warn'">Warn</button>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
|
|
||||||
<button mat-icon-button (click)="showVersions = !showVersions">
|
<button mat-icon-button (click)="showVersions = !showVersions" class="adf-show-versions-button">
|
||||||
<mat-icon *ngIf="!showVersions">chevron_left</mat-icon>
|
<mat-icon *ngIf="!showVersions">chevron_left</mat-icon>
|
||||||
<mat-icon *ngIf="showVersions">chevron_right</mat-icon>
|
<mat-icon *ngIf="showVersions">chevron_right</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
@ -1,157 +1,163 @@
|
|||||||
$minimumDocumentListWidth: 425px;
|
@mixin adf-file-component-theme($theme) {
|
||||||
|
$minimumDocumentListWidth: 425px;
|
||||||
|
|
||||||
.container {
|
|
||||||
margin: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (max-width: 640px) {
|
|
||||||
.container {
|
.container {
|
||||||
margin: 0;
|
margin: 10px;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.error-message {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.error-message--text {
|
|
||||||
color: #d50000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-not-overlay-viewer {
|
|
||||||
height: 900px;
|
|
||||||
}
|
|
||||||
|
|
||||||
adf-document-list ::ng-deep adf-datatable tr.document-list__create {
|
|
||||||
background: green !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
adf-document-list ::ng-deep adf-datatable tr.document-list__disable {
|
|
||||||
background: red !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
adf-document-list ::ng-deep .adf-datatable-selected > svg {
|
|
||||||
fill: #00bcd4 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-site-container-style {
|
|
||||||
margin-top: 10px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
width: 100%;
|
|
||||||
min-width: 200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-content-service-settings {
|
|
||||||
padding: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-files-toolbar {
|
|
||||||
.adf-toolbar-title {
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
.adf-breadcrumb {
|
|
||||||
width: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-manage-versions-sidebar {
|
|
||||||
width: 300px;
|
|
||||||
color: rgba(0, 0, 0, 0.87);
|
|
||||||
|
|
||||||
.adf-manage-versions-empty,
|
|
||||||
.adf-manage-versions-no-permission {
|
|
||||||
margin: 24px;
|
|
||||||
color: grey;
|
|
||||||
text-align: justify;
|
|
||||||
|
|
||||||
&-icon {
|
|
||||||
display: block;
|
|
||||||
font-size: 48px;
|
|
||||||
margin: 0 auto 32px auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& ::ng-deep .adf-info-drawer-layout-header {
|
@media screen and ($mat-xsmall) {
|
||||||
display: none;
|
.container {
|
||||||
}
|
margin: 0;
|
||||||
|
|
||||||
& ::ng-deep .adf-info-drawer-layout-content {
|
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
.adf-version-upload,
|
|
||||||
.adf-new-version-file-upload {
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
& .mat-raised-button {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.adf-new-version-uploader-container {
|
.adf-show-versions-button.mat-icon-button {
|
||||||
padding: 8px 24px 16px 24px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-no-result__empty_doc_lib {
|
|
||||||
width: 565px;
|
|
||||||
height: 161px;
|
|
||||||
object-fit: contain;
|
|
||||||
margin-top: 17px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-empty_template {
|
|
||||||
text-align: center;
|
|
||||||
margin-top: 20px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-no-result-message {
|
|
||||||
height: 32px;
|
|
||||||
opacity: 0.26;
|
|
||||||
font-size: 24px;
|
|
||||||
line-height: 1.33;
|
|
||||||
letter-spacing: -1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-container-recent {
|
|
||||||
mat-icon {
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.empty-list__block {
|
|
||||||
height: 100%;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: $minimumDocumentListWidth) {
|
|
||||||
adf-document-list ::ng-deep adf-datatable {
|
|
||||||
& ::ng-deep .adf-data-table-cell--fileSize {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.adf-site-container-style {
|
.error-message {
|
||||||
width: 100%;
|
text-align: left;
|
||||||
display: block;
|
}
|
||||||
|
|
||||||
& ::ng-deep .adf-site-dropdown-list-element {
|
.error-message--text {
|
||||||
|
color: #d50000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-not-overlay-viewer {
|
||||||
|
height: 900px;
|
||||||
|
}
|
||||||
|
|
||||||
|
adf-document-list ::ng-deep adf-datatable tr.document-list__create {
|
||||||
|
background: green !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
adf-document-list ::ng-deep adf-datatable tr.document-list__disable {
|
||||||
|
background: red !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
adf-document-list ::ng-deep .adf-datatable-selected > svg {
|
||||||
|
fill: #00bcd4 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-site-container-style {
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
width: 100%;
|
||||||
|
min-width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-content-service-settings {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-files-toolbar {
|
||||||
|
.adf-toolbar-title {
|
||||||
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
.adf-breadcrumb {
|
||||||
|
width: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
adf-file-uploading-dialog ::ng-deep .upload-dialog {
|
.adf-manage-versions-sidebar {
|
||||||
|
width: 300px;
|
||||||
|
color: rgba(0, 0, 0, 0.87);
|
||||||
|
|
||||||
|
.adf-manage-versions-empty,
|
||||||
|
.adf-manage-versions-no-permission {
|
||||||
|
margin: 24px;
|
||||||
|
color: grey;
|
||||||
|
text-align: justify;
|
||||||
|
|
||||||
|
&-icon {
|
||||||
|
display: block;
|
||||||
|
font-size: 48px;
|
||||||
|
margin: 0 auto 32px auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
& ::ng-deep .adf-info-drawer-layout-header {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
& ::ng-deep .adf-info-drawer-layout-content {
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
.adf-version-upload,
|
||||||
|
.adf-new-version-file-upload {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
& .mat-raised-button {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-new-version-uploader-container {
|
||||||
|
padding: 8px 24px 16px 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-no-result__empty_doc_lib {
|
||||||
|
width: 565px;
|
||||||
|
height: 161px;
|
||||||
|
object-fit: contain;
|
||||||
|
margin-top: 17px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-empty_template {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-no-result-message {
|
||||||
|
height: 32px;
|
||||||
|
opacity: 0.26;
|
||||||
|
font-size: 24px;
|
||||||
|
line-height: 1.33;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-container-recent {
|
||||||
|
mat-icon {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-list__block {
|
||||||
|
height: 100%;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: $minimumDocumentListWidth) {
|
||||||
|
adf-document-list ::ng-deep adf-datatable {
|
||||||
|
& ::ng-deep .adf-data-table-cell--fileSize {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-site-container-style {
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
& ::ng-deep .adf-site-dropdown-list-element {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
adf-file-uploading-dialog ::ng-deep .upload-dialog {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
|
||||||
& ::ng-deep adf-file-uploading-list ::ng-deep adf-file-uploading-list-row .adf-file-uploading-row__group {
|
& ::ng-deep adf-file-uploading-list ::ng-deep adf-file-uploading-list-row .adf-file-uploading-row__group {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
@import './app/components/app-layout/app-layout.component.scss';
|
@import './app/components/app-layout/app-layout.component.scss';
|
||||||
|
@import './app/components/files/files.component.scss';
|
||||||
|
|
||||||
|
|
||||||
@import 'content-services/styles/index';
|
@import 'content-services/styles/index';
|
||||||
@import 'process-services/styles/index';
|
@import 'process-services/styles/index';
|
||||||
@ -16,6 +18,7 @@ $theme: mat-light-theme($primary, $accent, $warn);
|
|||||||
|
|
||||||
@include angular-material-theme($theme);
|
@include angular-material-theme($theme);
|
||||||
@include adf-app-layout-theme($theme);
|
@include adf-app-layout-theme($theme);
|
||||||
|
@include adf-file-component-theme($theme);
|
||||||
|
|
||||||
@include adf-content-services-theme($theme);
|
@include adf-content-services-theme($theme);
|
||||||
@include adf-process-services-theme($theme);
|
@include adf-process-services-theme($theme);
|
||||||
|
@ -16,6 +16,7 @@ $theme: mat-light-theme($primary, $accent, $warn);
|
|||||||
|
|
||||||
@include angular-material-theme($theme);
|
@include angular-material-theme($theme);
|
||||||
@include adf-app-layout-theme($theme);
|
@include adf-app-layout-theme($theme);
|
||||||
|
@include adf-file-component-theme($theme);
|
||||||
|
|
||||||
@include adf-content-services-theme($theme);
|
@include adf-content-services-theme($theme);
|
||||||
@include adf-process-services-theme($theme);
|
@include adf-process-services-theme($theme);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user