mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-29 03:26:22 +00:00
215 lines
3.4 KiB
SCSS
215 lines
3.4 KiB
SCSS
// TODO: Encontrar la forma de generar esto desde los locales de Rails
|
|
$custom-file-text: (
|
|
en: 'Browse',
|
|
es: 'Buscar archivo'
|
|
);
|
|
|
|
@import "bootstrap";
|
|
@import "font-awesome";
|
|
|
|
@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;
|
|
}
|
|
|
|
a {
|
|
&[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: white;
|
|
}
|
|
|
|
.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: $purpura;
|
|
}
|
|
|
|
|
|
|
|
.background-cover {
|
|
-webkit-background-size: cover;
|
|
-moz-background-size: cover;
|
|
-o-background-size: cover;
|
|
background-size: cover;
|
|
}
|
|
|
|
.full-height {
|
|
min-height: calc(100vh - #{$footer-height});
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
/* Select2 Bootstrap4 Validation */
|
|
|
|
.was-validated {
|
|
.form-control {
|
|
&:invalid {
|
|
~ .select2-container--bootstrap {
|
|
border: 1px solid #dc3545;
|
|
border-radius: 0.25rem;
|
|
|
|
.select2-dropdown {
|
|
border: 1px solid #dc3545;
|
|
border-radius: 0.25rem;
|
|
}
|
|
}
|
|
}
|
|
&:valid {
|
|
~ .select2-container--bootstrap {
|
|
border: 1px solid #28a745;
|
|
border-radius: 0.25rem;
|
|
|
|
.select2-dropdown {
|
|
border: 1px solid #28a745;
|
|
border-radius: 0.25rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.field-groups {
|
|
.field-group {
|
|
.remove-group {
|
|
display: none
|
|
}
|
|
}
|
|
|
|
.extra {
|
|
border-top: 1px solid lightgray;
|
|
padding-top: 1rem;
|
|
|
|
.remove-group {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
}
|