style: a bite of responsive yo

This commit is contained in:
Haishan 2018-12-28 21:43:36 +08:00
parent ecdb8cab52
commit f342857c8c
4 changed files with 36 additions and 1 deletions

View file

@ -16,6 +16,9 @@
.inputs { .inputs {
display: flex; display: flex;
align-items: center; align-items: center;
input:nth-child(1) {
min-width: 130px;
}
input:nth-child(2) { input:nth-child(2) {
width: 120px; width: 120px;
margin-left: 10px; margin-left: 10px;

View file

@ -1,5 +1,9 @@
.content { .content {
background: none; background: none;
@media (max-width: 768px) {
width: 90%;
}
} }
.overlay { .overlay {

View file

@ -5,6 +5,10 @@
color: var(--color-text); color: var(--color-text);
min-height: 300px; min-height: 300px;
height: 100vh; height: 100vh;
@media (max-width: 768px) {
flex-direction: column;
}
} }
.content { .content {

View file

@ -12,6 +12,9 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 25px 0 15px; padding: 25px 0 15px;
@media (max-width: 768px) {
padding: 0;
}
color: #2a477a; color: #2a477a;
transition: color 0.3s ease-in-out; transition: color 0.3s ease-in-out;
@ -25,8 +28,15 @@
} }
} }
.rows {
@media (max-width: 768px) {
display: flex;
justify-content: space-between;
overflow: scroll;
}
}
// a router link // a router link
.rowActive,
.row { .row {
color: var(--color-text); color: var(--color-text);
text-decoration: none; text-decoration: none;
@ -35,6 +45,11 @@
align-items: center; align-items: center;
padding: 8px 20px; padding: 8px 20px;
@media (max-width: 768px) {
flex-direction: column;
// display: flex;
}
svg { svg {
color: var(--color-icon); color: var(--color-icon);
} }
@ -42,6 +57,11 @@
.rowActive { .rowActive {
background: var(--color-sb-active-row-bg); background: var(--color-sb-active-row-bg);
@media (max-width: 768px) {
background: none;
border-bottom: 2px solid #387cec;
}
} }
.label { .label {
@ -51,6 +71,10 @@
.themeSwitchContainer { .themeSwitchContainer {
$sz: 50px; $sz: 50px;
@media (max-width: 768px) {
display: none;
}
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 50%; left: 50%;