mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 13:44:58 +08:00
Added variables for code color & background; Dark mode & light mode
This commit is contained in:
parent
ee6aee73b2
commit
249cee3548
|
@ -119,8 +119,8 @@
|
|||
code {
|
||||
font-family: source-code-pro, Monaco, Consolas, "Courier New", monospace;
|
||||
padding: 2px 6px;
|
||||
background: #60646D;
|
||||
color: #256FC7;
|
||||
background: @code-bg;
|
||||
color: @code-color;
|
||||
font-size: 90%;
|
||||
border-radius: 4px
|
||||
}
|
||||
|
|
|
@ -37,6 +37,9 @@
|
|||
@control-danger-color: #d66;
|
||||
|
||||
@overlay-bg: fade(@secondary-color, 90%);
|
||||
|
||||
@code-bg: #F2F7F9;
|
||||
@code-color: #60646D;
|
||||
}
|
||||
.define-colors(true) {
|
||||
@primary-color: @config-primary-color;
|
||||
|
@ -56,6 +59,9 @@
|
|||
@control-danger-color: #a88;
|
||||
|
||||
@overlay-bg: fade(darken(@body-bg, 5%), 90%);
|
||||
|
||||
@code-bg: darken(#F2F7F9, 90%);
|
||||
@code-color: lighten(#60646D, 90%);
|
||||
}
|
||||
|
||||
@hero-bg: @control-bg;
|
||||
|
|
Loading…
Reference in New Issue
Block a user