Finished Day 3
This commit is contained in:
134
50Days/day3/style.css
Normal file
134
50Days/day3/style.css
Normal file
@@ -0,0 +1,134 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Lato', sans-serif;
|
||||
background-color: #333;
|
||||
color: #222;
|
||||
overflow-x: hidden;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
background-color: #fafafa;
|
||||
transform-origin: top left;
|
||||
transition: transform 0.5s linear;
|
||||
width: 100vw;
|
||||
min-height: 100vh;
|
||||
padding: 50px;
|
||||
}
|
||||
|
||||
.container.show-nav {
|
||||
transform: rotate(-20deg);
|
||||
}
|
||||
|
||||
.circle-container {
|
||||
position: fixed;
|
||||
top: -75px;
|
||||
left: -75px;
|
||||
}
|
||||
|
||||
.circle {
|
||||
background-color: #ff7979;
|
||||
height: 150px;
|
||||
width: 150px;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
transition: transform 0.5s linear;
|
||||
}
|
||||
|
||||
.container.show-nav .circle {
|
||||
transform: rotate(-70deg);
|
||||
}
|
||||
|
||||
.circle button {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
height: 75px;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
font-size: 23px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.circle button:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.circle button#open {
|
||||
left: 55%;
|
||||
}
|
||||
|
||||
.circle button#close {
|
||||
top: 55%;
|
||||
transform: rotate(90deg);
|
||||
transform-origin: top left;
|
||||
}
|
||||
|
||||
.container.show-nav + nav li {
|
||||
transform: translateX(0);
|
||||
transition-delay: 0.3s;
|
||||
}
|
||||
|
||||
nav {
|
||||
position: fixed;
|
||||
bottom: 40px;
|
||||
left: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
list-style-type: none;
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
nav li {
|
||||
text-transform: uppercase;
|
||||
color: #fff;
|
||||
margin: 40px 0;
|
||||
transform: translateX(-100%);
|
||||
transition: transform 0.2s ease-in;
|
||||
}
|
||||
|
||||
nav li i {
|
||||
font-size: 20px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
nav ul li + li {
|
||||
margin-left: 15px;
|
||||
transform: translateX(-150%);
|
||||
}
|
||||
|
||||
nav ul li + li + li {
|
||||
margin-left: 30px;
|
||||
transform: translateX(-200%);
|
||||
}
|
||||
|
||||
.content {
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.content img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.content h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.content small {
|
||||
color: #555;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.content p {
|
||||
color: #333;
|
||||
line-height: 1.5;
|
||||
}
|
||||
Reference in New Issue
Block a user