low resolution fix
This commit is contained in:
parent
f8472036f3
commit
b21bf24ea3
29 changed files with 1480 additions and 28 deletions
|
@ -3,18 +3,17 @@ html, body {
|
|||
}
|
||||
|
||||
.mainContainer {
|
||||
width: 1024px;
|
||||
width: 85%;
|
||||
margin: auto;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.button {
|
||||
width: 180px;
|
||||
border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
display: block;
|
||||
padding: 20px;
|
||||
background-color: #cde6ea;
|
||||
box-sizing: border-box;
|
||||
box-sizing: content-box;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
color: inherit;
|
||||
|
@ -24,6 +23,10 @@ html, body {
|
|||
transition: background-color 0.2s ease;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
|
@ -31,10 +34,10 @@ nav {
|
|||
}
|
||||
|
||||
nav > a {
|
||||
padding: 20px;
|
||||
flex: auto;
|
||||
display: block;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
box-sizing: content-box;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
color: inherit;
|
||||
|
@ -69,6 +72,54 @@ nav > a > div {
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
@media only screen and (max-width : 640px) {
|
||||
nav {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
background-color: #93ff83;
|
||||
}
|
||||
|
||||
nav > a {
|
||||
padding: 20px;
|
||||
flex: auto;
|
||||
display: block;
|
||||
box-sizing: content-box;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
color: inherit;
|
||||
text-align: center;
|
||||
background-color: transparent;
|
||||
font-size: 18px;
|
||||
|
||||
transition: background-color 0.2s ease;
|
||||
}
|
||||
|
||||
nav > a.current {
|
||||
background-color: #5db9ef;
|
||||
}
|
||||
|
||||
nav > a:hover,
|
||||
.button:hover {
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
nav > a.current:hover {
|
||||
background-color: #5397ca;
|
||||
}
|
||||
|
||||
nav > a:visited {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
nav > a > div {
|
||||
position: relative;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.mainContainer {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue