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

102 lines
1.6 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 */
/* Header */
header {
margin-top: 6rem;
color: white;
text-shadow: 2px 2px #363840;
}
/* 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-top: 3rem;
display: inline-block;
margin-left: 1rem;
float: left;
padding: 1rem;
width: 36%;
}
.time {
display: inline-block;
font-size: 5rem;
}
#date {
font-size: 150%;
}
/* Footer */
#footer {
margin-left: calc(50% - 45rem);
margin-top: 2rem;
height: 12rem;
display: inline-block;
margin-bottom: 2rem;
}
.footerBox::-webkit-scrollbar {
display: none;
}
.footerBox {
height: 13rem;
display: inline-block;
float: left;
padding: 1rem;
margin-left: 2rem;
overflow: scroll;
overflow-x: hidden;
}
/* Info blocks */
#info {
width: 27rem;
}
#feedbackBox {
font-size: 1rem;
width: 27rem;
}
#feedbackTextarea {
width: 98%;
margin-top: 8px;
height: 6rem;
}
#feedbackSubmitButton {
width: 98%;
margin-top: 4px;
}
#links {
width: 27rem;
padding: 1rem;
font-size: 130%;
}
#links a button {
margin-bottom: 5px;
}