mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 01:26:22 +00:00
262 lines
3.9 KiB
SCSS
262 lines
3.9 KiB
SCSS
//= require_tree .
|
|
|
|
@import "bootstrap";
|
|
|
|
$black: black;
|
|
$white: white;
|
|
$grey: grey;
|
|
$cyan: #13fefe;
|
|
$magenta: #f206f9;
|
|
|
|
:root {
|
|
--foreground: #{$black};
|
|
--background: #{$white};
|
|
--color: #{$magenta};
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--foreground: #{$white};
|
|
--background: #{$black};
|
|
--color: #{$cyan};
|
|
}
|
|
}
|
|
|
|
// TODO: Encontrar la forma de generar esto desde los locales de Rails
|
|
$custom-file-text: (
|
|
en: 'Browse',
|
|
es: 'Buscar archivo'
|
|
);
|
|
|
|
@font-face {
|
|
font-family: 'Saira';
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
font-display: optional;
|
|
src: local('Saira Medium'), local('Saira-Medium'),
|
|
font-url('saira/v3/SairaMedium.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Saira';
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
font-display: optional;
|
|
src: local('Saira Bold'), local('Saira-Bold'),
|
|
font-url('saira/v3/SairaBold.ttf') format('truetype');
|
|
}
|
|
|
|
body {
|
|
font-family: Saira, sans-serif;
|
|
background-color: var(--background);
|
|
color: var(--foreground);
|
|
}
|
|
|
|
a {
|
|
color: var(--color);
|
|
|
|
&:hover {
|
|
color: var(--color);
|
|
}
|
|
|
|
&[target=_blank] {
|
|
/* TODO: Convertir a base64 para no hacer peticiones extra */
|
|
&:after {
|
|
content: image-url('icon_external_link.png');
|
|
}
|
|
}
|
|
}
|
|
|
|
$footer-height: 60px;
|
|
|
|
/* Colores */
|
|
$purpura: #5c004d;
|
|
$turquesa: #009389;
|
|
$azul: #0b2660;
|
|
$fucsia: #e9193e;
|
|
$celeste: #91f0ff;
|
|
$verde: #96d643;
|
|
|
|
/* Tema */
|
|
ol.breadcrumb {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.breadcrumb-item {
|
|
color: $black;
|
|
}
|
|
|
|
.form-control {
|
|
&:focus {
|
|
border-color: transparentize($verde, 0.25);
|
|
box-shadow: 0 0 0 0.2rem transparentize($verde, 0.75);
|
|
}
|
|
}
|
|
|
|
.btn-info {
|
|
background-color: $turquesa;
|
|
border-color: $turquesa;
|
|
&:focus {
|
|
box-shadow: 0 0 0 0.2rem transparentize($turquesa, 0.5);
|
|
}
|
|
}
|
|
|
|
.btn-success {
|
|
background-color: $verde;
|
|
border-color: $verde;
|
|
&:focus {
|
|
box-shadow: 0 0 0 0.2rem transparentize($verde, 0.5);
|
|
}
|
|
}
|
|
|
|
.turbolinks-progress-bar {
|
|
height: 3px;
|
|
background-color: $magenta;
|
|
}
|
|
|
|
|
|
|
|
.background-cover {
|
|
-webkit-background-size: cover;
|
|
-moz-background-size: cover;
|
|
-o-background-size: cover;
|
|
background-size: cover;
|
|
}
|
|
|
|
.full-height {
|
|
min-height: 80vh;
|
|
}
|
|
|
|
html {
|
|
position: relative;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.footer {
|
|
width: 100%;
|
|
height: $footer-height;
|
|
line-height: $footer-height;
|
|
text-align: center;
|
|
}
|
|
|
|
textarea.post-content {
|
|
min-height: 80vh;
|
|
font-family: monospace;
|
|
font-size: 90%;
|
|
}
|
|
|
|
.rtl {
|
|
direction: rtl;
|
|
text-align: right;
|
|
}
|
|
|
|
.btn-text {
|
|
background-color: transparent;
|
|
border: none;
|
|
}
|
|
|
|
.inline {
|
|
display: inline;
|
|
}
|
|
|
|
.sindu_dragger table {
|
|
background: transparent !important;
|
|
}
|
|
|
|
.d-none, .d-block {
|
|
transition: all 3s;
|
|
}
|
|
|
|
.taggable {
|
|
.input-tag {
|
|
legend {
|
|
@extend .sr-only
|
|
}
|
|
|
|
label {
|
|
margin: 0.5rem;
|
|
}
|
|
|
|
input {
|
|
vertical-align: middle;
|
|
|
|
&[type=text] {
|
|
@extend .form-control;
|
|
display: inline-block;
|
|
width: calc(100% - 90px);
|
|
}
|
|
|
|
&[type=checkbox] {
|
|
}
|
|
|
|
&[type=button] {
|
|
@extend .btn;
|
|
@extend .btn-info;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
svg {
|
|
.is-path-magenta {
|
|
fill: var(--foreground);
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
background-color: var(--foreground);
|
|
color: var(--background);
|
|
border: none;
|
|
border-radius: 0;
|
|
|
|
&:hover {
|
|
color: var(--background);
|
|
background-color: var(--color);
|
|
}
|
|
|
|
&:active {
|
|
background-color: var(--color);
|
|
}
|
|
|
|
&:focus {
|
|
box-shadow: 0 0 0 0.2rem var(--color);
|
|
}
|
|
}
|
|
|
|
.black-bg {
|
|
color: $white;
|
|
background-color: $black;
|
|
|
|
svg {
|
|
.is-path-magenta {
|
|
fill: $white
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: $magenta;
|
|
}
|
|
|
|
.btn {
|
|
background-color: $white;
|
|
color: $black;
|
|
border: none;
|
|
|
|
&:hover {
|
|
color: $black;
|
|
background-color: $cyan;
|
|
}
|
|
|
|
&:active {
|
|
background-color: $cyan;
|
|
}
|
|
|
|
&:focus {
|
|
box-shadow: 0 0 0 0.2rem $cyan;
|
|
}
|
|
}
|
|
|
|
.breadcrumb-item {
|
|
color: $white;
|
|
}
|
|
}
|