mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 02:42:27 +08:00
style(next): restyle buttons
This commit is contained in:
parent
dee221e18a
commit
90afd01d1f
@ -19,16 +19,11 @@
|
|||||||
|
|
||||||
--accented-background-color: #555;
|
--accented-background-color: #555;
|
||||||
|
|
||||||
--button-background-color: transparent;
|
--button-background-color: #ffffff28;
|
||||||
--button-border-color: #ccc;
|
--button-text-color: #ffffffc2;
|
||||||
--button-text-color: currentColor;
|
--button-hover-background-color: #ffffff37;
|
||||||
--button-border-radius: 5px;
|
--button-hover-text-color: white;
|
||||||
--button-disabled-background-color: transparent;
|
--button-shadow-color: #00000080;
|
||||||
--button-disabled-text-color: #999;
|
|
||||||
|
|
||||||
--primary-button-background-color: #888;
|
|
||||||
--primary-button-text-color: white;
|
|
||||||
--primary-button-border-color: #999;
|
|
||||||
|
|
||||||
--muted-text-color: #bbb;
|
--muted-text-color: #bbb;
|
||||||
|
|
||||||
|
@ -19,16 +19,11 @@
|
|||||||
|
|
||||||
--accented-background-color: #f5f5f5;
|
--accented-background-color: #f5f5f5;
|
||||||
|
|
||||||
--button-background-color: transparent;
|
--button-background-color: #0000000f;
|
||||||
--button-border-color: #ddd;
|
--button-text-color: #000000ad;
|
||||||
--button-text-color: black;
|
--button-hover-background-color: #00000016;
|
||||||
--button-border-radius: 5px;
|
--button-hover-text-color: #000;
|
||||||
--button-disabled-background-color: #ddd;
|
--button-shadow-color: #00000040;
|
||||||
--button-disabled-text-color: black;
|
|
||||||
|
|
||||||
--primary-button-background-color: #6c757d;
|
|
||||||
--primary-button-text-color: white;
|
|
||||||
--primary-button-border-color: #6c757d;
|
|
||||||
|
|
||||||
--muted-text-color: #666;
|
--muted-text-color: #666;
|
||||||
|
|
||||||
|
@ -1,3 +1,35 @@
|
|||||||
|
/*
|
||||||
|
* Buttons
|
||||||
|
*/
|
||||||
|
|
||||||
|
button.btn,
|
||||||
|
button.btn.btn-primary {
|
||||||
|
box-shadow: 1px 1px 1px var(--button-shadow-color);
|
||||||
|
padding: 4px 16px;
|
||||||
|
min-width: 120px;
|
||||||
|
border: unset;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: var(--button-background-color);
|
||||||
|
color: var(--button-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
button.btn:hover {
|
||||||
|
background: var(--button-hover-background-color);
|
||||||
|
color: var(--button-hover-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
button.btn:active {
|
||||||
|
box-shadow: unset;
|
||||||
|
opacity: .85;
|
||||||
|
background: var(--button-background-color) !important;
|
||||||
|
color: var(--button-text-color) !important;
|
||||||
|
transform: scale(.95);
|
||||||
|
}
|
||||||
|
|
||||||
|
button.btn + button.btn {
|
||||||
|
margin-left: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Input boxes
|
* Input boxes
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user