939 lines
16 KiB
SCSS
939 lines
16 KiB
SCSS
@import "app/config";
|
|
@import "~wire.css/src/scss/wire";
|
|
@import "~tingle.js/src/tingle.css";
|
|
@import 'app/prism';
|
|
@import 'app/alert';
|
|
|
|
@font-face {
|
|
font-family: "MainFont";
|
|
src:
|
|
url('../fonts/ubuntu/ubuntu-light.woff2?20211108') format('woff2'),
|
|
url('../fonts/ubuntu/ubuntu-light.woff?20211108') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "deblan-icon";
|
|
src: url('../fonts/deblan/deblan-icon.eot?20211108');
|
|
src:
|
|
url('../fonts/deblan/deblan-icon.woff2?20211108') format('woff2'),
|
|
url('../fonts/deblan/deblan-icon.woff?20211108') format('woff'),
|
|
url('../fonts/deblan/deblan-icon.ttf?20211108') format('truetype');
|
|
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
@mixin make-pre {
|
|
padding: 10px;
|
|
border: 1px solid $color-code-border;
|
|
overflow: auto;
|
|
background: $color-code-background;
|
|
color: $color-code-text;
|
|
font-size: 13px;
|
|
}
|
|
|
|
@mixin make-pre-code {
|
|
color: $color-code-text;
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
html, body {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font-size: 1.7em;
|
|
}
|
|
|
|
$dicons: coffee server search project share contact list response twitter diaspora github code rss linkedin mastodon pixelfed gpg matrix murph cube link;
|
|
|
|
.d-none {
|
|
display: none;
|
|
}
|
|
|
|
.deblan-icon {
|
|
font-family: 'deblan-icon';
|
|
vertical-align: middle;
|
|
|
|
@each $dicon in $dicons {
|
|
&-#{$dicon}::before {
|
|
content: "#{$dicon}";
|
|
}
|
|
}
|
|
}
|
|
|
|
.deblan-icon-svg svg {
|
|
vertical-align: middle;
|
|
margin-top: -4px;
|
|
margin-right: 3px;
|
|
}
|
|
|
|
.button .deblan-icon {
|
|
margin-right: 5px;
|
|
margin-left: -3px;
|
|
}
|
|
|
|
li, p {
|
|
-webkit-hyphens: auto;
|
|
-moz-hyphens: auto;
|
|
-ms-hyphens: auto;
|
|
-o-hyphens: auto;
|
|
hyphens: auto;
|
|
}
|
|
|
|
code mark {
|
|
color: inherit;
|
|
background: $color-code-mark-background;
|
|
}
|
|
|
|
a:focus .logo-svg * {
|
|
fill: $color-grey;
|
|
}
|
|
|
|
pre[class*="language-"] {
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
.page {
|
|
min-height: 100vh;
|
|
background: $color-white;
|
|
font-family: "MainFont";
|
|
}
|
|
|
|
.form .field {
|
|
input[type=text],
|
|
input[type=email],
|
|
input[type=url],
|
|
textarea {
|
|
border-radius: 10px;
|
|
}
|
|
}
|
|
|
|
.button, .btn, input[type="submit"], input[type="button"] {
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.no-margin {
|
|
margin: 0;
|
|
}
|
|
|
|
.navigation {
|
|
padding-top: 35px;
|
|
font-size: 15px;
|
|
|
|
.deblan-icon {
|
|
margin-right: 9px;
|
|
}
|
|
|
|
ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
li {
|
|
margin: 0 0 3px 0;
|
|
padding: 0;
|
|
}
|
|
|
|
a {
|
|
color: $color-white;
|
|
display: block;
|
|
padding: 12px 15px;
|
|
background: $color-navigation-item-background;
|
|
|
|
&:hover, &.active, &:focus {
|
|
background: $color-navigation-item-background-active;
|
|
}
|
|
}
|
|
}
|
|
|
|
.small-menu {
|
|
background: $color-small-menu-background;
|
|
padding: 5px;
|
|
position: fixed;
|
|
bottom: 0;
|
|
width: 100%;
|
|
z-index: 1000;
|
|
|
|
.navigation {
|
|
padding-top: 0;
|
|
float: right;
|
|
|
|
a {
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.deblan-icon {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
img {
|
|
padding: 10px;
|
|
}
|
|
}
|
|
|
|
.wide-menu {
|
|
width: 230px;
|
|
background: linear-gradient(to bottom, $color-wide-menu-background-from 0%, $color-wide-menu-background-to 500px);
|
|
padding: 34px 25px;
|
|
min-height: calc(100vh - 130px);
|
|
|
|
.navigation {
|
|
li {
|
|
$radius: 8px;
|
|
|
|
&:first-child a {
|
|
border-top-right-radius: $radius;
|
|
border-top-left-radius: $radius;
|
|
}
|
|
|
|
&:last-child a {
|
|
border-bottom-right-radius: $radius;
|
|
border-bottom-left-radius: $radius;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes gradientBackground {
|
|
0% {
|
|
background-position: 0 0%;
|
|
}
|
|
50% {
|
|
background-position: 0 75%;
|
|
}
|
|
100% {
|
|
background-position: 0 0%;
|
|
}
|
|
}
|
|
|
|
.header {
|
|
background: linear-gradient(180deg, $color-header-background-from, $color-header-background-to);
|
|
background-size: 100% 200%;
|
|
color: $color-white;
|
|
animation: gradientBackground 10s ease infinite;
|
|
text-shadow: 0px 0px 6px #000;
|
|
}
|
|
|
|
.header-wrapper {
|
|
max-width: 1100px;
|
|
padding: 30px 40px;
|
|
margin: auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.fixed-menu {
|
|
position: fixed;
|
|
width: calc(230px - 50px);
|
|
}
|
|
|
|
.content {
|
|
background: $color-content-background;
|
|
width: calc(100% - 230px);
|
|
}
|
|
|
|
.header {
|
|
color: $color-header-text;
|
|
|
|
p, h1, ul {
|
|
position: relative;
|
|
z-index: 1000;
|
|
}
|
|
|
|
#particles {
|
|
width: 100%;
|
|
top: 0;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
z-index: 50;
|
|
}
|
|
|
|
.h1 {
|
|
font-weight: normal;
|
|
font-size: 40px;
|
|
}
|
|
|
|
.h3 {
|
|
font-size: 17px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
a {
|
|
color: $color-header-text !important;
|
|
|
|
&:focus {
|
|
color: $color-blue !important;
|
|
background: $color-white;
|
|
}
|
|
}
|
|
}
|
|
|
|
.body {
|
|
padding: 25px 40px;
|
|
max-width: 1100px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
|
|
iframe {
|
|
margin-bottom: 25px;
|
|
border: none;
|
|
}
|
|
|
|
img {
|
|
width: auto;
|
|
cursor: zoom-in;
|
|
}
|
|
|
|
a, h1, h2, h3, h4, h5, p, ul {
|
|
color: $color-body-text;
|
|
}
|
|
|
|
p a, ul a {
|
|
border-bottom: 2px dotted $color-blue2;
|
|
}
|
|
|
|
.pager a {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
blockquote {
|
|
border-left: 2px solid $color-blockquote-border;
|
|
margin: 10px;
|
|
padding: 5px 20px;
|
|
|
|
p {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
code {
|
|
color: $code-color;
|
|
}
|
|
}
|
|
|
|
.content hr {
|
|
border: 0;
|
|
border-bottom: 1px dashed $color-hr-border;
|
|
background: $color-hr-background;
|
|
max-width: 300px;
|
|
margin: 20px auto;
|
|
}
|
|
|
|
.reviews {
|
|
padding: 0 40px;
|
|
max-width: 1100px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
|
|
hr:first-child {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
blockquote {
|
|
border-left: 2px solid $color-blockquote-border;
|
|
margin: 10px;
|
|
padding: 5px 20px;
|
|
|
|
p {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.review-body {
|
|
code {
|
|
color: $code-color;
|
|
}
|
|
|
|
pre {
|
|
@include make-pre;
|
|
|
|
code {
|
|
@include make-pre-code;
|
|
}
|
|
}
|
|
|
|
img {
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
@for $i from 1 through 6 {
|
|
.review.offset-#{$i} {
|
|
margin-left: 5% * $i - 1%;
|
|
width: 100% - ($i * 5%);
|
|
}
|
|
}
|
|
|
|
.review {
|
|
width: 100%;
|
|
|
|
.review-avatar {
|
|
display: inline-block;
|
|
width: 60px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.review-content {
|
|
display: inline-block;
|
|
width: calc(100% - 75px);
|
|
}
|
|
|
|
ul {
|
|
margin: 0;
|
|
padding: 0 0 25px 0;
|
|
}
|
|
|
|
|
|
a svg {
|
|
display: inline-block;
|
|
height: 21px;
|
|
width: 15px;
|
|
vertical-align: middle;
|
|
margin-right: 3px;
|
|
}
|
|
|
|
.review-header {
|
|
border-bottom: 1px solid $color-very-light-grey;
|
|
padding-bottom: 5px;
|
|
margin-bottom: 5px;
|
|
color: $color-dark-grey;
|
|
|
|
.review-anchor-link {
|
|
color: $color-dark-grey;
|
|
}
|
|
}
|
|
|
|
.review-body {
|
|
color: $color-dark-grey;
|
|
margin-bottom: 10px;
|
|
|
|
ul {
|
|
margin: 0 !important;
|
|
padding: 0 0 10px 10px !important;
|
|
}
|
|
|
|
li {
|
|
list-style: disc;
|
|
margin: 0 0 0 15px;
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.body {
|
|
pre {
|
|
@include make-pre;
|
|
|
|
code {
|
|
@include make-pre-code;
|
|
}
|
|
|
|
&.with-title {
|
|
margin-top: 0;
|
|
border-top-right-radius: 0;
|
|
border-top-left-radius: 0;
|
|
}
|
|
|
|
&[class*="language-"] {
|
|
padding-bottom: 10px;
|
|
padding-top: 10px;
|
|
border: 1px solid #3c3c3c;
|
|
}
|
|
}
|
|
}
|
|
|
|
.code-title {
|
|
background: $color-code-title-background;
|
|
padding: 10px 15px;
|
|
color: $color-code-title-text;
|
|
}
|
|
|
|
.code-window {
|
|
height: 30px;
|
|
background: $color-code-title-background url('../images/window.svg') no-repeat center right;
|
|
}
|
|
|
|
.body-content {
|
|
line-height: 30px;
|
|
}
|
|
|
|
.quick-image {
|
|
img {
|
|
width: 100%;
|
|
height: 450px;
|
|
background-position: center center;
|
|
background: #f2f2f2 url('../images/quick-post-load.png') no-repeat center center;
|
|
border: 2px solid $color-very-light-grey;
|
|
border-bottom: 0;
|
|
cursor: pointer;
|
|
border-top-left-radius: 5px;
|
|
border-top-right-radius: 5px;
|
|
}
|
|
}
|
|
|
|
.quick-video {
|
|
.video-ratio {
|
|
border: 2px solid $color-very-light-grey;
|
|
border-bottom: 0;
|
|
border-top-left-radius: 5px;
|
|
border-top-right-radius: 5px;
|
|
|
|
iframe {
|
|
border-top-left-radius: 5px;
|
|
border-top-right-radius: 5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.video-ratio {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 0;
|
|
|
|
iframe {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
left: 0;
|
|
top: 0;
|
|
}
|
|
}
|
|
|
|
.quick-body {
|
|
padding: 10px 10px 0 10px;
|
|
border: 2px solid $color-very-light-grey;
|
|
margin-top: -7px;
|
|
border-bottom-left-radius: 5px;
|
|
border-bottom-right-radius: 5px;
|
|
|
|
> p:last-child {
|
|
margin-bottom: 8px;
|
|
}
|
|
}
|
|
|
|
.error_list {
|
|
color: $color-red !important;
|
|
padding: 4px 0 !important;
|
|
}
|
|
|
|
.content-footer {
|
|
font-size: 14px;
|
|
background: darken($color-dark-grey, 10%);
|
|
text-align: center;
|
|
border-top: 1px dotted $color-very-dark-grey;
|
|
color: $color-white;
|
|
padding-top: 20px;
|
|
padding-bottom: 20px;
|
|
|
|
a {
|
|
font-weight: bold;
|
|
color: $color-white;
|
|
}
|
|
|
|
ul {
|
|
margin: 0;
|
|
padding: 0 0 10px 0;
|
|
}
|
|
|
|
li {
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
&::after {
|
|
content: '-';
|
|
margin: 0 5px;
|
|
}
|
|
|
|
&:last-child::after {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 0;
|
|
margin-top: 10px;
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
.links {
|
|
margin: 0;
|
|
padding: 5px 0 0 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.link {
|
|
margin: 0 1px;
|
|
display: inline-block;
|
|
|
|
a {
|
|
display: block;
|
|
font-size: 13px;
|
|
padding-top: 1px;
|
|
padding-right: 1px;
|
|
height: 20px;
|
|
width: 20px;
|
|
overflow: hidden;
|
|
color: $color-white;
|
|
|
|
span {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.links a:focus, .wide-menu a:focus .fixed {
|
|
border: 1px solid $color-white;
|
|
}
|
|
|
|
$links: (
|
|
twitter: #20b8ff,
|
|
rss: #fd9f13,
|
|
linkedin: #006699,
|
|
diaspora: #90b92e,
|
|
github: #8cc345,
|
|
code: #51d066,
|
|
mastodon: #2984d2,
|
|
pixelfed: #e72151,
|
|
matrix: #1a588a,
|
|
gpg: #42a73b,
|
|
murph: #19b4db
|
|
);
|
|
|
|
@each $site, $bg in $links {
|
|
.link-#{$site} {
|
|
background-color: $bg;
|
|
|
|
&:hover a, &:focus a, a:focus, a:hover {
|
|
color: $color-very-light-grey;
|
|
}
|
|
}
|
|
}
|
|
|
|
.form .field input[type="checkbox"] + label, .form .field input[type="radio"] + label {
|
|
margin-left: 1rem;
|
|
margin-top: -2px;
|
|
}
|
|
|
|
.preview-button {
|
|
cursor: pointer;
|
|
margin-left: 3px;
|
|
}
|
|
|
|
.content-footer, .body, .review, form {
|
|
a:focus {
|
|
background: $color-blue;
|
|
color: $color-white;
|
|
}
|
|
}
|
|
|
|
.button {
|
|
&:focus {
|
|
background: $color-very-dark-grey;
|
|
}
|
|
|
|
&.alt {
|
|
color: #444;
|
|
}
|
|
}
|
|
|
|
.button, .btn, input[type="submit"], input[type="button"] {
|
|
background: $color-blue;
|
|
}
|
|
|
|
.button:hover, .btn:hover, input:hover[type="submit"], input:hover[type="button"] {
|
|
background: $color-blue2;
|
|
}
|
|
|
|
.button:focus, .btn:focus, input:focus[type="submit"], input:focus[type="button"] {
|
|
background: $color-blue2;
|
|
}
|
|
|
|
.pager {
|
|
padding: 20px 20px 0 20px;
|
|
text-align: center;
|
|
|
|
.pager-page {
|
|
padding: 0 2px 2px 2px;
|
|
|
|
&.active {
|
|
.button {
|
|
color: #000;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
|
|
.button {
|
|
padding: 8px;
|
|
}
|
|
}
|
|
|
|
|
|
@keyframes bounceIn {
|
|
0%{
|
|
opacity: 0;
|
|
}
|
|
50%{
|
|
opacity: 0.9;
|
|
}
|
|
80%{
|
|
opacity: 1;
|
|
}
|
|
100%{
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes knmc {
|
|
0%{
|
|
left: -256px;;
|
|
}
|
|
100%{
|
|
left: 150vw;
|
|
}
|
|
}
|
|
|
|
.knmc {
|
|
animation-name: knmc;
|
|
animation-duration: 15s;
|
|
animation-iteration-count: 1;
|
|
}
|
|
|
|
.logo-svg {
|
|
animation-name: bounceIn;
|
|
animation-duration: 1s;
|
|
}
|
|
|
|
.logo-svg {
|
|
animation-name: bounceIn;
|
|
animation-duration: 1s;
|
|
}
|
|
|
|
.modal-open {
|
|
overflow: hidden;
|
|
|
|
.modal {
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
|
|
.tingle-modal-box--mesh {
|
|
.tingle-modal-box__content {
|
|
padding: 0;
|
|
line-height: 0;
|
|
|
|
iframe {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 90vh;
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.meshes {
|
|
padding: 0 20px 20px 20px;
|
|
}
|
|
|
|
.mesh {
|
|
border: 1px solid $color-hr-border;
|
|
border-radius: 10px;
|
|
margin: 20px;
|
|
|
|
&-preview {
|
|
img {
|
|
border-top-left-radius: 10px;
|
|
border-top-right-radius: 10px;
|
|
}
|
|
}
|
|
|
|
&-title {
|
|
font-size: 16px;
|
|
padding: 10px;
|
|
color: $color-body-text;
|
|
}
|
|
|
|
&-description {
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
}
|
|
|
|
&-file {
|
|
ul {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 1280px) {
|
|
.mesh-wrapper {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 980px) {
|
|
.quick-image img {
|
|
height: 200px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 719px) {
|
|
.content-footer {
|
|
margin-bottom: 40px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 550px) {
|
|
.body {
|
|
padding: 10px 10px 20px 10px;
|
|
}
|
|
|
|
.reviews {
|
|
padding: 10px 10px 20px 10px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 719px) {
|
|
.content {
|
|
width: 100%;
|
|
}
|
|
|
|
.review {
|
|
.review-avatar {
|
|
display: none;
|
|
}
|
|
|
|
.review-content {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 380px) {
|
|
.navigation {
|
|
a {
|
|
padding: 7px 10px;
|
|
}
|
|
}
|
|
|
|
.small-menu {
|
|
img {
|
|
width: 20px;
|
|
margin-top: 11px;
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.content {
|
|
background: #35363f;
|
|
}
|
|
|
|
.body, .review, #form {
|
|
a, h1, h2, h3, h4, h5, p, ul, li, label, th, td,
|
|
.h1, .h2, .h3, .h4, .h5, .review-body {
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
.review .review-header .review-anchor-link {
|
|
color: #ccc;
|
|
}
|
|
|
|
.body p a, .body ul a {
|
|
border-bottom: 2px dotted $color-white;
|
|
}
|
|
|
|
.body p strong, .body ul strong {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.body .pager a {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
img.border {
|
|
border-color: #32333b;
|
|
}
|
|
|
|
.form .field {
|
|
input[type=text],
|
|
input[type=email],
|
|
input[type=url],
|
|
textarea {
|
|
border-color: #32333b;
|
|
background: #86899f;
|
|
}
|
|
}
|
|
|
|
.content hr {
|
|
background: none;
|
|
}
|
|
|
|
.quick-body,
|
|
.quick-video .video-ratio,
|
|
.quick-image img,
|
|
.content hr,
|
|
.alert
|
|
{
|
|
border-color: #86899f;
|
|
}
|
|
|
|
.code-title {
|
|
background: #000000;
|
|
}
|
|
|
|
.code-window {
|
|
background: #000000 url('../images/window.svg') no-repeat center right;
|
|
}
|
|
|
|
.body pre {
|
|
background: #141414;
|
|
}
|
|
|
|
.body pre[class*="language-"], .code-title {
|
|
border: 1px solid #000000;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.body pre {
|
|
&.with-title {
|
|
border: 3px solid #000;
|
|
}
|
|
}
|
|
|
|
.mesh {
|
|
border-color: #86899f;
|
|
|
|
&-title {
|
|
color: #fff;
|
|
}
|
|
|
|
&-description {
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
@media all and (max-height: 465px) {
|
|
.wide-menu {
|
|
.navigation {
|
|
max-height: calc(100vh - 100px);
|
|
padding-top: 10px;
|
|
overflow: auto;
|
|
}
|
|
}
|
|
}
|