capybara/frontend/main.css

168 lines
3.2 KiB
CSS
Raw Normal View History

:root {
--body-bg-color: #2e2e2e;
2022-08-26 15:56:42 +03:00
--body-bg-color-accent: hsl(0, 0%, 25%);
--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-26 15:56:42 +03:00
--card-border-radius: 1em;
--button-border-radius: 0.5em;
--main-font-weight: 500;
--fonts-regular: "Noto Sans", "Liberation Sans", sans-serif;
}
2022-08-26 15:56:42 +03:00
* {
box-sizing: border-box;
}
html, body {
font-weight: var(--main-font-weight);
font-family: var(--fonts-regular);
background-color: var(--body-bg-color);
color: var(--accent-bg-color);
2022-08-26 15:56:42 +03:00
overflow: hidden;
margin: 0;
2022-08-26 15:56:42 +03:00
padding: 0;
height: 100%;
width: 100%;
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
background: var(--body-bg-color);
background-image: radial-gradient(var(--body-bg-color-accent) 1.4px, transparent 0);
background-size: 35px 35px;
}
/* util */
.full-width {
width: 100%;
}
2022-08-26 15:56:42 +03:00
/* Card */
.Keyboard,
.Card {
margin: 6px;
padding: 8px;
background: var(--accent-bg-color);
color: #000000;
border-radius: var(--card-border-radius);
}
2022-08-26 15:56:42 +03:00
.Keyboard,
.Card-ui-bottom {
padding: 14px;
width: 100%;
max-width: 610px;
box-shadow: 0 0 28px 3px rgba(0, 0, 0, 0.40);
2022-08-26 15:56:42 +03:00
margin: 0;
border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
padding-top: 16px;
}
2022-08-26 15:56:42 +03:00
.Card-centered-text {
text-align: center;
}
2022-08-26 15:56:42 +03:00
/* button */
.button-default {
display: block;
padding: 12px;
margin: 4px;
border: none;
background-color: var(--accent-bg-color);
border-radius: var(--button-border-radius);
color: var(--button-accent-color);
min-width: 50px;
text-align: center;
}
.button-default:hover:not(.button-selected) {
color: var(--accent-bg-color);
background-color: var(--hover-bg-color);
}
.button-selected {
color: var(--accent-bg-color);
background-color: var(--selected-bg-color);
}
2022-08-26 15:56:42 +03:00
/* input */
.input {
display: block;
box-sizing: border-box;
border: none;
outline: none;
border-radius: var(--button-border-radius);
margin: 4px;
padding: 12px;
}
2022-08-26 22:09:08 +03:00
/* LoginPrompt */
.LoginPrompt {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
2022-08-26 15:56:42 +03:00
/* Touchpad */
.Touchpad {
width: 100%;
2022-08-26 15:56:42 +03:00
height: 100%;
}
2022-08-26 15:56:42 +03:00
.Touchpad-touch-indicator {
pointer-events: none;
position: absolute;
width: 28px;
height: 28px;
border-radius: 50%;
background-color: var(--accent-bg-color);
}
2022-08-26 15:56:42 +03:00
/* Keyboard */
.keyboard-rows {
border-radius: 12px;
display: flex;
flex-direction: column;
}
2022-08-26 15:56:42 +03:00
.Keyboard-row {
display: flex;
flex-direction: row;
flex-grow: 1;
}
2022-08-26 15:56:42 +03:00
.Keyboard-button {
font-family: var(--fonts-regular);
font-weight: var(--main-font-weight);
padding: 8px;
background-color: var(--accent-bg-color);
color: #000000;
flex-grow: 1;
min-height: 50px;
width: 20px;
border: none;
display: flex;
align-items: center;
justify-content: center;
}
2022-08-26 15:56:42 +03:00
.Keyboard-button:active {
background-color: var(--accent-color);
}