Changeset 3770:75566f4ffead for admin
- Timestamp:
- 07/10/18 13:41:19 (7 years ago)
- Branch:
- default
- Location:
- admin
- Files:
-
- 3 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/_charte.php
r3731 r3770 11 11 12 12 dcPage::check('usage,contentadmin'); 13 $core->auth->user_prefs->addWorkspace('interface'); 13 14 ?> 14 15 <!DOCTYPE html> … … 21 22 <title>Bibliothèque de styles - Dotclear - 2.7</title> 22 23 <link rel="icon" type="image/png" href="images/favicon96-login.png" /> 23 <link rel="stylesheet" href="style/default.css" type="text/css" media="screen" /> 24 <?php 25 $core->auth->user_prefs->addWorkspace('interface'); 24 <?php 25 if ($core->auth->user_prefs->interface->dark_mode) { 26 echo dcPage::cssLoad('style/default-dark.css'); 27 } else { 28 echo dcPage::cssLoad('style/default.css'); 29 } 26 30 if ($core->auth->user_prefs->interface->htmlfontsize) { 27 31 echo -
admin/preferences.php
r3731 r3770 41 41 42 42 $core->auth->user_prefs->addWorkspace('interface'); 43 $user_ui_darkmode = $core->auth->user_prefs->interface->darkmode; 43 44 $user_ui_enhanceduploader = $core->auth->user_prefs->interface->enhanceduploader; 44 45 $user_ui_hidemoreinfo = $core->auth->user_prefs->interface->hidemoreinfo; … … 237 238 # Update user prefs 238 239 $core->auth->user_prefs->accessibility->put('nodragdrop', !empty($_POST['user_acc_nodragdrop']), 'boolean'); 240 $core->auth->user_prefs->interface->put('darkmode', !empty($_POST['user_ui_darkmode']), 'boolean'); 239 241 $core->auth->user_prefs->interface->put('enhanceduploader', !empty($_POST['user_ui_enhanceduploader']), 'boolean'); 240 242 $core->auth->user_prefs->interface->put('hidemoreinfo', !empty($_POST['user_ui_hidemoreinfo']), 'boolean'); … … 527 529 '<h4 id="user_options_interface">' . __('Interface') . '</h4>' . 528 530 531 '<p><label for="user_ui_darkmode" class="classic">' . 532 form::checkbox('user_ui_darkmode', 1, $user_ui_darkmode) . ' ' . 533 __('Activate dark mode') . '</label></p>' . 534 529 535 '<p><label for="user_ui_enhanceduploader" class="classic">' . 530 536 form::checkbox('user_ui_enhanceduploader', 1, $user_ui_enhanceduploader) . ' ' . -
admin/style/default.css
r3769 r3770 886 886 a:visited img { 887 887 border: none; 888 background: in herit; }888 background: initial; } 889 889 890 890 a:hover, … … 1011 1011 border-style: solid; 1012 1012 border-color: #dbdbdb; } 1013 1014 input[type=file] { 1015 color: #323232; 1016 background: #fff; } 1013 1017 1014 1018 input:invalid:not(:required), textarea:invalid:not(:required), select:invalid:not(:required), input:not([type=file]):invalid:not(:focus):not(:required) { … … 2097 2101 padding-bottom: 6px; 2098 2102 font-size: 1em; } 2103 #login-screen input.details-cmd { 2104 width: auto; 2105 margin: 0 5px 0 0; 2106 padding: 0; } 2099 2107 #login-screen #issue { 2100 2108 margin-left: 1.33em; … … 2128 2136 border-radius: 8px; 2129 2137 border: 1px solid #dbdbdb; 2130 display: inline-block; } 2138 display: inline-block; 2139 filter: contrast(100%); } 2131 2140 #icons a:focus { 2132 2141 outline: 0; } … … 2929 2938 .ac_loading { 2930 2939 background: transparent url("loader.gif") right center no-repeat; } 2940 2941 .ac_odd { 2942 background-color: #fff; } 2931 2943 2932 2944 .ac_over { -
admin/style/scss/partials/_auth.scss
r3763 r3770 51 51 font-size: 1em; 52 52 } 53 input.details-cmd { 54 width: auto; 55 margin: 0 5px 0 0; 56 padding: 0; 57 } 53 58 #issue { 54 59 margin-left: 1.33em; -
admin/style/scss/partials/_classes.scss
r3763 r3770 29 29 } 30 30 31 .ac_odd { 32 background-color: $ac-results-background; 33 } 34 31 35 .ac_over { 32 36 color: $ac-results-over; -
admin/style/scss/partials/_forms.scss
r3767 r3770 104 104 border-color: $input-border; 105 105 } 106 input[type=file] { 107 color: $input-file-color; 108 background: $input-file-background; 109 } 106 110 // Special for invalid but not required fields 107 111 input:invalid:not(:required), textarea:invalid:not(:required), select:invalid:not(:required), input:not([type=file]):invalid:not(:focus):not(:required) { -
admin/style/scss/partials/_index.scss
r3764 r3770 34 34 border: 1px solid $index-icon-border; 35 35 display: inline-block; 36 filter: contrast($index-icon-contrast); 36 37 } 37 38 &:focus { -
admin/style/scss/partials/_markup.scss
r3767 r3770 182 182 img { 183 183 border: none; 184 background: in herit;184 background: initial; 185 185 } 186 186 } -
admin/style/scss/themes/_light.scss
r3768 r3770 170 170 $input-focus: $link-outline; // #bee74b 171 171 172 $input-file-color: $body-color; 173 $input-file-background: $body-background; 174 172 175 $form-note-color: $gray-dark; // #676e78 173 176 … … 279 282 280 283 // Application pages: 281 // - Auth 284 // - Auth (white background page) 282 285 283 286 $login-fieldset-background: $white; // #ffffff … … 291 294 $index-icon-border: shade($gray-very-light, 10%); // #dbdbdb 292 295 $index-icon-outline: $link-outline; // #bee74b 296 $index-icon-contrast: 100%; 293 297 294 298 $quick-background: $gray-very-light; // #f3f3f3
Note: See TracChangeset
for help on using the changeset viewer.