Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/h-enk/doks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/scss/components/_code.scss')
-rw-r--r--assets/scss/components/_code.scss37
1 files changed, 37 insertions, 0 deletions
diff --git a/assets/scss/components/_code.scss b/assets/scss/components/_code.scss
new file mode 100644
index 0000000..cde4684
--- /dev/null
+++ b/assets/scss/components/_code.scss
@@ -0,0 +1,37 @@
+/*
+.highlight {
+ margin-left: -1.5rem;
+ margin-right: -1.5rem;
+}
+*/
+
+pre,
+code,
+kbd,
+samp {
+ font-family: $font-family-monospace;
+ font-size: $font-size-sm;
+ border-radius: $border-radius;
+}
+
+pre {
+ background: lighten($black, 15%);
+ color: $beige;
+ line-height: $line-height-lg;
+ margin: 2rem 0;
+ overflow: auto;
+ padding: 1.25rem 1.5rem;
+ tab-size: 4;
+}
+
+code {
+ background: $beige;
+ color: $black;
+ padding: 0.25rem 0.5rem;
+}
+
+pre code {
+ background: none;
+ font-size: inherit;
+ padding: 0;
+}