1 @import '~@proton/styles/scss/lib';
3 .file-browser-header-checkbox-cell,
4 .file-browser-list-checkbox-cell {
5 position: relative; // Because of .expand-click-area
7 inline-size: calc(#{rem(16)} + 2em);
10 .file-browser-header-sort-cell {
16 block-size: rem(44); // set height for thead as well
20 .file-browser-table .filebrowser-list-header-name-cell,
21 .file-browser-table .filebrowser-list-device-name-cell {
22 padding-inline-start: 1em;
25 // in this case, we can remove focus, that is visible via selected row
26 .file-browser-list-item {
33 .file-browser--options-focus {
34 background-color: var(--button-hover-background-color);
35 color: var(--button-hover-text-color);
38 .file-browser-grid-item {
40 background-color: var(--background-norm);
45 background-color: var(--background-weak);
49 outline: 0; // not needed, provided by file-browser-grid-item--highlight
53 .file-browser-grid-item.file-browser-grid-item--highlight {
54 background-color: var(--background-strong);
57 .file-browser-grid-item--thumbnail {
62 .file-browser-grid-item--container {
66 .file-browser-grid-item--select {
68 inset-block-start: 0.2em;
69 inset-inline-start: 0.2em;
72 .file-browser-grid-item--file-name {
78 // On the side is small options button.
80 padding-inline: rem(40);
83 .file-browser-grid-view--signature-icon {
85 inset-inline-start: rem(4);
89 .file-browser-grid-view--options {
91 inset-inline-end: rem(4);
92 inset-block-end: rem(8);
95 .file-browser-list--context-menu-column {
96 inline-size: rem(48); // To fit one small icon + spacing around.
99 .file-browser-list--icon-column {
105 .file-browser-list-item--thumbnail {
112 // Disable drag on image to properly propagate event for drag & drop of item itself.
113 .file-browser-grid-item--thumbnail,
114 .file-browser-list-item--thumbnail {
115 -webkit-user-drag: none;
116 -khtml-user-drag: none;
117 -moz-user-drag: none;
119 user-drag: none; // stylelint-disable-line property-no-unknown
122 .file-browser-list-item--invitation .file-browser-list-item--icon,
123 .file-browser-grid-item--invitation .file-browser-grid-item--icon {
124 filter: grayscale(100%);
127 .file-browser-list-item--accept-decline-cell {
128 inline-size: calc(100% / 6);
131 .file-browser-list-item--decline {
135 // This is the size where Accept / Decline buttons can fit in the list view
136 @include media('>=#{em(1280, 16)}') {
137 body:not(.drawer-is-open) {
138 .file-browser-list-item--accept-decline-cell {
139 inline-size: calc(100% / 6 + 3rem);
142 .file-browser-list-item--decline {
146 .file-browser-list-item--invitation .file-browser-list--context-menu-column {