1
0
Fork 0
mirror of https://github.com/Findus23/guides.git synced 2024-09-19 16:03:51 +02:00
guides/assets/sass/main.scss

215 lines
3.1 KiB
SCSS
Raw Normal View History

2022-01-08 21:41:33 +01:00
@import "variables";
@import "syntax";
2022-12-20 12:38:39 +01:00
@import "font";
2022-01-08 21:41:33 +01:00
a {
color: $green;
2023-09-22 11:33:59 +02:00
transition: color .2s;
&:focus, &:active, &:hover {
color: darken($green, 25%);
2022-12-30 19:26:54 +01:00
}
2023-09-22 11:33:59 +02:00
2022-12-20 12:38:39 +01:00
code {
2023-09-22 11:33:59 +02:00
text-decoration: underline;
text-underline-offset: .25rem;
transition: background-color .2s;
&:focus, &:active, &:hover {
background: lighten(#272822, 15%);
}
2022-12-20 12:38:39 +01:00
}
2022-01-08 21:41:33 +01:00
}
body {
2024-02-03 20:43:37 +01:00
font-family: sans-serif;
2022-01-08 21:41:33 +01:00
margin: 40px auto;
max-width: 800px;
line-height: 1.6;
font-size: 18px;
color: #222;
padding: 0 10px
}
2022-01-08 22:59:34 +01:00
main {
margin-bottom: 1rem;
}
h1, h2, h3, h4, h5 {
line-height: 1.2;
font-family: sans-serif;
2024-02-03 20:43:37 +01:00
text-wrap: balance;
}
h1,.cards .card h2{
text-align: center;
font-size: 2rem;
2022-01-08 21:41:33 +01:00
}
code {
2022-05-31 11:25:03 +02:00
@extend .chroma;
2023-09-22 11:33:59 +02:00
display: inline-block;
padding: 0 .3rem;
2022-12-20 12:38:39 +01:00
}
code::selection, .chroma ::selection {
background: #f8f8f2;
color: #272822;
}
code {
font-family: "Fira Code", monospace, monospace;
2022-01-08 21:41:33 +01:00
}
pre {
border: 1px solid #ddd;
box-shadow: 5px 5px 5px #eee;
padding: 1em;
overflow-x: auto;
white-space: pre-wrap;
2022-12-20 12:38:39 +01:00
font-family: "Fira Code", monospace, monospace;
2022-01-08 21:41:33 +01:00
code {
2022-05-17 15:02:45 +02:00
background: none;
2022-05-31 11:25:03 +02:00
padding: 0;
2022-01-08 21:41:33 +01:00
}
2022-05-31 11:25:03 +02:00
// .language-bash {
// &::before {
// content: "$ ";
// color: #50fa7b;
// }
// }
2022-01-08 21:41:33 +01:00
}
2023-09-22 11:33:59 +02:00
#back-heading{
//border-bottom: solid 1px black;
//padding-bottom: ;
a {
color: black;
text-decoration: none;
transition: color .2s;
&:focus, &:active, &:hover {
color: $green;
}
}
}
header {
margin-bottom: 2rem;
}
2022-01-08 21:41:33 +01:00
.table-of-contents {
font-size: .8rem;
2023-09-22 11:33:59 +02:00
border: 1px solid black;
margin-bottom: 2rem;
2022-01-08 21:41:33 +01:00
}
.alert {
padding: 1rem;
margin-bottom: 1rem;
border: 1px solid;
a {
2022-05-17 15:02:45 +02:00
color: inherit;
2022-01-08 21:41:33 +01:00
}
&.warning {
2022-05-17 15:02:45 +02:00
color: mix(black, $warning, 80%);
background: mix(white, $warning, 80%);
border-color: mix(white, $warning, 70%);
2022-01-08 21:41:33 +01:00
}
2022-01-08 22:59:34 +01:00
2022-01-08 21:41:33 +01:00
&.info {
2022-05-17 15:02:45 +02:00
color: mix(black, $info, 80%);
background: mix(white, $info, 80%);
border-color: mix(white, $info, 70%);
2022-01-08 21:41:33 +01:00
}
2022-01-08 22:59:34 +01:00
2022-01-08 21:41:33 +01:00
&.danger {
2022-05-17 15:02:45 +02:00
color: mix(black, $danger, 80%);
background: mix(white, $danger, 80%);
border-color: mix(white, $danger, 70%);
2022-01-08 21:41:33 +01:00
}
2022-01-08 22:59:34 +01:00
2022-01-08 21:41:33 +01:00
&.success {
2022-05-17 15:02:45 +02:00
color: mix(black, $success, 80%);
background: mix(white, $success, 80%);
border-color: mix(white, $success, 70%);
2022-01-08 22:59:34 +01:00
}
}
.cards {
.card {
2022-05-17 15:02:45 +02:00
padding: 1rem;
margin-bottom: 1rem;
border: solid 1px black;
2022-01-08 22:59:34 +01:00
2022-05-17 15:02:45 +02:00
h2 {
margin-top: 0;
}
2022-01-08 22:59:34 +01:00
}
}
footer {
display: flex;
justify-content: space-between;;
}
figure {
2022-05-17 15:02:45 +02:00
text-align: center;
img, video {
max-width: 100%;
height: auto;
margin: auto;
display: block;
2022-01-08 21:41:33 +01:00
}
}
2022-12-19 14:37:47 +01:00
a.heading-anchor {
position: absolute;
display: none;
2023-02-02 15:27:16 +01:00
left: -35px;
2022-12-19 14:37:47 +01:00
padding-right: 10px;
padding-left: 10px;
text-decoration: none;
}
2022-12-20 12:38:39 +01:00
h1, h2, h3, h4, h5, h6 {
2022-12-19 14:37:47 +01:00
position: relative;
2022-12-20 12:38:39 +01:00
2022-12-19 14:37:47 +01:00
&:hover a.heading-anchor {
display: block;
}
}
2022-12-20 23:50:11 +01:00
.chroma .shell {
user-select: none;
color: #11D116;
}
2022-12-30 19:26:54 +01:00
2023-09-22 11:33:59 +02:00
.badge {
margin: 0 5px;
padding: 0 .3rem;
background: $green;
color: white;
text-decoration: none;
transition: background-color .2s;
&:focus, &:active, &:hover {
background: darken($green, 15%);
}
}
nav.categories {
2022-12-30 19:26:54 +01:00
display: flex;
a {
2023-09-22 11:33:59 +02:00
@extend .badge;
2022-12-30 19:26:54 +01:00
}
}