snappymail/dev/Styles/Ui.less

176 lines
2.7 KiB
Plaintext
Raw Normal View History

.g-ui-user-select-none {
2021-02-08 21:03:54 +08:00
user-select: none;
-webkit-touch-callout: none;
}
.g-ui-link {
2021-11-15 22:37:05 +08:00
color: var(--link-color, #369);
cursor: pointer;
padding: 2px;
2021-11-15 22:37:05 +08:00
text-decoration: underline;
&:focus {
outline: 1px;
outline-style: dotted;
}
}
2021-02-11 17:08:27 +08:00
.settings-save-trigger {
display: inline-block;
2021-02-11 17:08:27 +08:00
line-height: 1em;
margin-left: 0.5em !important;
2021-02-11 17:08:27 +08:00
&::after {
font-family: "snappymail";
content: " ";
display: block;
opacity: 0;
transition: opacity 1s linear;
}
&.saving::after {
animation: rotation .8s infinite ease-in-out;
border: 3px solid transparent;
border-radius: 100%;
border-top-color: #999;
height: 11px;
opacity: 1;
width: 11px;
}
2021-02-11 17:08:27 +08:00
&.success::after {
color: #080;
2021-02-11 17:08:27 +08:00
content: "✔";
opacity: 1;
}
2021-02-11 17:08:27 +08:00
&.error::after {
color: #F00;
2021-02-11 17:08:27 +08:00
content: "✖";
2014-08-28 23:27:30 +08:00
opacity: 1;
}
2021-02-11 17:08:27 +08:00
}
textarea + .settings-save-trigger {
vertical-align: top;
}
.settings-save-trigger-input {
2021-02-10 19:13:17 +08:00
transition: border-color 0.5s linear;
&.success {
2021-02-11 17:08:27 +08:00
border-color: green;
}
&.error {
2021-02-11 17:08:27 +08:00
border-color: red;
}
}
2021-02-08 21:03:54 +08:00
.e-action {
cursor: pointer;
}
.list-table {
max-width: 800px;
}
2021-08-27 02:10:14 +08:00
.button-confirm-delete {
transition: all 0.2s linear;
white-space: nowrap;
}
.button-confirm-delete:not(.delete-access) {
opacity: 0;
transform: translateX(-15px);
visibility: hidden;
}
.drag-handle {
color: #eee;
cursor: grab;
}
tr:hover .drag-handle {
color: #aaa;
}
2021-08-27 02:10:14 +08:00
// TABS
// -------------
.tabs {
display: grid;
2022-09-06 20:26:07 +08:00
grid-auto-columns: minmax(0, 1fr);
2023-05-09 17:27:40 +08:00
grid-template-rows: min-content auto;
2021-08-27 02:10:14 +08:00
}
2022-09-06 20:26:07 +08:00
.tabs > input[type="radio"] {
2021-08-27 02:10:14 +08:00
position: absolute;
top: 0;
left: -9999px;
display: none;
}
// Actual tabs
2022-09-06 20:26:07 +08:00
.tabs > label {
2021-08-27 02:10:14 +08:00
border: 1px solid transparent;
border-radius: 4px 4px 0 0;
2021-08-27 15:59:13 +08:00
cursor: pointer;
grid-row-start: 1;
opacity: 0.6;
margin: 0 2px -1px 0;
2021-08-27 02:10:14 +08:00
padding: 5px;
2021-08-27 15:59:13 +08:00
text-align: center;
2021-08-27 02:10:14 +08:00
&:hover {
border-color: var(--tab-hover-border-clr, #eee);
2021-08-27 15:59:13 +08:00
opacity: 0.8;
2021-08-27 02:10:14 +08:00
}
}
2022-09-06 20:26:07 +08:00
.tabs > [id^="tab"]:checked + label {
background-color: var(--tab-active-bg-clr, #fff);
border-color: var(--border-color, #ddd) var(--border-color, #ddd) transparent var(--border-color, #ddd);
2021-08-27 15:59:13 +08:00
opacity: 1;
2021-08-27 02:10:14 +08:00
z-index: 1;
}
// TABBABLE
// --------
.tabs .tab-content {
grid-column-start: 1;
grid-row-start: 2;
visibility: hidden;
}
2022-09-06 20:26:07 +08:00
.tabs > [id^="tab"]:checked + label + .tab-content {
2021-08-27 02:10:14 +08:00
visibility: visible;
}
// OTHER
.legend {
border-bottom: 1px solid var(--border-color, #ddd);
font-size: 150%;
line-height: 2.1;
margin-bottom: 1.43em;
}
summary.legend {
cursor: pointer;
}
.btn.btn-thin {
padding: 0 9px;
}
@media screen and (max-width: @maxMobileWidth) {
.form-horizontal {
.control-group {
> label {
2023-04-18 17:35:31 +08:00
text-align: var(--left, left);
}
// Move over all input controls and content
> *:not(label) {
margin-left: 20px;
}
}
}
}