blob: 5c336a61188cb356d90ba72fe4526c8fe86729be [file] [log] [blame]
Samuel Shuert86826b82024-04-27 16:14:20 -04001/*
2 The CSS in this style tag is based off of Bear Blog's default CSS.
3 https://github.com/HermanMartinus/bearblog/blob/297026a877bc2ab2b3bdfbd6b9f7961c350917dd/templates/styles/blog/default.css
4 License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md
5 */
Samuel Shuert86826b82024-04-27 16:14:20 -04006body {
Samuel Shuert39632832024-04-29 20:54:19 -04007 font-family: 'Fira Code', monospace;
Samuel Shuert86826b82024-04-27 16:14:20 -04008 margin: 0;
9 padding: 0;
10 text-align: left;
Samuel Shuert86826b82024-04-27 16:14:20 -040011 word-wrap: break-word;
12 overflow-wrap: break-word;
Samuel Shuert39632832024-04-29 20:54:19 -040013 color: rgb(var(--ctp-subtext1));
Samuel Shuert86826b82024-04-27 16:14:20 -040014 font-size: 20px;
15 line-height: 1.7;
16}
Samuel Shuert86826b82024-04-27 16:14:20 -040017h1,
18h2,
19h3,
20h4,
21h5,
22h6 {
23 margin: 0 0 0.5rem 0;
Samuel Shuert39632832024-04-29 20:54:19 -040024 color: rgb(var(--ctp-text));
Samuel Shuert86826b82024-04-27 16:14:20 -040025 line-height: 1.2;
26}
27h1 {
28 font-size: 3.052em;
29}
30h2 {
31 font-size: 2.441em;
32}
33h3 {
34 font-size: 1.953em;
35}
36h4 {
37 font-size: 1.563em;
38}
39h5 {
40 font-size: 1.25em;
41}
42strong,
43b {
44 font-weight: 700;
45}
Samuel Shuert86826b82024-04-27 16:14:20 -040046p {
47 margin-bottom: 1em;
48}
49.prose p {
50 margin-bottom: 2em;
51}
52textarea {
53 width: 100%;
54 font-size: 16px;
55}
56input {
57 font-size: 16px;
58}
59table {
60 width: 100%;
61}
62img {
63 max-width: 100%;
64 height: auto;
65 border-radius: 8px;
66}
67code {
68 padding: 2px 5px;
Samuel Shuert86826b82024-04-27 16:14:20 -040069 border-radius: 2px;
70}
71pre {
72 padding: 1.5em;
73 border-radius: 8px;
74}
75pre > code {
76 all: unset;
77}
78blockquote {
Samuel Shuert39632832024-04-29 20:54:19 -040079 border-left: 4px solid rgb(var(--ctp-blue));
Samuel Shuert86826b82024-04-27 16:14:20 -040080 padding: 0 0 0 20px;
81 margin: 0px;
82 font-size: 1.333em;
83}
84hr {
85 border: none;
Samuel Shuert39632832024-04-29 20:54:19 -040086 border-top: 1px solid rgb(var(--ctp-text));
Samuel Shuert86826b82024-04-27 16:14:20 -040087}
Samuel Shuert39632832024-04-29 20:54:19 -040088mark {
89 background-color: rgb(var(--ctp-yellow));
90 color: rgb(var(--ctp-mantle));
91 border-radius: 0.5vh;
92}
93sup > a {
94 color: rgb(var(--ctp-blue));
95}
96
97.data-footnote-backref {
98 color: rgb(var(--ctp-blue));
Samuel Shuert86826b82024-04-27 16:14:20 -040099}
100
101.sr-only {
102 border: 0;
103 padding: 0;
104 margin: 0;
105 position: absolute !important;
106 height: 1px;
107 width: 1px;
108 overflow: hidden;
109 /* IE6, IE7 - a 0 height clip, off to the bottom right of the visible 1px box */
110 clip: rect(1px 1px 1px 1px);
111 /* maybe deprecated but we need to support legacy browsers */
112 clip: rect(1px, 1px, 1px, 1px);
113 /* modern browsers, clip-path works inwards from each corner */
114 clip-path: inset(50%);
115 /* added line to stop words getting smushed together (as they go onto seperate lines and some screen readers do not understand line feeds as a space */
116 white-space: nowrap;
117}