You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
First-Website/css.css

97 lines
1.6 KiB

/* Main CSS */
aside {
float: left;
height: 95vh;
display: inline-block;
width: 50%;
background-color: #454752;
}
svg {
fill: #454752;
stroke-width: 1;
stroke: #454752;
height: 95vh;
}
/* Google search */
#googleSearchBar {
background-color: #ededed;
border: #ededed 2px solid;
position: sticky;
z-index: 2;
top: 6rem;
left: calc(50% - 48%);
padding: 1rem;
width: 96%;
height: 3rem;
border-radius: 2rem;
outline: none;
transition: border .4s, opacity .3s, top .3s;
}
#googleSearchBar:hover, #googleSearchBar:focus {
border: #4c8a80 2px solid;
}
.searchMove {
opacity: 0;
top: 0px!important;
}
/* Clock */
#timeBox {
margin-left: 1rem;
padding: 1rem;
font-family: 'Open Sans', sans-serif;
}
.time {
display: inline-block;
font-size: 8rem;
}
#date {
font-size: 2rem;
}
/* Footer */
footer {
background-color: black;
display: flex!important;
height: 35vh;
font-family: 'Open Sans', sans-serif;
}
footer div {
margin: 5rem 0 0 8rem;
display: inline-block;
}
footer h4 {
color: gray;
}
footer ul {
list-style-type: none;
margin-top: 20px;
padding: 0;
}
footer a {
transition: color .5s;
}
footer li {
margin-top: 1rem;
}
footer a:hover {
color: gray!important;
}
/* Mobile support */
@viewport {
width: device-width;
zoom: 1.0;
}
/* Support for mobile devices */
@media screen and (min-width:0px) and (max-width:1000px) {
aside {
width: 96%!important;
}
footer {
width: 98%!important;
display: block!important;
margin: 0!important;
}
footer div {
margin-top: 2rem!important;
}
}