maggioni.xyz/_sass/_base.scss
Claudio Maggioni 53647566bc ROR baby
2023-01-03 23:47:03 +01:00

187 lines
2.6 KiB
SCSS

/* vim: set ts=2 sw=2 et tw=80: */
/* Reset some basic elements */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
hr,
dl,
dd,
ol,
ul,
figure {
margin: 0;
padding: 0;
}
/* Basic styling */
html {
font-weight: $base-font-weight;
font-size: $base-font-size;
line-height: $base-line-height;
font-family: $base-font-family;
color: $text-color;
background-color: $background-color;
-webkit-text-stroke: 0.25px #888;
}
/* Images */
img {
max-width: 100%;
vertical-align: middle;
}
/* Lists */
ul,
ol {
margin-left: $spacing-unit;
}
/* Disable margin for lists */
li > ul,
li > ol {
margin-bottom: 0;
}
/* Headings */
h2,
h3,
h4,
h5,
h6 {
font-weight: $base-font-weight;
text-decoration: underline;
}
/* Links */
a {
color: $brand-color;
background: $nav-bg;
text-decoration: none;
-webkit-text-stroke: 0.25px #1B1256;
font-weight: bold;
&:visited {
}
&:hover {
text-decoration: underline;
}
}
/**
* Blockquotes
*/
blockquote {
color: $nav-bg;
background: $nav-col;
border-left: 4px solid $brand-color;
letter-spacing: -1px;
font-style: italic;
margin: 1rem 0;
padding: 1em;
> :last-child {
margin-bottom: 0;
}
}
/* do not put padding around the table with line numbers and the code */
code table {
margin: -8px -12px;
}
pre table.rouge-table td {
padding: 0;
}
pre {
padding: 8px 12px;
overflow-x: auto;
> code {
border: 0;
padding-right: 0;
padding-left: 0;
}
}
/* pull a nice monospace font from the internets, plus set font and
* background */
pre,
code {
font-size: 0.95rem;
background: $nav-col;
}
a code {
background: $nav-bg;
}
/* Disable borders between line numbers and code when
* line numbers are shown */
code .rouge-table,
code .rouge-table td {
border: 0;
border-radius: 0;
}
code .rouge-table {
border-spacing: 0;
border-collapse: collapse;
}
/**
* Basic layout rules
*/
/* Padding for the main content in the page */
.container {
padding: 0.4rem 2em;
}
/* Header sizes */
/**
* General style for the content inside main
*/
/* separate article metadata to the article itself with some space */
article .post-header {
margin-bottom: 3rem;
}
/* put some space at the end of each article and at the end of each section */
main article,
main section {
margin-bottom: 2rem;
}
/* justify text */
p {
text-align: justify;
}
/* put a space between paragraphs and images */
p,
figure {
margin-top: 1.2rem;
}
/* the first paragraph has no space at the top (since that is provided
* by either main or h? */
p:first-child {
margin-top: 0;
}
/* make strongly emphasized elements REALLY STRONG */
strong {
background: #faa;
}