refactor(static): refactor static module
This commit is contained in:
32
static/src/styles/app.scss
Normal file
32
static/src/styles/app.scss
Normal file
@@ -0,0 +1,32 @@
|
||||
@import "../lib/bootstrap";
|
||||
|
||||
.table.table-compact {
|
||||
td {
|
||||
padding: 0.1rem 0.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-header {
|
||||
@include font-size($h4-font-size);
|
||||
}
|
||||
|
||||
.app-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
> .link-list {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 1rem;
|
||||
|
||||
app-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
&:not(:last-child)::after {
|
||||
margin-left: 1rem;
|
||||
content: "|";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
43
static/src/styles/mobile.scss
Normal file
43
static/src/styles/mobile.scss
Normal file
@@ -0,0 +1,43 @@
|
||||
@import "../lib/bootstrap";
|
||||
|
||||
$default-space: 2;
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
.app-header {
|
||||
flex-direction: column;
|
||||
padding-bottom: map-get($spacers, $default-space) !important;
|
||||
margin-bottom: map-get($spacers, $default-space) !important;
|
||||
|
||||
> .link-list {
|
||||
border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
|
||||
padding-bottom: map-get($spacers, $default-space);
|
||||
margin-bottom: map-get($spacers, $default-space);
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
|
||||
app-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
&:not(:last-child)::after {
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.app-footer {
|
||||
padding-top: map-get($spacers, $default-space) !important;
|
||||
margin-top: map-get($spacers, $default-space) !important;
|
||||
}
|
||||
|
||||
.navbar-nav {
|
||||
flex-direction: column !important;
|
||||
|
||||
> .nav-item {
|
||||
.btn {
|
||||
padding: map-get($spacers, 1) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
73
static/src/styles/weather.scss
Normal file
73
static/src/styles/weather.scss
Normal file
@@ -0,0 +1,73 @@
|
||||
.table-weather {
|
||||
.header {
|
||||
font-size: 0.9rem;
|
||||
text-align: left;
|
||||
padding-top: 0.25rem;
|
||||
}
|
||||
|
||||
.date {
|
||||
background: rgba(1, 0, 0, 0.1) !important;
|
||||
}
|
||||
|
||||
.date.now {
|
||||
background: rgba(0, 128, 255, 0.2) !important;
|
||||
}
|
||||
|
||||
.date .value a {
|
||||
all: unset;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cloudness {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.cloudness .icon {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.cloudness .icon:first-child {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.temperature {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.temperature .value {
|
||||
padding: 0.1rem 0.4rem;
|
||||
}
|
||||
|
||||
.temperature .value.positive {
|
||||
color: orangered;
|
||||
}
|
||||
|
||||
.temperature .value.negative {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
.wind .direction {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.wind .gust {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.precipitation .value {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
.pressure {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.pressure .value {
|
||||
padding: 0.1rem 0.4rem;
|
||||
color: blueviolet;
|
||||
}
|
||||
|
||||
.humidity .value {
|
||||
color: blue;
|
||||
}
|
||||
}
|
||||
17
static/src/styles/widget.scss
Normal file
17
static/src/styles/widget.scss
Normal file
@@ -0,0 +1,17 @@
|
||||
.widget .app {
|
||||
padding: 0.5rem !important;
|
||||
}
|
||||
|
||||
.widget header {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.widget main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.widget footer {
|
||||
display: none !important;
|
||||
}
|
||||
Reference in New Issue
Block a user