Homepage/res/web.css

362 lines
6.8 KiB
CSS
Raw Normal View History

2018-06-07 16:48:53 +00:00
html {
margin: 0;
top: 0;
left: 0;
font-family: 'Oswald', sans-serif;
background: rgb(10, 10, 10);
min-height: 300px;
2018-06-27 14:10:12 +00:00
/*Global Variables*/
--desktop-height: 5vh;
--mobile-height: 3vh;
--header-transparency: rgba(0, 0, 0, 0.7);
2018-06-07 16:48:53 +00:00
}
.header {
width: 100%;
left: 0;
2018-06-13 17:12:17 +00:00
background-color: rgba(0, 0, 0, 0);
2018-06-07 16:48:53 +00:00
z-index: 20;
display: flex;
2018-06-13 17:12:17 +00:00
position: absolute;
2018-06-07 16:48:53 +00:00
overflow: hidden;
2018-06-13 17:38:10 +00:00
transition: ease-out 0.5s;
}
.header:hover {
2018-06-27 14:10:12 +00:00
background-color: var(--header-transparency);
2018-06-13 17:12:17 +00:00
}
.header-title {
width: 100%;
2018-06-27 14:10:12 +00:00
line-height: 5vh;
font-size: auto;
2018-06-13 17:12:17 +00:00
color: #fff;
display: flex;
2018-06-27 14:10:12 +00:00
height: 5vh;
2018-06-13 17:12:17 +00:00
flex-wrap: nowrap;
2018-06-27 14:10:12 +00:00
font-size: 3vh;
}
.header, #links-header, #links-header a, #logo-header img {
height: var(--desktop-height);
line-height: var(--desktop-height);
2018-06-13 17:12:17 +00:00
}
#logo-header {
display: none;
opacity: 0;
}
#logo-header img {
display: flex;
2018-06-07 16:48:53 +00:00
}
#links-header {
display: flex;
flex: 1 1 0;
2018-06-13 17:38:10 +00:00
justify-content: space-around;
}
#links-header a {
2018-06-07 16:48:53 +00:00
color: #eee;
text-align: center;
2018-06-27 14:10:12 +00:00
margin-right: 1vw;
margin-left: 1vw;
2018-06-07 16:48:53 +00:00
text-decoration: none;
2018-06-27 14:10:12 +00:00
font-size: 2.5vh;
2018-06-07 16:48:53 +00:00
font-family: 'Dosis', sans-serif;
}
2018-06-13 17:45:32 +00:00
#links-header a:hover {
2018-06-07 16:48:53 +00:00
color: #a11;
}
.content {
width: 100%;
min-height: 100%;
top: 0;
left: 0;
display: flex;
position: absolute;
flex-wrap: wrap;
flex-direction: column;
}
#banner {
/*Sizing*/
2018-06-27 14:10:12 +00:00
height: 100vh;
2018-06-07 16:48:53 +00:00
width: 100%;
color: #fff;
overflow: hidden;
2018-06-27 14:10:12 +00:00
font-size: 4vw;
2018-06-13 17:12:17 +00:00
transition: ease-in-out 0.7s;
2018-06-07 16:48:53 +00:00
/*Flexbox content*/
justify-content: center;
align-items: center;
display: flex;
/*Background settings*/
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(bg.jpg);
background-attachment: scroll;
background-size: cover;
background-repeat: no-repeat;
}
2018-06-27 14:10:12 +00:00
#banner h1 {
filter: drop-shadow(-5px 6px 3px rgba(0,0,0,.7));
}
2018-06-07 16:48:53 +00:00
#banner img {
2018-06-27 14:10:12 +00:00
width: 20vw;
2018-06-07 16:48:53 +00:00
filter: drop-shadow(-5px 6px 3px rgba(0,0,0,.7));
2018-06-13 17:12:17 +00:00
transition: ease-in-out 0.7s;
2018-06-07 16:48:53 +00:00
}
#text {
display: flex;
flex-wrap: wrap;
2018-06-14 07:39:18 +00:00
width: 95%;
2018-06-07 16:48:53 +00:00
min-height: 100px;
background-color: rgba(70, 70, 70, 0.4);
color: #fff;
align-self: center;
2018-06-14 07:39:18 +00:00
transition: ease-in-out 0.5s;
2018-06-07 16:48:53 +00:00
}
#text h2 {
text-align: center;
width: 100%;
2018-06-27 14:10:12 +00:00
margin: 3vw 0;
font-size: 5vw;
line-height: 8vw;
2018-06-07 16:48:53 +00:00
background-color: rgba(10, 10, 10, 0.4);
2018-06-13 17:12:17 +00:00
transition: ease-in-out 0.5s;
2018-06-27 14:10:12 +00:00
color: #F33;
2018-06-07 16:48:53 +00:00
}
2018-06-14 07:39:18 +00:00
/*Scrolled beyond header*/
2018-06-07 16:48:53 +00:00
2018-06-14 07:39:18 +00:00
.sticky > #logo-header {
opacity: 1;
display: flex;
}
.sticky > #links-header {
display: flex;
height: 50px;
line-height: 50px;
flex: 1 1 0;
justify-content: flex-end;
}
.sticky {
position: fixed;
background-color: rgba(10, 10, 10, 0.7);
top: 0;
}
2018-06-07 16:48:53 +00:00
/*Category of descriptions*/
.category {
2018-06-27 14:10:12 +00:00
margin: 1.5vw 0;
2018-06-07 16:48:53 +00:00
display: flex;
flex-wrap: nowrap;
width: 100%;
overflow: hidden;
transition: ease-in 200ms;
filter: saturate(0%);
color: #fff;
box-shadow: 0 4px 8px -2px #000;
}
.category:hover {
color: #c22;
box-shadow: 0 10px 8px -2px #000;
}
.category:hover { filter: saturate(100%); }
.category img {
width: 40%;
max-width: 900px;
padding: 5% 5% 5% 5%;
transition: ease-in-out 0.2s;
2018-06-07 16:48:53 +00:00
}
.text-field {
width: 100%;
justify-content: center;
display: flex;
padding: 20px;
2018-06-07 16:48:53 +00:00
background-color: rgba(10, 10, 10, 0.4);
2018-06-27 14:10:12 +00:00
margin: 0 auto;
2018-06-07 16:48:53 +00:00
flex-direction: row;
flex: 1;
2018-06-27 14:10:12 +00:00
font-size: 1.2vw;
2018-06-07 16:48:53 +00:00
flex-wrap: wrap;
align-items: flex-start;
2018-06-07 16:48:53 +00:00
text-align: center;
font-family: 'Dosis', sans-serif;
2018-06-27 14:10:12 +00:00
transition: ease-in-out 0.5s;
2018-06-07 16:48:53 +00:00
}
.row {
2018-06-27 14:10:12 +00:00
width: 45%;
2018-06-07 16:48:53 +00:00
}
.text-field h3 {
2018-06-27 14:10:12 +00:00
font-size: 1.2vw;
margin: 0;
}
2018-06-07 16:48:53 +00:00
/*Left Side settings*/
.left {
background-color: rgba(0, 0, 0, 0.5);
width: 30%;
display: flex;
justify-content: center;
align-items: center;
min-width: 200px;
transition: ease-in-out 0.2s;
2018-06-07 16:48:53 +00:00
}
2018-06-27 14:10:12 +00:00
.swap .left {
order: 1;
}
2018-06-07 16:48:53 +00:00
/*Right side settings*/
.right {
background-color: rgba(10, 10, 10, 0.4);
width: 70%;
display: flex;
flex-direction: column;
2018-06-27 14:10:12 +00:00
padding: 2%;
2018-06-07 16:48:53 +00:00
justify-content: center;
2018-06-27 14:10:12 +00:00
text-align: right;
transition: ease-in-out 0.2s;
2018-06-07 16:48:53 +00:00
}
.right h3 {
2018-06-27 14:10:12 +00:00
font-size: 3vw;
2018-06-07 16:48:53 +00:00
margin: 0;
}
.right p {
2018-06-27 14:10:12 +00:00
font-size: 1.5vw;
2018-06-07 16:48:53 +00:00
font-style: italic;
font-family: 'Open Sans Condensed', sans-serif;
}
2018-06-27 14:10:12 +00:00
.swap .right {
order: 0;
text-align: left;
}
2018-06-07 16:48:53 +00:00
/*Webpage footer*/
#footer {
color: #fff;
display: flex;
2018-06-27 14:10:12 +00:00
width: 95%;
height: auto;
2018-06-27 14:41:50 +00:00
font-size: vw;
2018-06-07 16:48:53 +00:00
text-align: center;
align-items: center;
overflow: hidden;
margin: 1 auto;
2018-06-27 14:10:12 +00:00
align-content: space-around;
padding: 2%;
2018-06-07 16:48:53 +00:00
}
#footer a {
color: #f22;
text-decoration: none;
2018-06-27 14:10:12 +00:00
padding: 0 0.5vw;
font-size: 1.5vw;
2018-06-07 16:48:53 +00:00
}
#footer-r, #footer-r a {
2018-06-27 14:10:12 +00:00
font-size: 1.5vw;
2018-06-07 16:48:53 +00:00
padding: 0;
font-style: italic;
}
/*Adaptive content using media queries*/
2018-06-14 07:39:18 +00:00
@media screen and (max-width: 720px) {
.header {
position: fixed;
background-color: rgba(10, 10, 10, 0.4);
}
2018-06-13 17:38:10 +00:00
.header:hover {
2018-06-27 14:10:12 +00:00
background-color: var(--header-transparency);
2018-06-13 17:38:10 +00:00
}
.header-title {
opacity: 0;
display: none;
}
2018-06-27 14:10:12 +00:00
.header, #links-header, #links-header a, #logo-header img {
height: var(--mobile-height);
line-height: var(--mobile-height);
}
#banner {
2018-06-27 14:10:12 +00:00
font-size: 4vw;
height: 300px;
}
2018-06-27 14:10:12 +00:00
#links-header a {
font-size: 1vh;
}
#banner img {
2018-06-27 14:10:12 +00:00
width: 20vw;
}
.category {
flex-wrap: wrap;
2018-06-27 14:10:12 +00:00
margin: 2vw 0;
}
.category img {
width: 30%;
2018-06-27 14:10:12 +00:00
margin: 0 auto;
}
.left, .right {
width: 100%;
}
2018-06-27 14:10:12 +00:00
.swap .left {
order: 0;
}
2018-06-14 07:39:18 +00:00
.left {
min-width: 200px;
}
2018-06-27 14:10:12 +00:00
.swap .right {
order: 1;
}
.right {
padding: 10px 25px 10px 25px;
2018-06-27 14:10:12 +00:00
text-align: center;
}
.right h3 {
2018-06-27 14:10:12 +00:00
font-size: 6vw;
}
.right p {
2018-06-27 14:10:12 +00:00
font-size: 3vw;
margin: 0;
}
.row {
width: 100%;
margin: 10px 0;
}
.text-field {
2018-06-27 14:10:12 +00:00
font-size: 3vw;
padding: 10px;
justify-content: space-between;
}
.text-field h3 {
2018-06-27 14:10:12 +00:00
font-size: 4vw;
}
#footer {
width: 90%;
2018-06-27 14:10:12 +00:00
font-size: 4vw;
height: auto;
flex-flow: wrap;
}
#footer a {
2018-06-27 14:10:12 +00:00
font-size: 4vw;
padding: 0 7px 0 7px;
}
#footer-r, #footer-r a {
2018-06-27 14:41:50 +00:00
font-size: 3vw;
padding: 0;
}
#footer-r {
padding: 0 0 10px 0;
}
}
2018-06-14 07:39:18 +00:00
@media screen and (max-width: 1280px) {
#text {
width: 100%;
}
}
/*Scrollbar*/
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar-thumb {
background: rgba(255 ,255 ,255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255 ,255 ,255, 0.5);
2018-06-07 16:48:53 +00:00
}