mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-10 18:27:25 +03:00
Fixed home page styles for bootstrap 5
This commit is contained in:
parent
d8e4a4b891
commit
56313e5db8
3 changed files with 14 additions and 12 deletions
|
@ -1,6 +1,10 @@
|
|||
@import '../utils/base';
|
||||
@import '../utils/mixins/vertical-align';
|
||||
|
||||
$mainCardWidth: 720px;
|
||||
$totalColumns: 12;
|
||||
$logoColumns: 5;
|
||||
|
||||
.home {
|
||||
position: relative;
|
||||
padding-top: 15px;
|
||||
|
@ -21,12 +25,12 @@
|
|||
.home__logo {
|
||||
@include vertical-align();
|
||||
|
||||
width: calc(100% - 3rem);
|
||||
width: calc(#{$mainCardWidth / $totalColumns * $logoColumns} - 3rem);
|
||||
}
|
||||
|
||||
.home__main-card {
|
||||
margin: 0 auto;
|
||||
max-width: 720px;
|
||||
max-width: $mainCardWidth;
|
||||
|
||||
@media (min-width: $mdMin) {
|
||||
@include vertical-align();
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
padding: .75rem 2.5rem .75rem 1rem;
|
||||
}
|
||||
|
||||
.servers-list__server-item:not(:hover) {
|
||||
color: $mainColor;
|
||||
}
|
||||
|
||||
.servers-list__server-item:hover {
|
||||
background-color: var(--secondary-color);
|
||||
}
|
||||
|
|
|
@ -12,14 +12,8 @@ export const PRIMARY_DARK_COLOR = '#161b22';
|
|||
|
||||
export type Theme = 'dark' | 'light';
|
||||
|
||||
export const changeThemeInMarkup = (theme: Theme) => {
|
||||
const html = document.getElementsByTagName('html');
|
||||
export const changeThemeInMarkup = (theme: Theme) =>
|
||||
document.getElementsByTagName('html')?.[0]?.setAttribute('data-theme', theme);
|
||||
|
||||
html?.[0]?.setAttribute('data-theme', theme);
|
||||
};
|
||||
|
||||
export const isDarkThemeEnabled = (): boolean => {
|
||||
const html = document.getElementsByTagName('html');
|
||||
|
||||
return html?.[0]?.getAttribute('data-theme') === 'dark';
|
||||
};
|
||||
export const isDarkThemeEnabled = (): boolean =>
|
||||
document.getElementsByTagName('html')?.[0]?.getAttribute('data-theme') === 'dark';
|
||||
|
|
Loading…
Reference in a new issue