1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-04-19 08:51:03 +00:00
rolens/frontend/src/style.css

176 lines
3.3 KiB
CSS
Raw Normal View History

2023-01-16 16:56:16 +01:00
:root {
2023-01-18 11:25:08 +01:00
--darwin-titlebar-height: 36px;
2023-01-16 16:56:16 +01:00
}
2023-01-10 17:28:27 +01:00
html,
body {
2023-01-18 11:25:08 +01:00
height: 100vh;
overflow: hidden;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
margin: 0;
padding: 0;
-webkit-user-select: none;
user-select: none;
cursor: default;
2023-01-19 19:04:48 +01:00
font-size: 13px;
line-height: 13px;
2023-01-18 11:25:08 +01:00
background-color: rgba(0, 0, 0, 0);
2023-01-10 17:28:27 +01:00
}
* {
2023-01-18 11:25:08 +01:00
box-sizing: border-box;
overscroll-behavior: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
touch-action: none;
2023-01-10 17:28:27 +01:00
}
p {
2023-01-18 11:25:08 +01:00
margin: 1rem 0;
2023-01-16 20:07:56 +01:00
}
p:first-child {
2023-01-18 11:25:08 +01:00
margin-top: 0;
2023-01-16 20:07:56 +01:00
}
p:last-child {
2023-01-18 11:25:08 +01:00
margin-bottom: 0;
2023-01-10 17:28:27 +01:00
}
2023-01-15 16:49:08 +01:00
p strong {
2023-01-18 11:25:08 +01:00
font-weight: 700;
2023-01-15 16:49:08 +01:00
}
2023-01-10 17:28:27 +01:00
.loading {
2023-01-18 11:25:08 +01:00
cursor: wait;
2023-01-10 17:28:27 +01:00
}
2023-01-23 20:47:43 +01:00
input:disabled,
select:disabled {
cursor: not-allowed;
opacity: 1;
color: #444;
}
2023-01-29 20:00:15 +01:00
.btn {
background-color: #00008b;
border: 1px solid #00008b;
padding: 0.5rem;
border-radius: 10px;
color: #fff;
}
.btn:focus {
box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.2);
outline: none;
}
.btn.danger {
background-color: #c00;
border: 1px solid #c00;
}
.btn.danger:focus {
box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
}
.btn.secondary {
border: 1px solid #ccc;
background-color: #fff;
color: inherit;
}
.btn.secondary:hover {
background-color: #eee;
}
.btn.secondary:active {
background-color: #ddd;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
2023-01-10 17:28:27 +01:00
.field {
2023-01-18 11:25:08 +01:00
display: flex;
white-space: nowrap;
align-items: stretch;
2023-01-10 17:28:27 +01:00
}
.field > * {
2023-01-18 11:25:08 +01:00
display: inline-block;
margin: 0;
2023-01-29 20:00:15 +01:00
border-radius: 0;
2023-01-10 17:28:27 +01:00
}
2023-01-29 20:00:15 +01:00
.field .label,
.field span.checkbox {
2023-01-18 11:25:08 +01:00
background-color: #eee;
display: flex;
align-items: center;
2023-01-29 20:00:15 +01:00
padding: 0.5rem;
border: 1px solid #ccc;
justify-content: center;
2023-01-10 17:28:27 +01:00
}
.field > input,
2023-01-18 11:22:02 +01:00
.field > textarea,
.field > select {
2023-01-18 11:25:08 +01:00
flex: 1;
2023-01-29 20:00:15 +01:00
padding: 0.5rem;
border: 1px solid #ccc;
background-color: #fff;
2023-01-10 17:28:27 +01:00
}
2023-01-18 11:22:02 +01:00
.field > input:focus,
2023-01-10 17:28:27 +01:00
.field > textarea:focus,
2023-01-18 11:22:02 +01:00
.field > select:focus {
2023-01-18 11:25:08 +01:00
outline: none;
border-color: #00008b;
box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.2);
2023-01-10 17:28:27 +01:00
}
.field > input.invalid,
2023-01-18 11:22:02 +01:00
.field > textarea.invalid,
.field > select.invalid {
2023-01-18 11:25:08 +01:00
background-color: rgba(255, 80, 80, 0.3);
border-color: rgb(255, 80, 80);
2023-01-10 17:28:27 +01:00
}
2023-01-29 20:00:15 +01:00
.field.inline {
display: inline-flex;
}
.field.inline > input,
.field.inline > textarea,
.field.inline > select {
max-width: 150px;
}
2023-01-17 15:56:55 +01:00
.field > span.checkbox {
2023-01-18 11:25:08 +01:00
min-width: 75px;
2023-01-29 20:00:15 +01:00
background-color: #fff;
2023-01-17 15:56:55 +01:00
}
2023-01-18 11:22:02 +01:00
.field > select {
2023-01-18 11:25:08 +01:00
appearance: none;
padding: 0.5rem 2rem 0.5rem 0.5rem;
background: #fff;
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0.5rem center;
2023-01-18 11:22:02 +01:00
}
2023-01-29 20:00:15 +01:00
.field > :first-child {
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
}
2023-01-29 20:00:15 +01:00
.field > *:not(:last-child) {
border-right: none;
}
2023-01-29 20:00:15 +01:00
.field > :last-child {
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
2023-01-10 17:28:27 +01:00
}
2023-01-18 11:25:08 +01:00
code,
.code {
font-family: Menlo, monospace;
2023-01-10 17:28:27 +01:00
}
2023-01-13 16:56:48 +01:00
@keyframes flashGreen {
2023-01-18 11:25:08 +01:00
0% {
color: #0d0;
}
100% {
color: unset;
}
2023-01-13 16:56:48 +01:00
}
.flash-green {
2023-01-18 11:25:08 +01:00
animation: 1s ease-out 0s 1 flashGreen;
2023-01-13 16:56:48 +01:00
}