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

87 lines
1.4 KiB

/* Mobile support */
@viewport {
width: device-width;
zoom: 1.0;
}
/* Support for normal mobile devices */
@media screen and (min-width:0px) and (max-width:960px) {
#timeBox {
width: 94%!important
}
}
/* Main CSS */
aside {
float: left;
margin: 3rem 0 0 1rem;
display: inline-block;
width: 36%;
}
/* 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;
}
/* Welcome */
#welcome {
padding: 1rem;
}
/* Clock */
#timeBox {
margin-top: 2rem;
padding: 1rem;
}
.time {
display: inline-block;
font-size: 5rem;
}
#date {
font-size: 150%;
}
/* Footer */
footer {
margin-top: 1rem;
float: left;
display: flex!important;
align-items: stretch;
}
footer div::-webkit-scrollbar {
display: none;
}
footer div {
flex-grow: 1;
padding: 1rem;
margin: 1rem;
overflow: scroll;
overflow-x: hidden;
}
/* Info blocks */
footer div:nth-of-type(2) textarea {
width: 98%;
margin-top: 8px;
height: 6rem;
}
footer div:nth-of-type(2) button {
width: 98%;
margin-top: 4px;
}
footer div:nth-of-type(3) a button {
margin-bottom: 5px;
}