huesos/mirzaev/huesos/system/public/themes/default/css/main.css

315 lines
5.1 KiB
CSS
Executable File

@charset "UTF-8";
:root {
--text-light: #fafaff;
--socket-connected: #2be851;
--socket-disconnected: #8e8181;
--socket-text: #b09999;
outline: none;
-webkit-tap-highlight-color: transparent;
font-family: "DejaVu";
color: var(--tg-theme-text-color);
transition: 0.1s ease-out;
}
* {
text-decoration: none;
outline: none;
border: none;
}
a {
cursor: pointer;
color: var(--tg-theme-link-color);
}
body {
--gap: 16px;
--width: calc(100% - var(--gap) * 2);
--offset-x: 2%;
width: 100%;
height: 100%;
margin: 0;
min-height: 100vh;
padding: 0;
gap: 1rem;
display: flex;
flex-direction: column;
overflow-x: hidden;
background-color: var(--tg-theme-bg-color);
}
body:has(section#window) {
overflow-y: hidden;
}
aside {}
header {
container-type: inline-size;
container-name: header;
margin-top: 2rem;
padding: 0 var(--offset-x);
display: flex;
flex-direction: column;
align-items: center;
gap: 26px;
}
main {
container-type: inline-size;
container-name: main;
flex-grow: 1;
padding: 0 var(--offset-x);
display: flex;
flex-direction: column;
align-items: center;
gap: calc(var(--gap) + 10px);
transition: 0s;
}
main>*.merged {
margin-top: -14px;
}
main>*[data-section] {
width: var(--width);
}
main>section[data-section]>p {
margin: 0;
}
main>article {
padding: 0 1rem;
}
main>article>:is(h2, h2 + small) {
text-align: center;
display: block;
}
main>article>h2+small {
margin-bottom: 1.8rem;
color: var(--tg-theme-hint-color);
}
main>article>h3 {
margin-top: 2rem;
}
main>search {
--gap: 16px;
--border-width: 1px;
width: var(--width);
display: flex;
flex-flow: row;
border-radius: 1.375rem;
backdrop-filter: contrast(0.8);
border: 2px solid transparent;
overflow: clip;
}
footer {}
footer>section#govno {
align-items: center;
padding: 1rem;
gap: 0.2rem;
font-size: small;
}
footer>section#govno>p {
margin: unset;
display: inline-flex;
flex-flow: row wrap;
justify-content: center;
gap: 0 0.4rem;
}
footer>section#govno>span#company {
display: block;
text-align: center;
}
footer>section#govno>p>span#identifier {
color: var(--tg-theme-hint-color);
}
footer>section#govno>p>span#tax {
color: var(--tg-theme-hint-color);
}
footer>section#govno>p>span#identifier:before {
content: var(--company-identifier) ':';
margin-right: 0.1rem;
color: var(--tg-theme-text-color);
}
footer>section#govno>p>span#tax:before {
content: var(--company-tax) ':';
margin-right: 0.1rem;
color: var(--tg-theme-text-color);
}
footer>section#govno>a:last-child {
margin-top: 0.4rem;
text-align: center;
}
search:has(input:is(:focus, :active)) {
border-color: var(--tg-theme-accent-text-color);
transition: unset;
}
search>label {
margin-inline-start: 0.75rem;
width: 1.5rem;
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
}
search>label>i.icon {
color: var(--tg-theme-subtitle-text-color);
}
search:has(input:is(:focus, :active))>label>i.icon {
color: var(--tg-theme-accent-text-color);
transition: unset;
}
search>input {
width: 100%;
max-width: calc(100% - 3.25rem);
height: 2.5rem;
touch-action: manipulation;
padding: calc(.4375rem - var(--border-width)) calc(.625rem - var(--border-width)) calc(.5rem - var(--border-width)) calc(.75rem - var(--border-width));
background-color: transparent;
}
search>input:disabled {
cursor: progress;
color: var(--tg-theme-subtitle-text-color);
}
search:has(input:disabled) {
backdrop-filter: contrast(0.5);
}
button,
*[type="button"] {
cursor: pointer;
}
:is(button, :is(a, label)[type="button"]) {
padding: 8px 16px;
display: flex;
justify-content: center;
align-items: center;
color: var(--tg-theme-button-text-color);
background-color: var(--tg-theme-button-color);
}
button {
height: 33px;
color: var(--tg-theme-button-text-color);
background-color: var(--tg-theme-button-color);
}
:is(a[type="button"], button):disabled {
filter: contrast(0.7) brightness(0.7);
cursor: not-allowed;
}
a[type="button"] {
height: 23px;
}
:is(button, :is(a, label)[type="button"]):not(:disabled):is(:hover, :focus) {
filter: brightness(120%);
}
:is(button, :is(a, label)[type="button"]):not(:disabled):active {
filter: brightness(80%);
transition: 0s;
}
h1,
h2 {
margin: 1rem 0 0;
}
input {
color: var(--tg-theme-text-color);
background: unset;
}
.kabrio {
font-family: "Kabrio";
}
.cost.currency:after {
content: var(--currency);
margin-left: var(--currency-offset, 0.1rem);
}
.cost.plus:before {
content: '+';
margin-left: var(--plus-offset, 0.1rem);
}
.delivery.days:after {
content: var(--days);
margin-left: var(--days-offset, 0.1rem);
}
.rounded {
border-radius: 0.75rem;
}
.rounded.smoother {
border-radius: 1.375rem;
}
.row {
display: flex;
flex-direction: row;
}
.column {
display: flex;
flex-direction: column;
}
.success {
/* color: var(--tg-theme-hint-color, green); */
color: #697d30;
color: #3adb40;
}
.fail {
color: var(--tg-theme-destructive_text_color, red);
}
.hint {
color: var(--tg-theme-hint-color);
}
.hidden {
display: none !important;
}
.unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}