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

161 lines
3.0 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;
font-size: 15px;
line-height: 15px;
background-color: rgba(0, 0, 0, 0);
2023-01-10 17:28:27 +01:00
}
* {
2023-01-18 11:25:08 +01:00
vertical-align: middle;
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
}
.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
padding: 0.5rem;
border: 1px solid #ccc;
border-right: none;
display: inline-block;
margin: 0;
background-color: #fff;
2023-01-10 17:28:27 +01:00
}
.field .label {
2023-01-18 11:25:08 +01:00
background-color: #eee;
display: flex;
align-items: center;
2023-01-10 17:28:27 +01:00
}
.field > :first-child {
2023-01-18 11:25:08 +01:00
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
2023-01-10 17:28:27 +01:00
}
.field > :last-child {
2023-01-18 11:25:08 +01:00
border-right: 1px solid #ccc;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
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-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-17 15:56:55 +01:00
.field > span.checkbox {
2023-01-18 11:25:08 +01:00
text-align: center;
min-width: 75px;
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-10 17:28:27 +01:00
.btn {
2023-01-18 11:25:08 +01:00
background-color: #00008b;
border: 1px solid #00008b;
2023-01-18 11:25:08 +01:00
padding: 0.5rem;
border-radius: 10px;
color: #fff;
2023-01-10 17:28:27 +01:00
}
.btn:focus {
2023-01-18 11:25:08 +01:00
box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.2);
outline: none;
2023-01-10 17:28:27 +01:00
}
2023-01-10 20:22:57 +01:00
.btn.danger {
2023-01-18 11:25:08 +01:00
background-color: #c00;
border: 1px solid #c00;
2023-01-10 20:22:57 +01:00
}
.btn.danger:focus {
2023-01-18 11:25:08 +01:00
box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
2023-01-10 20:22:57 +01:00
}
.btn.secondary {
border: 1px solid #ccc;
background-color: #fff;
color: inherit;
}
.btn.secondary:hover {
background-color: #eee;
}
.btn.secondary:active {
background-color: #ddd;
}
2023-01-10 17:28:27 +01:00
.btn:disabled {
2023-01-18 11:25:08 +01:00
opacity: 0.5;
cursor: not-allowed;
2023-01-10 17:28:27 +01:00
}
.btn svg {
2023-01-18 11:25:08 +01:00
height: 15px;
width: auto;
vertical-align: bottom;
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
}