From 5f3cee76019a8b117feee40dc65c10f1bbbb55a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Mon, 9 May 2022 16:32:45 +0100 Subject: [PATCH] Style offline drive --- customize.dist/src/less2/include/colortheme-dark.less | 6 +++--- customize.dist/src/less2/include/colortheme.less | 4 ++-- customize.dist/src/less2/include/drive.less | 11 +++++++++-- customize.dist/src/less2/include/forms.less | 2 ++ 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/customize.dist/src/less2/include/colortheme-dark.less b/customize.dist/src/less2/include/colortheme-dark.less index 777232105..a8d8af45a 100644 --- a/customize.dist/src/less2/include/colortheme-dark.less +++ b/customize.dist/src/less2/include/colortheme-dark.less @@ -193,9 +193,9 @@ @cp_drive-droppable-bg: @cryptpad_color_grey_700; @cp_drive-droppable-fg: @cryptpad_text_col; @cp_drive-infobox-bg: @cryptpad_color_brand_fadest; -@cp_drive-infobox-fg: @cryptpad_text_col; -@cp_drive-warnbox-bg: @cryptpad_color_warn_red; -@cp_drive-warnbox-fg: @cryptpad_text_col; +@cp_drive-infobox-fg: @cryptpad_color_brand_300; +@cp_drive-warnbox-bg: @cryptpad_color_red_fader; +@cp_drive-warnbox-fg: @cryptpad_color_light_red; @cp_drive-tree-branch: @cryptpad_text_col; // Contextmenu diff --git a/customize.dist/src/less2/include/colortheme.less b/customize.dist/src/less2/include/colortheme.less index 5d7374977..e36718df9 100644 --- a/customize.dist/src/less2/include/colortheme.less +++ b/customize.dist/src/less2/include/colortheme.less @@ -193,8 +193,8 @@ @cp_drive-droppable-fg: @cryptpad_text_col; @cp_drive-infobox-bg: @cryptpad_color_brand_fadest; @cp_drive-infobox-fg: @cryptpad_text_col; -@cp_drive-warnbox-bg: @cryptpad_color_warn_red; -@cp_drive-warnbox-fg: @cryptpad_text_col; +@cp_drive-warnbox-bg: @cryptpad_color_light_red_fade; +@cp_drive-warnbox-fg: darken(@cp_alerts-danger-fg, 55%); @cp_drive-tree-branch: @cryptpad_text_col; // Contextmenu diff --git a/customize.dist/src/less2/include/drive.less b/customize.dist/src/less2/include/drive.less index 2dd9bd46d..c7c5617a9 100644 --- a/customize.dist/src/less2/include/drive.less +++ b/customize.dist/src/less2/include/drive.less @@ -486,6 +486,13 @@ font-size: 1.6rem; } } + &.cp-app-drive-readonly { // applied to offline drive (not read-only shared folders) + #cp-app-drive-content-folder { + opacity: 0.5; + } + + // background: contrast(@cp_sidebar-right-bg, darken(@cp_sidebar-right-bg, 10%), lighten(@cp_sidebar-right-bg, 10%)); + } } #cp-app-drive-content { box-sizing: border-box; @@ -503,8 +510,8 @@ position: absolute; z-index: 50; } - &.cp-app-drive-readonly { // XXX DB find new appearance for disabled/read-only drive? - background: contrast(@cp_sidebar-right-bg, darken(@cp_sidebar-right-bg, 10%), lighten(@cp_sidebar-right-bg, 10%)); + &.cp-app-drive-readonly { // XXX DB never applied? + // background: contrast(@cp_sidebar-right-bg, darken(@cp_sidebar-right-bg, 10%), lighten(@cp_sidebar-right-bg, 10%)); } h1 { padding-left: 10px; diff --git a/customize.dist/src/less2/include/forms.less b/customize.dist/src/less2/include/forms.less index 56460e08a..fa51a3c8c 100644 --- a/customize.dist/src/less2/include/forms.less +++ b/customize.dist/src/less2/include/forms.less @@ -295,9 +295,11 @@ font-weight: bold; text-transform: uppercase; cursor: default; + border-radius: @variables_radius; &.cp-banner-danger { background-color: @cp_drive-warnbox-bg; color: @cp_drive-warnbox-fg; + border: 1px solid @cp_drive-warnbox-fg; } &.cp-banner-info { background-color: @cp_drive-infobox-bg;