homepage/out/res/style.css
2022-08-27 16:50:42 +03:00

105 lines
No EOL
1.8 KiB
CSS

:root {
--body-bg-color: #2e2e2e;
--accent-bg-color: #d4d3d3;
--accent-color: #949494;
--grayed-text-color: #949494;
--button-accent-color: #3d3d3d;
--selected-bg-color: #2e2e2e;
--hover-bg-color: #4d4d4d;
--card-border-radius: 14px;
--button-border-radius: 12px;
--main-font-weight: 500;
--cards-length: 675px;
--fonts-regular: "Noto Sans", "Liberation Sans", sans-serif;
}
body {
background-color: var(--body-bg-color);
font-family: var(--fonts-regular);
font-weight: var(--main-font-weight);
color: #000000;
}
* {
box-sizing: border-box;
}
/* Card */
.Card {
margin: 6px;
padding: 8px;
background: var(--accent-bg-color);
border-radius: var(--card-border-radius);
}
.Card.Card-layout {
margin: 28px auto;
padding: 24px;
width: clamp(200px, 100%, var(--cards-length));
}
.Card.Card-inner {
margin: 4px;
margin-bottom: 24px;
padding: 16px;
}
/* Navigation */
.Navigation {
display: flex;
flex-direction: row;
}
.Navigation-branding {
display: inline-block;
user-select: none;
padding: 8px;
white-space: nowrap;
}
.Navigation .Button {
margin-left: 14px;
}
.Navigation .Button:first-of-type {
margin-left: auto;
}
/* Button */
.Button {
display: block;
text-decoration: none;
border: none;
background-color: var(--accent-bg-color);
border-radius: var(--button-border-radius);
padding: 10px;
color: var(--button-accent-color);
cursor: pointer;
text-align: center;
}
.Button:hover:not(.Button-selected) {
color: var(--accent-bg-color);
background-color: var(--hover-bg-color);
}
.Button.Button-selected {
color: var(--accent-bg-color);
background-color: var(--selected-bg-color);
}
/* Project */
.Project-top {
display: flex;
flex-direction: row;
align-items: center;
}
.Project-top-view {
margin-left: auto;
}