homepage/out/res/style.css

105 lines
1.8 KiB
CSS
Raw Permalink Normal View History

: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;
2022-08-27 16:50:42 +03:00
--card-border-radius: 14px;
--button-border-radius: 12px;
--main-font-weight: 500;
--cards-length: 675px;
--fonts-regular: "Noto Sans", "Liberation Sans", sans-serif;
}
2020-10-04 21:33:26 +03:00
body {
background-color: var(--body-bg-color);
font-family: var(--fonts-regular);
font-weight: var(--main-font-weight);
color: #000000;
2020-10-04 21:33:26 +03:00
}
2022-08-27 15:57:49 +03:00
* {
box-sizing: border-box;
}
/* Card */
.Card {
margin: 6px;
padding: 8px;
background: var(--accent-bg-color);
border-radius: var(--card-border-radius);
}
.Card.Card-layout {
2022-08-27 16:50:42 +03:00
margin: 28px auto;
padding: 24px;
2022-08-27 15:57:49 +03:00
width: clamp(200px, 100%, var(--cards-length));
2020-10-04 21:33:26 +03:00
}
.Card.Card-inner {
margin: 4px;
margin-bottom: 24px;
padding: 16px;
}
/* Navigation */
2022-08-27 16:50:42 +03:00
.Navigation {
display: flex;
flex-direction: row;
}
.Navigation-branding {
display: inline-block;
user-select: none;
padding: 8px;
white-space: nowrap;
}
2022-08-27 16:50:42 +03:00
.Navigation .Button {
margin-left: 14px;
}
2020-10-04 21:33:26 +03:00
2022-08-27 16:50:42 +03:00
.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);
2022-08-27 16:50:42 +03:00
padding: 10px;
color: var(--button-accent-color);
cursor: pointer;
text-align: center;
2020-10-04 22:13:08 +03:00
}
.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);
2020-10-04 22:13:08 +03:00
}
/* Project */
.Project-top {
display: flex;
flex-direction: row;
align-items: center;
}
.Project-top-view {
margin-left: auto;
}