mirror of
https://github.com/Chalarangelo/mini.css.git
synced 2025-08-31 09:31:44 +02:00
Code element styling
Customized font stack, along with base styling (needs tweaks).
This commit is contained in:
91
dist/mini-default.css
vendored
91
dist/mini-default.css
vendored
@@ -1,3 +1,4 @@
|
||||
@charset "UTF-8";
|
||||
/*
|
||||
Flavor name: Default (mini-default)
|
||||
Author: Angelos Chalaris (chalarangelo@gmail.com)
|
||||
@@ -12,8 +13,15 @@
|
||||
--fore-color: #212121;
|
||||
--secondary-fore-color: #424242;
|
||||
--back-color: #f8f8f8;
|
||||
--secondary-back-color: #e6e6e6;
|
||||
--blockquote-color: #f57c00;
|
||||
--pre-color: #1565c0;
|
||||
--border-color: #acacac;
|
||||
--secondary-border-color: #c9c9c9;
|
||||
--heading-ratio: 1.19;
|
||||
--side-margin: 0.5rem;
|
||||
--universal-margin: 0.5rem;
|
||||
--universal-padding: 0.5rem;
|
||||
--universal-border-radius: 0.125rem;
|
||||
}
|
||||
|
||||
html {
|
||||
@@ -60,7 +68,7 @@ img {
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
line-height: 1.2;
|
||||
margin: calc(1.5 * var(--side-margin)) var(--side-margin);
|
||||
margin: calc(1.5 * var(--universal-margin)) var(--universal-margin);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -93,3 +101,82 @@ h5 {
|
||||
h6 {
|
||||
font-size: calc(1rem / var(--heading-ratio));
|
||||
}
|
||||
|
||||
p {
|
||||
margin: var(--universal-margin);
|
||||
}
|
||||
|
||||
ol, ul {
|
||||
margin: var(--universal-margin);
|
||||
padding-left: calc(2 * var(--universal-margin));
|
||||
}
|
||||
|
||||
b, strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
hr {
|
||||
box-sizing: content-box;
|
||||
border: 0;
|
||||
line-height: 1.25em;
|
||||
margin: var(--universal-margin);
|
||||
height: 0.0625rem;
|
||||
background: linear-gradient(to right, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
|
||||
}
|
||||
|
||||
blockquote {
|
||||
display: block;
|
||||
position: relative;
|
||||
font-style: italic;
|
||||
color: var(--secondary-fore-color);
|
||||
margin: var(--universal-margin);
|
||||
padding: calc(3 * var(--universal-padding));
|
||||
border: 0.0625rem solid var(--secondary-border-color);
|
||||
border-left: 0.375rem solid var(--blockquote-color);
|
||||
border-radius: 0 var(--universal-border-radius) var(--universal-border-radius) 0;
|
||||
}
|
||||
|
||||
blockquote:before {
|
||||
position: absolute;
|
||||
top: calc(0rem - var(--universal-padding));
|
||||
left: 0;
|
||||
font-family: sans-serif;
|
||||
font-size: 3rem;
|
||||
font-weight: 700;
|
||||
content: "\201c";
|
||||
color: var(--blockquote-color);
|
||||
}
|
||||
|
||||
blockquote[cite]:after {
|
||||
font-style: normal;
|
||||
font-size: 0.75em;
|
||||
font-weight: 700;
|
||||
content: "\a— " attr(cite);
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
code, kbd, pre, samp {
|
||||
font-family: Menlo, Consolas, monospace;
|
||||
}
|
||||
|
||||
code {
|
||||
background: var(--secondary-back-color);
|
||||
border-radius: var(--universal-border-radius);
|
||||
padding: calc(var(--universal-padding) / 4) calc(var(--universal-padding) / 2);
|
||||
}
|
||||
|
||||
kbd {
|
||||
background: var(--fore-color);
|
||||
color: var(--back-color);
|
||||
border-radius: var(--universal-border-radius);
|
||||
padding: calc(var(--universal-padding) / 4) calc(var(--universal-padding) / 2);
|
||||
}
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
background: var(--secondary-back-color);
|
||||
padding: calc(1.5 * var(--universal-padding));
|
||||
margin: var(--universal-margin);
|
||||
border: 0.0625rem solid var(--secondary-border-color);
|
||||
border-left: 0.25rem solid var(--pre-color);
|
||||
}
|
||||
|
2
dist/mini-default.min.css
vendored
2
dist/mini-default.min.css
vendored
@@ -1 +1 @@
|
||||
:root{--fore-color:#212121;--secondary-fore-color:#424242;--back-color:#f8f8f8;--heading-ratio:1.19;--side-margin:.5rem}html{font-size:16px}html,*{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, sans-serif;line-height:1.5;-webkit-text-size-adjust:100%}*{font-size:1rem}body{margin:0;color:var(--fore-color);background:var(--back-color)}details{display:block}summary{display:list-item}abbr[title]{border-bottom:none;text-decoration:underline dotted}input{overflow:visible}img{max-width:100%;height:auto}h1,h2,h3,h4,h5,h6{line-height:1.2;margin:calc(1.5 * var(--side-margin)) var(--side-margin);font-weight:500}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{color:var(--secondary-fore-color);display:block;margin-top:-.25rem}h1{font-size:calc(1rem * var(--heading-ratio) * var(--heading-ratio) * var(--heading-ratio) * var(--heading-ratio))}h2{font-size:calc(1rem * var(--heading-ratio) * var(--heading-ratio) * var(--heading-ratio))}h3{font-size:calc(1rem * var(--heading-ratio) * var(--heading-ratio))}h4{font-size:calc(1rem * var(--heading-ratio))}h5{font-size:1rem}h6{font-size:calc(1rem / var(--heading-ratio))}
|
||||
:root{--fore-color:#212121;--secondary-fore-color:#424242;--back-color:#f8f8f8;--secondary-back-color:#e6e6e6;--blockquote-color:#f57c00;--pre-color:#1565c0;--border-color:#acacac;--secondary-border-color:#c9c9c9;--heading-ratio:1.19;--universal-margin:.5rem;--universal-padding:.5rem;--universal-border-radius:.125rem}html{font-size:16px}html,*{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, sans-serif;line-height:1.5;-webkit-text-size-adjust:100%}*{font-size:1rem}body{margin:0;color:var(--fore-color);background:var(--back-color)}details{display:block}summary{display:list-item}abbr[title]{border-bottom:none;text-decoration:underline dotted}input{overflow:visible}img{max-width:100%;height:auto}h1,h2,h3,h4,h5,h6{line-height:1.2;margin:calc(1.5 * var(--universal-margin)) var(--universal-margin);font-weight:500}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{color:var(--secondary-fore-color);display:block;margin-top:-.25rem}h1{font-size:calc(1rem * var(--heading-ratio) * var(--heading-ratio) * var(--heading-ratio) * var(--heading-ratio))}h2{font-size:calc(1rem * var(--heading-ratio) * var(--heading-ratio) * var(--heading-ratio))}h3{font-size:calc(1rem * var(--heading-ratio) * var(--heading-ratio))}h4{font-size:calc(1rem * var(--heading-ratio))}h5{font-size:1rem}h6{font-size:calc(1rem / var(--heading-ratio))}p{margin:var(--universal-margin)}ol,ul{margin:var(--universal-margin);padding-left:calc(2 * var(--universal-margin))}b,strong{font-weight:700}hr{box-sizing:content-box;border:0;line-height:1.25em;margin:var(--universal-margin);height:.0625rem;background:linear-gradient(to right, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent)}blockquote{display:block;position:relative;font-style:italic;color:var(--secondary-fore-color);margin:var(--universal-margin);padding:calc(3 * var(--universal-padding));border:.0625rem solid var(--secondary-border-color);border-left:.375rem solid var(--blockquote-color);border-radius:0 var(--universal-border-radius) var(--universal-border-radius) 0}blockquote:before{position:absolute;top:calc(0rem - var(--universal-padding));left:0;font-family:sans-serif;font-size:3rem;font-weight:700;content:"\201c";color:var(--blockquote-color)}blockquote[cite]:after{font-style:normal;font-size:.75em;font-weight:700;content:"\a— " attr(cite);white-space:pre}code,kbd,pre,samp{font-family:Menlo, Consolas, monospace}code{background:var(--secondary-back-color);border-radius:var(--universal-border-radius);padding:calc(var(--universal-padding) / 4) calc(var(--universal-padding) / 2)}kbd{background:var(--fore-color);color:var(--back-color);border-radius:var(--universal-border-radius);padding:calc(var(--universal-padding) / 4) calc(var(--universal-padding) / 2)}pre{overflow:auto;background:var(--secondary-back-color);padding:calc(1.5 * var(--universal-padding));margin:var(--universal-margin);border:.0625rem solid var(--secondary-border-color);border-left:.25rem solid var(--pre-color)}
|
||||
|
Reference in New Issue
Block a user