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