Update style.css

pull/110/head
sayhi123 4 years ago committed by GitHub
parent cd228d507d
commit eb0d7205e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,17 +1,17 @@
@import url('https://fonts.googleapis.com/css?family=Muli&display=swap'); @import url('https://fonts.googleapis.com/css?family=Muli&display=swap');##@import googleapis
* { * {
box-sizing: border-box; box-sizing: border-box;## box-sizing
} }
body { body {
font-family: 'Muli', sans-serif; font-family: 'Muli', sans-serif;
display: flex; display: flex;##,flex ,
align-items: center; align-items: center;##flexflex
justify-content: center; justify-content: center;##
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;##,visible hidden
margin: 0; margin: 0;## 1 4
} }
.container { .container {
@ -22,15 +22,15 @@ body {
.panel { .panel {
background-size: cover; background-size: cover;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;##
height: 80vh; height: 80vh;
border-radius: 50px; border-radius: 50px;##
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;##
flex: 0.5; flex: 0.5;
margin: 10px; margin: 10px;
position: relative; position: relative;
-webkit-transition: all 700ms ease-in; -webkit-transition: all 700ms ease-in;## CSS(none|all|)
} }
.panel h3 { .panel h3 {
@ -39,10 +39,10 @@ body {
bottom: 20px; bottom: 20px;
left: 20px; left: 20px;
margin: 0; margin: 0;
opacity: 0; opacity: 0;##
} }
.panel.active { .panel.active {## active
flex: 5; flex: 5;
} }
@ -51,13 +51,13 @@ body {
transition: opacity 0.3s ease-in 0.4s; transition: opacity 0.3s ease-in 0.4s;
} }
@media (max-width: 480px) { @media (max-width: 480px) {## ...(480)
.container { .container {
width: 100vw; width: 100vw;
} }
.panel:nth-of-type(4), .panel:nth-of-type(4),
.panel:nth-of-type(5) { .panel:nth-of-type(5) {##nth-of-type(n) N
display: none; display: none;
} }
} }

Loading…
Cancel
Save