269 lines
4.6 KiB
CSS
269 lines
4.6 KiB
CSS
:root {
|
|
--sidebar-size: clamp(300px, 20%, 400px);
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Cantarell var";
|
|
font-weight: 100 900;
|
|
font-display: swap;
|
|
font-style: normal;
|
|
font-named-instance: "Regular";
|
|
src: url("Cantarell-VF.otf") format("opentype");
|
|
}
|
|
|
|
h1 {
|
|
margin: 20px;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: Cantarell;
|
|
}
|
|
|
|
#links {
|
|
display: inline-grid;
|
|
grid-template-rows: 100% 0px;
|
|
}
|
|
|
|
#links > * {
|
|
margin-left: 10px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
#header {
|
|
text-align: center;
|
|
padding-top: 10%;
|
|
padding-bottom: 10%;
|
|
min-height: 80vh;
|
|
box-sizing: border-box;
|
|
background-image: url(https://www.state.gov/wp-content/uploads/2022/02/Kuwait-2323x1406.png);
|
|
background-attachment: fixed;
|
|
background-size: cover;
|
|
position: relative;
|
|
/*clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 30% 100%, 0% 90%);*/
|
|
}
|
|
|
|
#header::before {
|
|
content: "";
|
|
position: absolute;
|
|
z-index: 0;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
display: block;
|
|
clip-path: polygon(0% 90%, 0 100%, 100% 100%, 100% 90%, 30% 100%);
|
|
background-color: white;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
/*display: grid;
|
|
grid-template-columns: var(--sidebar-size) auto;
|
|
grid-template-columns: var(--sidebar-size) auto;*/
|
|
}
|
|
|
|
.dropdown, .link {
|
|
background-color: aliceblue;
|
|
padding: 10px;
|
|
display: inline-block;
|
|
grid-row: 1;
|
|
}
|
|
|
|
.dropdown-inner {
|
|
background-color: white;
|
|
display: flex;
|
|
grid-row: 2;
|
|
visibility: hidden;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.dropdown:hover + div > .dropdown-inner, .dropdown-inner:hover {
|
|
visibility: visible;
|
|
}
|
|
|
|
.dropdown-inner > * {
|
|
padding: 10px;
|
|
}
|
|
|
|
#content {
|
|
margin: 10%;
|
|
}
|
|
|
|
#headin {
|
|
padding-bottom: 2%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding-top: 2%;
|
|
z-index: 10000000;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 4em;
|
|
}
|
|
|
|
#head-marker {
|
|
margin-top: 10vh;
|
|
}
|
|
|
|
#head-marker.scrolly-out + #headin {
|
|
position: fixed;
|
|
transition: background-color 0.3s, color 0.3s;
|
|
top: 0px;
|
|
left: 0px;
|
|
/*color: red;*/
|
|
/*margin-left: var(--sidebar-size);
|
|
width: calc(100vw - var(--sidebar-size));*/
|
|
width: 100vw;
|
|
}
|
|
|
|
#head-marker.scrolly-out + #headin > #links > * > *, #head-marker.scrolly-out + #headin > #links > * {
|
|
/*background-color: black;*/
|
|
}
|
|
|
|
#outer {
|
|
position: relative;
|
|
height: 100vh;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
#sider {
|
|
box-sizing: border-box;
|
|
padding: 20px;
|
|
background-color: pink;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
#sider-cats {
|
|
border-left: 2px solid white;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
#sider-cats > div {
|
|
display: none;
|
|
border-left: 2px solid white;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
#sider-cats > label {
|
|
color: #333333;
|
|
padding-right: 10px;
|
|
padding-bottom: 10px;
|
|
display: inline-block;
|
|
}
|
|
|
|
#sider-cats > label:hover {
|
|
color: black;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#sider-cats > input:checked + label + div {
|
|
display: block;
|
|
}
|
|
|
|
#sider > h2 {
|
|
border-right: 2px solid white;
|
|
border-bottom: 2px solid white;
|
|
text-align: center;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: green;
|
|
}
|
|
|
|
a:hover {
|
|
color: darkgreen;
|
|
}
|
|
|
|
@media (max-width: 1000px) {
|
|
#headin {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.carousel > div {
|
|
min-width: max(15vw, 15vh);
|
|
min-height: max(15vw, 15vh);
|
|
transition: min-height 1s, min-width 1s;
|
|
background-size: cover;
|
|
background-position: center;
|
|
padding: max(2vw, 2vh);
|
|
box-sizing: border-box;
|
|
border-radius: 30px;
|
|
display: inline-block;
|
|
margin-left: 2%;
|
|
margin-right: 2%;
|
|
opacity: 50%;
|
|
}
|
|
|
|
.carousel > div:first-child {
|
|
margin-left: 50vw;
|
|
}
|
|
|
|
.carousel > div:last-child {
|
|
margin-right: 50vw;
|
|
}
|
|
|
|
.carousel > div.selected {
|
|
min-width: max(20vw, 20vh);
|
|
min-height: max(20vw, 20vh);
|
|
opacity: 100%;
|
|
}
|
|
|
|
.carousel::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.carousel {
|
|
/*-ms-overflow-style: none;
|
|
scrollbar-width: none;*/
|
|
display: flex;
|
|
align-items: center;
|
|
width: max-content;
|
|
padding: 1%;
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
min-height: max(22vw, 22vh);
|
|
}
|
|
|
|
h1 {
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.carousel-outer {
|
|
margin-top: clamp(50px, 10vh, 100px);
|
|
width: 100vw;
|
|
display: flex;
|
|
background-color: black;
|
|
align-items: center;
|
|
position: relative;
|
|
}
|
|
|
|
.carousel-outer > img {
|
|
z-index: 1000;
|
|
position: absolute;
|
|
transition: height 1s;
|
|
height: 50%;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.carousel-outer > img:hover {
|
|
height: 75%;
|
|
}
|
|
|
|
.carousel-outer > img:first-child {
|
|
left: 2vw;
|
|
}
|
|
|
|
.carousel-outer > img:last-child {
|
|
right: 2vw;
|
|
} |