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 {
display: flex;
align-items: center;
input:nth-child(1) {
min-width: 130px;
}
input:nth-child(2) {
width: 120px;
margin-left: 10px;

View file

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

View file

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

View file

@ -12,6 +12,9 @@
align-items: center;
justify-content: center;
padding: 25px 0 15px;
@media (max-width: 768px) {
padding: 0;
}
color: #2a477a;
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
.rowActive,
.row {
color: var(--color-text);
text-decoration: none;
@ -35,6 +45,11 @@
align-items: center;
padding: 8px 20px;
@media (max-width: 768px) {
flex-direction: column;
// display: flex;
}
svg {
color: var(--color-icon);
}
@ -42,6 +57,11 @@
.rowActive {
background: var(--color-sb-active-row-bg);
@media (max-width: 768px) {
background: none;
border-bottom: 2px solid #387cec;
}
}
.label {
@ -51,6 +71,10 @@
.themeSwitchContainer {
$sz: 50px;
@media (max-width: 768px) {
display: none;
}
position: absolute;
bottom: 0;
left: 50%;