stacker.news/styles/globals.scss

599 lines
10 KiB
SCSS
Raw Normal View History

2021-04-14 00:57:32 +00:00
$theme-colors: (
2022-07-18 21:24:28 +00:00
"primary" : #FADA5E,
2021-04-14 00:57:32 +00:00
"secondary" : #F6911D,
"danger" : #c03221,
"info" : #007cbe,
2021-04-24 21:05:07 +00:00
"success" : #5c8001,
"twitter" : #1da1f2,
2021-10-28 19:59:53 +00:00
"boost" : #8c25f4,
"grey" : #e9ecef,
2023-01-10 18:55:17 +00:00
"grey-medium" : #d2d2d2,
2023-01-10 00:33:44 +00:00
"grey-darkmode": #8c8c8c
2021-04-14 00:57:32 +00:00
);
$body-bg: #f5f5f7;
2021-04-14 00:57:32 +00:00
$border-radius: .4rem;
$enable-transitions: false;
$enable-gradients: false;
$enable-shadows: false;
2022-07-18 21:24:28 +00:00
$btn-transition: none;
2021-05-21 22:32:21 +00:00
$form-feedback-icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M2 9h3v12H2a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1zm5.293-1.293l6.4-6.4a.5.5 0 0 1 .654-.047l.853.64a1.5 1.5 0 0 1 .553 1.57L14.6 8H21a2 2 0 0 1 2 2v2.104a2 2 0 0 1-.15.762l-3.095 7.515a1 1 0 0 1-.925.619H8a1 1 0 0 1-1-1V8.414a1 1 0 0 1 .293-.707z' fill='rgba(92, 128, 1, 1)'/%3E%3C/svg%3E");
2021-04-14 00:57:32 +00:00
$form-feedback-icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M22 15h-3V3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1zm-5.293 1.293l-6.4 6.4a.5.5 0 0 1-.654.047L8.8 22.1a1.5 1.5 0 0 1-.553-1.57L9.4 16H3a2 2 0 0 1-2-2v-2.104a2 2 0 0 1 .15-.762L4.246 3.62A1 1 0 0 1 5.17 3H16a1 1 0 0 1 1 1v11.586a1 1 0 0 1-.293.707z' fill='rgba(192,50,33,1)'/%3E%3C/svg%3E");
$line-height-base: 1.75;
$input-btn-padding-y: .42rem;
$input-btn-padding-x: .84rem;
2021-04-22 22:14:32 +00:00
$btn-padding-y: .42rem;
2022-07-18 21:24:28 +00:00
$btn-padding-x: 1.1rem;
2021-04-14 00:57:32 +00:00
$btn-font-weight: bold;
$btn-focus-width: 0;
2022-07-18 21:24:28 +00:00
$btn-border-width: 0;
2021-04-14 00:57:32 +00:00
$btn-focus-box-shadow: none;
$alert-border-width: 0;
$close-text-shadow: none;
$close-color: inherit;
$alert-border-radius: #{33% 2%} / #{11% 74%};
$link-color: #007cbe;
$font-size-base: .9rem;
$enable-responsive-font-sizes: true;
$link-hover-decoration: none;
2021-04-28 21:30:32 +00:00
$dropdown-border-color: #ced4da;
$dropdown-link-active-color: inherit;
$dropdown-link-hover-bg: transparent;
$dropdown-link-active-bg: transparent;
2022-07-18 21:24:28 +00:00
$dropdown-link-color: rgba(0, 0, 0, 0.7);
2021-04-28 21:30:32 +00:00
$dropdown-link-hover-color: rgba(0, 0, 0, 0.9);
2021-04-14 00:57:32 +00:00
$container-max-widths: (
sm: 540px,
md: 720px,
lg: 900px,
2022-07-18 21:24:28 +00:00
) !default;
2021-07-01 23:51:58 +00:00
$nav-link-padding-y: .1rem;
$nav-tabs-link-active-bg: #fff;
$nav-tabs-link-hover-border-color: transparent;
$nav-tabs-link-active-border-color: #ced4da #ced4da $nav-tabs-link-active-bg;
2021-07-08 18:42:57 +00:00
$tooltip-bg: #5c8001;
2021-04-14 00:57:32 +00:00
@import "~bootstrap/scss/bootstrap";
2021-12-16 20:02:17 +00:00
@media screen and (min-width: 767px) {
2022-07-18 21:24:28 +00:00
.table-sm th,
.table-sm td {
2021-12-16 20:02:17 +00:00
padding: .3rem .75rem;
}
}
2023-01-10 00:33:44 +00:00
.line-height-1 {
line-height: 1;
}
2023-01-06 01:06:31 +00:00
.lexical blockquote>* {
margin-bottom: 0 !important;
}
2022-03-10 19:51:26 +00:00
.modal-close {
cursor: pointer;
display: flex;
margin-left: auto;
padding-top: 1rem;
padding-right: 1.5rem;
font-family: "lightning";
font-size: 150%;
line-height: 1rem;
}
.modal-close:hover {
opacity: 0.7;
}
2022-07-18 21:24:28 +00:00
.modal-close+.modal-body {
2022-03-10 19:51:26 +00:00
padding-top: 0.5rem;
}
.text-muted {
color: var(--theme-grey) !important;
}
2022-07-18 21:24:28 +00:00
ol,
ul,
dl {
2022-02-17 17:23:43 +00:00
padding-inline-start: 2rem;
}
2022-02-03 22:01:42 +00:00
mark {
2022-07-18 21:24:28 +00:00
background-color: var(--primary
);
padding: 0 0.2rem;
2022-02-03 22:01:42 +00:00
}
2022-07-18 21:24:28 +00:00
.table-sm th,
.table-sm td {
2021-12-15 16:50:11 +00:00
line-height: 1.2rem;
}
2022-01-20 20:22:10 +00:00
.twitter-tweet {
margin-top: 0 !important;
margin-bottom: 0 !important;
padding-right: 12px;
}
.twitter-tweet iframe {
width: 100% !important;
}
2021-12-16 17:27:12 +00:00
.custom-checkbox.custom-control-inline {
margin-right: .5rem;
}
2021-12-15 16:50:11 +00:00
.table {
color: var(--theme-color);
background-color: var(--theme-body);
}
2022-07-18 21:24:28 +00:00
.table th,
.table td,
.table thead th {
2021-12-15 16:50:11 +00:00
border-color: var(--theme-borderColor);
}
2021-12-16 20:02:17 +00:00
.table-hover tbody tr:hover {
color: var(--theme-color);
background-color: var(--theme-clickToContextColor);
}
2021-05-05 18:13:14 +00:00
body {
2021-11-09 22:43:56 +00:00
background: var(--theme-body);
color: var(--theme-color);
2021-05-05 18:13:14 +00:00
min-height: 100vh;
2023-05-01 20:58:30 +00:00
min-height: 100svh;
2021-05-05 18:13:14 +00:00
}
a {
color: var(--theme-link);
}
a:hover {
color: var(--theme-linkHover);
}
2022-07-18 21:24:28 +00:00
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
2021-11-09 22:43:56 +00:00
color: inherit;
background-color: var(--theme-inputBg);
border-color: var(--theme-borderColor);
border-bottom-color: var(--theme-inputBg);
}
2022-10-26 15:21:35 +00:00
select.custom-select,
2023-01-05 19:24:09 +00:00
div[contenteditable],
2021-11-09 22:43:56 +00:00
.form-control {
background-color: var(--theme-inputBg);
color: var(--theme-color);
border-color: var(--theme-borderColor);
}
2023-05-01 20:58:30 +00:00
select.custom-select {
background-color: var(--theme-clickToContextColor);
color: var(--theme-dropdownItemColor);
font-weight: bold;
border: none;
background-image: url("data:image/svg+xml, %3Csvg fill='%23808080' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.0006L7.75732 10.758L9.17154 9.34375L12 12.1722L14.8284 9.34375L16.2426 10.758L12 15.0006Z'%3E%3C/path%3E%3C/svg%3E%0A");
background-repeat: no-repeat;
background-position: right .25rem center;
background-size: 1.5rem;
}
select.custom-select:focus {
border-color: none !important;
box-shadow: none !important;
}
2023-01-05 19:24:09 +00:00
div[contenteditable]:focus,
2021-11-09 22:43:56 +00:00
.form-control:focus {
2022-07-18 21:24:28 +00:00
background-color: var(--theme-inputBg);
2021-11-09 22:43:56 +00:00
color: var(--theme-color);
2023-01-05 19:24:09 +00:00
outline: 0;
box-shadow: 0 0 0 0.2rem rgb(250 218 94 / 25%);
2021-11-09 22:43:56 +00:00
}
2023-01-05 19:24:09 +00:00
div[contenteditable]:disabled,
2022-07-18 21:24:28 +00:00
.form-control:disabled,
.form-control[readonly] {
2021-11-09 23:13:34 +00:00
background-color: var(--theme-inputDisabledBg);
2021-11-09 22:43:56 +00:00
border-color: var(--theme-borderColor);
opacity: 1;
}
.clickToContext {
border-radius: .4rem;
2021-11-12 22:39:52 +00:00
padding: 0;
2021-11-09 22:43:56 +00:00
cursor: pointer;
}
2023-05-01 20:58:30 +00:00
.py-half {
padding-top: .125rem;
padding-bottom: .125rem;
}
2021-11-09 22:43:56 +00:00
.clickToContext:hover {
background-color: var(--theme-clickToContextColor);
}
2021-12-06 16:32:06 +00:00
.btn-primary svg {
fill: #212529;
}
2023-01-10 00:33:44 +00:00
.btn-grey svg {
fill: #212529;
}
2023-01-18 18:49:20 +00:00
.btn-grey-medium svg {
fill: #212529;
}
2021-11-09 22:43:56 +00:00
.fresh {
background-color: var(--theme-clickToContextColor);
border-radius: .4rem;
}
.modal-content {
2021-11-09 23:13:34 +00:00
background-color: var(--theme-inputBg);
2021-11-09 22:43:56 +00:00
border-color: var(--theme-borderColor);
}
.nav-link:not(.text-success) {
2021-11-09 22:43:56 +00:00
color: var(--theme-navLink) !important;
}
2022-07-18 21:24:28 +00:00
.nav-link:not(.text-success):hover,
.nav-link:not(.text-success):focus {
2021-11-09 22:43:56 +00:00
color: var(--theme-navLinkFocus) !important;
}
.nav-dropdown-toggle .btn-link {
color: var(--theme-navLink) !important;
}
.nav-dropdown-toggle .btn-link[aria-expanded="true"] {
color: var(--theme-navLinkFocus) !important;
}
.dropdown-menu {
2021-11-09 23:13:34 +00:00
background-color: var(--theme-inputBg);
2021-11-09 22:43:56 +00:00
border: 1px solid var(--theme-borderColor);
2022-07-18 21:24:28 +00:00
max-width: 90vw;
2022-09-29 20:20:38 +00:00
overflow: auto;
2021-11-09 22:43:56 +00:00
}
.dropdown-item {
2023-01-05 19:24:09 +00:00
color: var(--theme-dropdownItemColor) !important;
2021-11-09 22:43:56 +00:00
}
.dropdown-item:hover {
2023-01-05 19:24:09 +00:00
color: var(--theme-dropdownItemColorHover) !important;
2021-11-09 22:43:56 +00:00
}
.dropdown-item.active {
2023-01-05 19:24:09 +00:00
color: var(--theme-brandColor) !important;
2021-11-09 22:43:56 +00:00
text-shadow: 0 0 10px var(--primary);
}
.dropdown-divider {
2021-11-09 22:43:56 +00:00
border-top: 1px solid var(--theme-borderColor);
}
.theme {
cursor: pointer;
fill: var(--theme-dropdownItemColor);
}
.theme:hover {
fill: var(--theme-dropdownItemColorHover);
}
2021-06-02 23:15:28 +00:00
#__next {
display: flex;
flex-direction: column;
min-height: 100vh;
2023-05-01 20:58:30 +00:00
min-height: 100svh;
2021-06-02 23:15:28 +00:00
}
footer {
margin-top: auto;
display: flex;
width: 100%;
align-items: center;
justify-content: center;
2021-06-30 23:01:28 +00:00
text-align: center;
}
2021-10-29 16:02:26 +00:00
.text-boost-glow {
color: #8c25f4;
filter: drop-shadow(0 0 7px #8c25f4);
}
2021-06-30 23:01:28 +00:00
.text-twitter svg {
fill: #1da1f2 !important;
}
.text-muted svg {
fill: var(--theme-grey);
2021-06-02 23:15:28 +00:00
}
2021-11-04 23:07:41 +00:00
.pointer {
cursor: pointer;
}
2021-05-06 22:01:48 +00:00
@media screen and (max-width: 767px) {
2022-07-18 21:24:28 +00:00
input,
textarea,
.form-control,
.form-control:focus,
2023-01-05 19:24:09 +00:00
div[contenteditable],
div[contenteditable]:focus,
2022-07-18 21:24:28 +00:00
.input-group-text {
2021-05-06 22:01:48 +00:00
font-size: 1rem !important;
}
}
2023-01-05 19:24:09 +00:00
textarea.form-control,
div[contenteditable] {
2021-11-12 22:39:52 +00:00
line-height: 1rem;
}
2021-07-01 23:51:58 +00:00
.nav-tabs {
border-bottom: 0;
}
.nav-tabs .nav-link {
font-size: 80%;
color: #6c757d;
z-index: 100;
position: relative;
2021-07-02 00:05:35 +00:00
border-bottom: 0;
2021-07-01 23:51:58 +00:00
}
.nav-tabs .nav-link.active {
height: 100%;
}
2021-04-14 00:57:32 +00:00
.form-label {
font-size: 92%;
font-weight: bold;
}
.alert-dismissible .close {
font-weight: 300;
2021-10-08 14:35:57 +00:00
font-family: 'lightning';
}
2021-12-09 20:40:40 +00:00
.popover-header.alert-dismissible .close {
padding: .5rem !important;
}
2021-10-08 14:35:57 +00:00
.alert-dismissible .close::after {
content: 'X';
}
.nav-item {
font-weight: 500;
}
2021-10-21 22:05:06 +00:00
.nav-dropdown-toggle .dropdown-toggle::after {
display: inline-block;
}
.nav-dropdown-toggle .dropdown .btn {
padding: 0;
}
.nav-dropdown-toggle .dropdown .dropdown-toggle {
padding-left: .75rem;
padding-right: .5rem;
}
.nav-dropdown-toggle .nav-link {
padding-right: 0 !important;
font-weight: 500;
}
2021-04-28 21:30:32 +00:00
.dropdown-toggle::after {
display: none;
}
.dropdown-item {
font-weight: 500;
}
.dropdown-item.active {
2021-11-04 18:22:03 +00:00
text-shadow: 0 0 10px var(--primary);
2021-04-28 21:30:32 +00:00
}
2023-01-05 19:24:09 +00:00
div[contenteditable]:focus,
2021-04-14 00:57:32 +00:00
.form-control:focus {
2021-11-04 18:22:03 +00:00
border-color: var(--primary);
2021-04-14 00:57:32 +00:00
}
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:disabled {
color: #ffffff;
}
2021-04-24 21:05:07 +00:00
.btn-twitter svg {
fill: #ffffff;
}
.btn-dark svg {
fill: #ffffff;
}
2021-04-22 22:14:32 +00:00
.nav-link.active {
font-weight: bold;
2021-04-14 00:57:32 +00:00
}
2021-11-09 22:43:56 +00:00
.nav-link.active:not(.text-success) {
color: var(--theme-navLinkActive) !important;
}
2022-04-21 17:48:27 +00:00
.nav-link svg {
fill: var(--theme-navLink);
}
.nav-link.active svg {
fill: var(--theme-navLinkActive);
}
2021-05-06 21:15:22 +00:00
.fill-grey {
fill: var(--theme-grey);
2021-05-06 21:15:22 +00:00
}
2022-04-19 21:37:05 +00:00
.fill-lgrey {
fill: #a5a5a5;
}
2022-03-23 21:45:36 +00:00
.fill-secondary {
fill: var(--secondary);
}
.fill-boost {
fill: var(--boost);
}
2022-01-23 17:21:55 +00:00
.fill-white {
fill: white;
}
2021-05-11 15:52:50 +00:00
.fill-success {
2022-03-23 18:54:39 +00:00
fill: var(--success);
}
.fill-info {
fill: var(--info);
2021-05-11 15:52:50 +00:00
}
.fill-danger {
2022-03-23 18:54:39 +00:00
fill: var(--danger);
2021-05-11 15:52:50 +00:00
}
2022-02-17 17:23:43 +00:00
.fill-theme-color {
fill: var(--theme-color);
}
2021-09-10 18:55:36 +00:00
.text-underline {
text-decoration: underline;
}
2021-04-14 00:57:32 +00:00
@keyframes flash {
2022-07-18 21:24:28 +00:00
from {
filter: brightness(1);
}
2% {
filter: brightness(2.3);
}
4% {
filter: brightness(1.4);
}
8% {
filter: brightness(3);
}
16% {
filter: brightness(1);
}
to {
filter: brightness(1);
}
2021-04-20 00:47:40 +00:00
}
2021-04-22 22:14:32 +00:00
.clouds {
2021-11-04 18:22:03 +00:00
background-image: url('/clouds.jpeg') !important;
2022-07-18 21:24:28 +00:00
background-color: var(--theme-grey);
2021-04-22 22:14:32 +00:00
background-repeat: repeat;
background-origin: content-box;
background-size: cover;
background-attachment: fixed;
opacity: .2;
2021-05-06 21:15:22 +00:00
}
2021-06-24 23:56:01 +00:00
.flash-it {
2021-08-17 23:59:22 +00:00
animation: flash 2s linear 1;
2021-06-24 23:56:01 +00:00
}
2021-05-06 21:15:22 +00:00
@keyframes spin {
2022-07-18 21:24:28 +00:00
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359deg);
}
2021-05-06 21:15:22 +00:00
}
.spin {
animation: spin 2s linear infinite;
}
.static {
background: url('/giphy.gif');
2022-07-18 21:24:28 +00:00
background-color: var(--theme-grey);
2021-05-06 21:15:22 +00:00
background-repeat: repeat;
background-origin: content-box;
background-size: cover;
background-attachment: fixed;
opacity: .1;
2021-05-11 15:52:50 +00:00
}
2022-07-18 21:24:28 +00:00
@keyframes flipX {
2021-05-11 15:52:50 +00:00
from {
2022-07-18 21:24:28 +00:00
transform: rotateX(180deg);
2021-05-11 15:52:50 +00:00
}
2022-07-18 21:24:28 +00:00
2021-05-11 15:52:50 +00:00
to {
2022-07-18 21:24:28 +00:00
transform: rotateX(-180deg);
2021-05-11 15:52:50 +00:00
}
}
.flipX {
animation: flipX 2s linear infinite;
}
2022-07-18 21:24:28 +00:00
@keyframes flipY {
2021-05-11 15:52:50 +00:00
from {
2022-07-18 21:24:28 +00:00
transform: rotateY(0deg);
2021-05-11 15:52:50 +00:00
}
2022-07-18 21:24:28 +00:00
2021-05-11 15:52:50 +00:00
to {
2022-07-18 21:24:28 +00:00
transform: rotateY(360deg);
2021-05-11 15:52:50 +00:00
}
}
.flipY {
animation: flipY 4s linear infinite;
}
2022-07-18 21:24:28 +00:00
@media (hover:none),
(hover:on-demand) {
.tooltip {
visibility: hidden;
pointer-events: none;
}
2021-12-05 17:37:55 +00:00
}
.tooltip-inner {
padding: 0.1rem 0.3rem;
2021-12-06 15:32:33 +00:00
}
.popover {
.popover-header {
color: #212529;
}
2021-04-22 22:14:32 +00:00
}