diff --git a/demo-shell-ng2/app/components/files/files.component.css b/demo-shell-ng2/app/components/files/files.component.css index c75159ff4f..5ee034a195 100644 --- a/demo-shell-ng2/app/components/files/files.component.css +++ b/demo-shell-ng2/app/components/files/files.component.css @@ -20,11 +20,11 @@ height:900px; } -adf-document-list >>> adf-datatable .alfresco-datatable__row--selected .image-table-cell { +adf-document-list >>> adf-datatable tr.is-selected .image-table-cell { position: relative; } -adf-document-list >>> adf-datatable .alfresco-datatable__row--selected .image-table-cell::before { +adf-document-list >>> adf-datatable tr.is-selected .image-table-cell::before { content: "\E876"; /* "done" */ font-family: "Material Icons"; font-size: 24px; diff --git a/ng2-components/ng2-alfresco-core/styles/_mixins.scss b/ng2-components/ng2-alfresco-core/styles/_mixins.scss index e69de29bb2..737d639391 100644 --- a/ng2-components/ng2-alfresco-core/styles/_mixins.scss +++ b/ng2-components/ng2-alfresco-core/styles/_mixins.scss @@ -0,0 +1,28 @@ +@mixin no-select { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +@mixin typo-icon() { + font-family: 'Material Icons'; + font-weight: normal; + font-style: normal; + font-size: 24px; + line-height: 1; + letter-spacing: normal; + text-transform: none; + display: inline-block; + word-wrap: normal; + font-feature-settings: 'liga'; + -webkit-font-feature-settings: 'liga'; + -webkit-font-smoothing: antialiased; +} + +@mixin material-animation-default($duration:0.2s) { + transition-duration: $duration; + transition-timing-function: $animation-curve-default; +} diff --git a/ng2-components/ng2-alfresco-core/styles/_variables.scss b/ng2-components/ng2-alfresco-core/styles/_variables.scss index 3093a068c6..5c9578e7af 100644 --- a/ng2-components/ng2-alfresco-core/styles/_variables.scss +++ b/ng2-components/ng2-alfresco-core/styles/_variables.scss @@ -1,3 +1,7 @@ @import 'colors'; $ADF: adf; + +/* ANIMATION */ +$animation-curve-fast-out-slow-in: cubic-bezier(0.4, 0, 0.2, 1) !default; +$animation-curve-default: $animation-curve-fast-out-slow-in !default; diff --git a/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.css b/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.css deleted file mode 100644 index 5fe1ddaa6d..0000000000 --- a/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.css +++ /dev/null @@ -1,143 +0,0 @@ -:host .full-width { width: 100%; } - -:host .icon-cell { - font-size: 24px; - cursor: default; -} - -:host .image-cell { - width: 24px; - height: 24px; - cursor: default; -} - -:host .data-cell { - cursor: default; -} - -:host .column-header { - cursor: pointer; - user-select: none; - -webkit-user-select: none; /* Chrome/Safari/Opera */ - -moz-user-select: none; /* Firefox */ - -ms-user-select: none; /* IE/Edge */ - -webkit-touch-callout: none; /* iOS Safari */ -} - -/* Empty folder */ - -:host .adf-no-content-container { - padding: 0 !important; -} - -:host .adf-no-content-container > img { - width: 100%; -} -/* Loading folder */ - -:host .adf-loading-content-container { - padding: 0 !important; -} - -:host .adf-loading-content-container > img { - width: 100%; -} - - -:host .ellipsis-cell .cell-container { - height: 1em; -} - -/* visible content */ -:host .ellipsis-cell .cell-value { - display: block; - position: absolute; - max-width: 100%; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - line-height: 1em; /* for vertical align of text */ -} - - -/* cell stretching content */ -:host .ellipsis-cell > div:after { - content: attr(title); - overflow: hidden; - height: 0; - display: block; -} - -/* Utils */ - -:host .non-selectable { - user-select: none; - -webkit-user-select: none; /* Chrome/Safari/Opera */ - -moz-user-select: none; /* Firefox */ - -ms-user-select: none; /* IE/Edge */ - -webkit-touch-callout: none; /* iOS Safari */ -} - -:host .sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0,0,0,0); - border: 0; -} - -.hidden { - display: none; -} - -/* small desktop */ -@media all and (max-width: 1200px) {} - -/* tablet */ -@media all and (max-width: 1024px) {} - -/* mobile phone */ -@media all and (max-width: 768px) { - .desktop-only { - display: none; - } -} - -@media (max-device-width: 768px){ - .desktop-only { - display: none; - } -} - -.mdl-data-table-fix-firefox { - border-collapse: unset; - border-spacing: 0; -} - -.alfresco-datatable__row:focus { - outline-offset: -1px; - outline-width: 1px; - outline-color: rgb(68,138,255); - outline-style: solid; -} - -.alfresco-datatable__row--selected, -.alfresco-datatable__row--selected:hover { - background-color: #e0e0e0; -} - -.adf-upload__dragging > td { - border-top: 1px dashed rgb(68,138,255); - border-bottom: 1px dashed rgb(68,138,255); -} - -.adf-upload__dragging > td:first-child { - border-left: 1px dashed rgb(68,138,255); -} - -.adf-upload__dragging > td:last-child { - border-right: 1px dashed rgb(68,138,255); -} diff --git a/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.html b/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.html index 761ee50957..33977c76a1 100644 --- a/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.html +++ b/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.html @@ -1,28 +1,28 @@
+ | Actions |
|
- {{col.srTitle}} {{col.title}} | -+ | Actions |
---|---|---|---|---|---|
+ |
- {{asIconValue(row,
- col)}}
+ {{ asIconValue(row, col) }}
-
@@ -119,7 +115,7 @@
| ||||
| |