1f73421727
- New navbar - Made everything responsive - Made everything, overall, look a lot cooler
336 lines
6.0 KiB
CSS
336 lines
6.0 KiB
CSS
@import url('https://fonts.googleapis.com/css?family=Quicksand:400,500,700');
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: "Quicksand", sans-serif;
|
|
font-size: 62.5%;
|
|
font-size: 10px;
|
|
background-color:#a3a3a3;
|
|
}
|
|
|
|
#panel {
|
|
margin: 50px auto;
|
|
width: 300px;
|
|
padding: 30px 25px;
|
|
background: white;
|
|
border-radius: 25px;
|
|
display:none;
|
|
}
|
|
|
|
#panel a {
|
|
color:black;
|
|
}
|
|
|
|
a{
|
|
color:#ababab;
|
|
}
|
|
|
|
a:hover {
|
|
color:white;
|
|
}
|
|
|
|
hr{
|
|
border-color:white;
|
|
width:50%;
|
|
}
|
|
|
|
/* Navbar section */
|
|
|
|
#rc_logo {
|
|
left: 30px;
|
|
padding: 22px;
|
|
padding-left:2px;
|
|
position: absolute;
|
|
color: #fff;
|
|
font-size: 19px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
#rc_logo a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.rc_nav {
|
|
overflow: hidden;
|
|
background-color: #363841;
|
|
text-align: center;
|
|
z-index: 6;
|
|
}
|
|
|
|
.rc_nav a {
|
|
display: inline-block;
|
|
margin-right: -4px; /* inline-block gap fix */
|
|
color: #fff;
|
|
padding: 22px 22px;
|
|
text-decoration: none;
|
|
font-size: 18px;
|
|
-webkit-transition: background 0.3s linear;
|
|
-moz-transition: background 0.3s linear;
|
|
-ms-transition: background 0.3s linear;
|
|
-o-transition: background 0.3s linear;
|
|
transition: background 0.3s linear;
|
|
z-index: 9;
|
|
}
|
|
|
|
.rc_nav a:hover {
|
|
color: gray;
|
|
}
|
|
|
|
.rc_nav .icon {
|
|
display: none;
|
|
}
|
|
|
|
.rc_content {
|
|
text-align: center;
|
|
padding-left:14px;
|
|
margin-top: 100px;
|
|
color: #8e909b;
|
|
}
|
|
|
|
|
|
@media screen and (max-width: 820px) {
|
|
.rc_nav a {display: none;}
|
|
.rc_nav a.icon {
|
|
float: right;
|
|
display: block;
|
|
width: 60px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 820px) {
|
|
.rc_nav responsive {position: relative; top: 73px;}
|
|
.rc_nav .icon {
|
|
position: fixed;
|
|
right: 0;
|
|
top: 0;
|
|
|
|
border-radius: 20%;
|
|
}
|
|
.rc_nav.responsive a {
|
|
float: none;
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
|
|
#rc_logo {
|
|
position: fixed;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
/* Animation */
|
|
/* Inspiration taken from Dicson https://codemyui.com/simple-hamburger-menu-x-mark-animation/ */
|
|
|
|
.navTrigger {
|
|
cursor: pointer;
|
|
width: 30px;
|
|
height: 25px;
|
|
margin: auto;
|
|
position: absolute;
|
|
right: 30px;
|
|
top: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.navTrigger i {
|
|
background-color: #fff;
|
|
border-radius: 2px;
|
|
content: '';
|
|
display: block;
|
|
width: 100%;
|
|
height: 4px;
|
|
}
|
|
|
|
.navTrigger i:nth-child(1) {
|
|
-webkit-animation: outT 0.8s backwards;
|
|
animation: outT 0.8s backwards;
|
|
-webkit-animation-direction: reverse;
|
|
animation-direction: reverse;
|
|
}
|
|
|
|
.navTrigger i:nth-child(2) {
|
|
margin: 5px 0;
|
|
-webkit-animation: outM 0.8s backwards;
|
|
animation: outM 0.8s backwards;
|
|
-webkit-animation-direction: reverse;
|
|
animation-direction: reverse;
|
|
}
|
|
|
|
.navTrigger i:nth-child(3) {
|
|
-webkit-animation: outBtm 0.8s backwards;
|
|
animation: outBtm 0.8s backwards;
|
|
-webkit-animation-direction: reverse;
|
|
animation-direction: reverse;
|
|
}
|
|
|
|
.navTrigger.active i:nth-child(1) {
|
|
-webkit-animation: inT 0.8s forwards;
|
|
animation: inT 0.8s forwards;
|
|
}
|
|
|
|
.navTrigger.active i:nth-child(2) {
|
|
-webkit-animation: inM 0.8s forwards;
|
|
animation: inM 0.8s forwards;
|
|
}
|
|
|
|
.navTrigger.active i:nth-child(3) {
|
|
-webkit-animation: inBtm 0.8s forwards;
|
|
animation: inBtm 0.8s forwards;
|
|
}
|
|
|
|
@-webkit-keyframes inM {
|
|
50% {
|
|
-webkit-transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
-webkit-transform: rotate(45deg);
|
|
}
|
|
}
|
|
|
|
@keyframes inM {
|
|
50% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(45deg);
|
|
}
|
|
}
|
|
|
|
@-webkit-keyframes outM {
|
|
50% {
|
|
-webkit-transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
-webkit-transform: rotate(45deg);
|
|
}
|
|
}
|
|
|
|
@keyframes outM {
|
|
50% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(45deg);
|
|
}
|
|
}
|
|
|
|
@-webkit-keyframes inT {
|
|
0% {
|
|
-webkit-transform: translateY(0px) rotate(0deg);
|
|
}
|
|
50% {
|
|
-webkit-transform: translateY(9px) rotate(0deg);
|
|
}
|
|
100% {
|
|
-webkit-transform: translateY(9px) rotate(135deg);
|
|
}
|
|
}
|
|
|
|
@keyframes inT {
|
|
0% {
|
|
transform: translateY(0px) rotate(0deg);
|
|
}
|
|
50% {
|
|
transform: translateY(9px) rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: translateY(9px) rotate(135deg);
|
|
}
|
|
}
|
|
|
|
@-webkit-keyframes outT {
|
|
0% {
|
|
-webkit-transform: translateY(0px) rotate(0deg);
|
|
}
|
|
50% {
|
|
-webkit-transform: translateY(9px) rotate(0deg);
|
|
}
|
|
100% {
|
|
-webkit-transform: translateY(9px) rotate(135deg);
|
|
}
|
|
}
|
|
|
|
@keyframes outT {
|
|
0% {
|
|
transform: translateY(0px) rotate(0deg);
|
|
}
|
|
50% {
|
|
transform: translateY(9px) rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: translateY(9px) rotate(135deg);
|
|
}
|
|
}
|
|
|
|
@-webkit-keyframes inBtm {
|
|
0% {
|
|
-webkit-transform: translateY(0px) rotate(0deg);
|
|
}
|
|
50% {
|
|
-webkit-transform: translateY(-9px) rotate(0deg);
|
|
}
|
|
100% {
|
|
-webkit-transform: translateY(-9px) rotate(135deg);
|
|
}
|
|
}
|
|
|
|
@keyframes inBtm {
|
|
0% {
|
|
transform: translateY(0px) rotate(0deg);
|
|
}
|
|
50% {
|
|
transform: translateY(-9px) rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: translateY(-9px) rotate(135deg);
|
|
}
|
|
}
|
|
|
|
@-webkit-keyframes outBtm {
|
|
0% {
|
|
-webkit-transform: translateY(0px) rotate(0deg);
|
|
}
|
|
50% {
|
|
-webkit-transform: translateY(-9px) rotate(0deg);
|
|
}
|
|
100% {
|
|
-webkit-transform: translateY(-9px) rotate(135deg);
|
|
}
|
|
}
|
|
|
|
@keyframes outBtm {
|
|
0% {
|
|
transform: translateY(0px) rotate(0deg);
|
|
}
|
|
50% {
|
|
transform: translateY(-9px) rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: translateY(-9px) rotate(135deg);
|
|
}
|
|
}
|
|
|
|
.affix {
|
|
padding: 0;
|
|
background-color: #111;
|
|
}
|
|
|
|
.myH2 {
|
|
text-align:center;
|
|
font-size: 4rem;
|
|
}
|
|
.myP {
|
|
text-align: justify;
|
|
padding-left:15%;
|
|
padding-right:15%;
|
|
font-size: 20px;
|
|
}
|
|
@media all and (max-width:700px){
|
|
.myP {
|
|
padding:2%;
|
|
}
|
|
} |