From 8cfc108276b7ffca86d3f1b2ec71523b795b33d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Thu, 21 Nov 2019 15:33:15 +0000 Subject: [PATCH] text input styling differentiate between input and readonly --- customize.dist/src/less2/include/alertify.less | 11 ++++++++--- customize.dist/src/less2/include/usergrid.less | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/customize.dist/src/less2/include/alertify.less b/customize.dist/src/less2/include/alertify.less index e4e1d24d6..a2418f05a 100644 --- a/customize.dist/src/less2/include/alertify.less +++ b/customize.dist/src/less2/include/alertify.less @@ -209,14 +209,14 @@ } ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ - color: darken(@alertify-input-fg, 15%); + color: @cryptpad_color_grey; opacity: 1; /* Firefox */ } :-ms-input-placeholder { /* Internet Explorer 10-11 */ - color: darken(@alertify-input-fg, 15%); + color: @cryptpad_color_grey; } ::-ms-input-placeholder { /* Microsoft Edge */ - color: darken(@alertify-input-fg, 15%); + color: @cryptpad_color_grey; } input:not(.form-control), textarea { background-color: @alertify-input-fg; @@ -226,6 +226,11 @@ width: 100%; font-size: 100%; padding: @alertify_padding-base; + &[readonly="readonly"]{ + background-color: @alertify-light-bg; + color: @cryptpad_text_col; + border-color: @alertify-input-fg; + } } span.cp-password-container { diff --git a/customize.dist/src/less2/include/usergrid.less b/customize.dist/src/less2/include/usergrid.less index a2d2c8fc5..38202de86 100644 --- a/customize.dist/src/less2/include/usergrid.less +++ b/customize.dist/src/less2/include/usergrid.less @@ -24,7 +24,7 @@ min-width: 0; margin-bottom: 0 !important; &::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ - color: @colortheme_alertify-primary-text; + color: @cryptpad_color_grey; opacity: 1; /* Firefox */ } }