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

221 lines
4.1 KiB
CSS
Raw Normal View History

2023-01-16 16:56:16 +01:00
:root {
2023-05-29 20:22:06 +02:00
--radius: 4px;
2023-12-22 13:30:03 +01:00
--titlebar-height: 36px;
--primary: #00008b;
--selection: rgba(0, 62, 205, 0.3);
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-12-22 13:30:03 +01:00
font-size: 15px;
line-height: 17px;
2023-05-29 20:55:01 +02:00
background-color: rgba(255, 255, 255, 0.45);
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
2023-05-29 22:09:09 +02:00
a {
2023-12-22 13:30:03 +01:00
color: #0000cc;
2023-05-29 22:09:09 +02:00
text-decoration: underline;
text-underline-offset: 2px;
text-decoration-thickness: 1px;
}
hr {
border: none;
border-top: 1px solid #ccc;
width: 100%;
2023-05-29 22:09:09 +02: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-06-27 17:21:54 +02:00
.button {
2023-12-22 13:30:03 +01:00
background-color: var(--primary);
border: 1px solid var(--primary);
2023-01-29 20:00:15 +01:00
padding: 0.5rem;
2023-05-29 20:22:06 +02:00
border-radius: var(--radius);
2023-01-29 20:00:15 +01:00
color: #fff;
}
2023-06-27 17:21:54 +02:00
.button:focus,
.button:active {
2023-01-29 20:00:15 +01:00
box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.2);
outline: none;
}
2023-06-27 17:21:54 +02:00
.button.danger {
2023-01-29 20:00:15 +01:00
background-color: #c00;
border: 1px solid #c00;
}
2023-06-27 17:21:54 +02:00
.button.danger:active,
.button.danger:focus {
2023-01-29 20:00:15 +01:00
box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
}
2023-06-27 17:21:54 +02:00
.button.secondary {
2023-01-29 20:00:15 +01:00
border: 1px solid #ccc;
background-color: #fff;
color: inherit;
}
2023-06-27 17:21:54 +02:00
.button.secondary:hover {
2023-01-29 20:00:15 +01:00
background-color: #eee;
}
2023-06-27 17:21:54 +02:00
.button.secondary:active {
2023-01-29 20:00:15 +01:00
background-color: #ddd;
}
2023-06-27 17:21:54 +02:00
.button:disabled {
2023-01-29 20:00:15 +01:00
opacity: 0.5;
cursor: not-allowed;
}
.button-small {
2023-01-31 16:58:23 +01:00
padding: 3px;
border-radius: 2px;
}
.button-small:hover {
2023-01-31 16:58:23 +01:00
background-color: rgba(0, 0, 0, 0.1);
}
2023-05-30 19:43:20 +02:00
.button-small:active,
.button-small:focus {
2023-01-31 16:58:23 +01:00
background-color: rgba(0, 0, 0, 0.2);
2023-05-30 19:43:20 +02:00
box-shadow: 0 0 0 2px rgba(0, 0, 139, 0.75);
2023-01-31 16:58:23 +01:00
}
.button-small svg {
2023-01-31 16:58:23 +01:00
width: 13px;
height: 13px;
vertical-align: bottom;
}
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;
padding: 0 0.5rem;
2023-01-29 20:00:15 +01:00
border: 1px solid #ccc;
background-color: #fff;
2023-02-16 11:58:20 +01:00
appearance: none;
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;
2023-12-22 13:30:03 +01:00
border-color: var(--primary);
box-shadow: 0 0 0 1px var(--primary);
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 {
2023-05-29 20:22:06 +02:00
border-top-left-radius: var(--radius);
border-bottom-left-radius: var(--radius);
}
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 {
2023-05-29 20:22:06 +02:00
border-top-right-radius: var(--radius);
border-bottom-right-radius: var(--radius);
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
2023-02-18 15:41:53 +01:00
.settinggrid {
display: grid;
grid-template-columns: 1fr 3fr;
align-items: center;
gap: 0.5rem;
}
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
}