mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-12-12 15:17:49 -06:00
Added first bits of the dark theme styles
This commit is contained in:
parent
f35be007c1
commit
13c681dc39
12
src/App.scss
12
src/App.scss
@ -24,3 +24,15 @@
|
|||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html:not([data-theme='dark']) {
|
||||||
|
--primary-color: #{$lightPrimaryColor};
|
||||||
|
--secondary-color: #{$lightSecondaryColor};
|
||||||
|
--text-color: #{$lightTextColor};
|
||||||
|
}
|
||||||
|
|
||||||
|
html[data-theme='dark'] {
|
||||||
|
--primary-color: #{$darkPrimaryColor};
|
||||||
|
--secondary-color: #{$darkSecondaryColor};
|
||||||
|
--text-color: #{$darkTextColor};
|
||||||
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
.aside-menu {
|
.aside-menu {
|
||||||
width: $asideMenuWidth;
|
width: $asideMenuWidth;
|
||||||
background-color: white;
|
background-color: var(--primary-color);
|
||||||
box-shadow: rgba(0, 0, 0, .05) 0 8px 15px;
|
box-shadow: rgba(0, 0, 0, .05) 0 8px 15px;
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
padding-top: 13px;
|
padding-top: 13px;
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
@media (min-width: $mdMin) {
|
@media (min-width: $mdMin) {
|
||||||
padding: 30px 15px 15px;
|
padding: 30px 15px 15px;
|
||||||
border-right: 1px solid #eeeeee;
|
border-right: 1px solid rgba(0, 0, 0, .07);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: $smMax) {
|
@media (max-width: $smMax) {
|
||||||
@ -50,7 +50,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.aside-menu__item:hover {
|
.aside-menu__item:hover {
|
||||||
background-color: $lightColor;
|
background-color: var(--secondary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.aside-menu__item--selected {
|
.aside-menu__item--selected {
|
||||||
|
|||||||
@ -2,15 +2,16 @@
|
|||||||
@import 'node_modules/bootstrap/scss/bootstrap.scss';
|
@import 'node_modules/bootstrap/scss/bootstrap.scss';
|
||||||
@import './common/react-tagsinput.scss';
|
@import './common/react-tagsinput.scss';
|
||||||
|
|
||||||
|
* {
|
||||||
|
outline: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body,
|
body,
|
||||||
#root {
|
#root {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: $lightColor;
|
background: var(--secondary-color);
|
||||||
}
|
color: var(--text-color);
|
||||||
|
|
||||||
* {
|
|
||||||
outline: none !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-main {
|
.bg-main {
|
||||||
@ -21,8 +22,10 @@ body,
|
|||||||
box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
|
box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-header {
|
.card,
|
||||||
background-color: white;
|
.card-header,
|
||||||
|
.card-body {
|
||||||
|
background-color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-footer {
|
.card-footer {
|
||||||
@ -56,7 +59,7 @@ body,
|
|||||||
}
|
}
|
||||||
|
|
||||||
.table-hover tbody tr:hover {
|
.table-hover tbody tr:hover {
|
||||||
background-color: $lightColor;
|
background-color: var(--secondary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-datepicker__input-container,
|
.react-datepicker__input-container,
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.servers-list__server-item:hover {
|
.servers-list__server-item:hover {
|
||||||
background-color: $lightColor;
|
background-color: var(--secondary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.servers-list__server-item-icon {
|
.servers-list__server-item-icon {
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,
|
.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,
|
||||||
.show > .dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle {
|
.show > .dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle {
|
||||||
color: #6c757d;
|
color: #6c757d;
|
||||||
background-color: white;
|
background-color: var(--primary-color);
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border-color: rgba(0, 0, 0, .125);
|
border-color: rgba(0, 0, 0, .125);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,6 +16,14 @@ $lightGrey: #dddddd;
|
|||||||
$dangerColor: #dc3545;
|
$dangerColor: #dc3545;
|
||||||
$mediumGrey: #dee2e6;
|
$mediumGrey: #dee2e6;
|
||||||
|
|
||||||
|
// Themes
|
||||||
|
$lightPrimaryColor: #ffffff;
|
||||||
|
$lightSecondaryColor: $lightColor;
|
||||||
|
$lightTextColor: #212529;
|
||||||
|
$darkPrimaryColor: #161b22;
|
||||||
|
$darkSecondaryColor: #0d1117;
|
||||||
|
$darkTextColor: #ffffff;
|
||||||
|
|
||||||
// Misc
|
// Misc
|
||||||
$headerHeight: 57px;
|
$headerHeight: 57px;
|
||||||
$asideMenuWidth: 260px;
|
$asideMenuWidth: 260px;
|
||||||
@ -23,6 +31,6 @@ $footer-height: 2.3rem;
|
|||||||
$footer-margin: .8rem;
|
$footer-margin: .8rem;
|
||||||
|
|
||||||
// Bootstrap overwrites
|
// Bootstrap overwrites
|
||||||
//$theme-colors: (
|
$theme-colors: (
|
||||||
// 'primary': $mainColor
|
'primary': $mainColor
|
||||||
//);
|
);
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
.visits-table {
|
.visits-table {
|
||||||
margin: 1.5rem 0 0;
|
margin: 1.5rem 0 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: white;
|
background-color: var(--primary-color);
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user