EaglerArchive/stylesheet.css

133 lines
2.2 KiB
CSS

:root {
--side_distance: 10%;
}
body {
justify-content: center;
align-items: center;
height: 100vh;
width: 100%;
margin: 0;
padding: 0;
background-color: #222222;
}
@font-face {
font-family: 'SF-Black';
src: url('./assets/fonts/SF-Pro-Display-Black.otf');
}
@font-face {
font-family: 'SF-Bold';
src: url('./assets/fonts/SF-Pro-Display-Bold.otf');
}
@font-face {
font-family: 'SF-Medium';
src: url('./assets/fonts/SF-Pro-Display-Medium.otf');
}
.blurple {
background-color: #5865F2;
}
#view {
color: white;
width: 100%;;
padding-left: var(--side_distance);
padding-right: var(--side_distance);
}
#view .page-title {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
#view hr {
height: 2px;
margin: 0 auto;
width: 100%;
}
#view h1 {
font-family: 'SF-Black';
font-size: 35px;
margin: 30px;
text-align: center;
}
.folder {
background-image: url('./assets/folder-closed.png');
}
.folder:hover {
background-image: url('./assets/folder-open.png');
}
.box-container {
display: grid;
grid-template-columns: repeat(3, 2fr);
gap: 30px;
max-width: 100%;
}
.box {
background-color: rgb(55, 55, 55);
color: white;
font-size: 30px;
text-align: center;
padding: 25px;
border-radius: 20px;
text-decoration: none;
transition: background-color 0.75s ease, color 0.75s ease;
}
.box-content {
display: flex;
flex-direction: column;
text-decoration: none;
text-align: center;
justify-content: center;
color: white;
transition: background-color 0.75s ease, color 0.75s ease, filter 0.75s ease;
}
.box-content img {
transition: filter 0.75s ease;
}
.box:hover {
background-color: white;
}
.box:hover > .box-content {
color: black;
}
.box:hover > .box-content > .invert-icon {
filter: invert(1);
}
/* ---------------------------------------------------------- */
.box-icon {
height: 75px;
width: 75px;
margin: 30px auto;
}
.box-banner {
margin: -25px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
margin-bottom: 25px;
max-width: calc(100% + 50px);
}