summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-05 14:14:32 -0400
committerDavid Robillard <d@drobilla.net>2022-07-05 14:44:23 -0400
commit675d76c5718ddd84ad9e9ce263bef445bcc7572e (patch)
treea252a8fb0fe6279cd9e30a2f3e2b890d3877e7b6
parent2d116b9ee7495ea4d11742478c4d454b31e586e3 (diff)
downloadlv2site-675d76c5718ddd84ad9e9ce263bef445bcc7572e.tar.xz
Fix stylelint warnings
-rw-r--r--.stylelintrc.json9
-rw-r--r--themes/lv2/static/css/main.css390
2 files changed, 302 insertions, 97 deletions
diff --git a/.stylelintrc.json b/.stylelintrc.json
new file mode 100644
index 0000000..1a54384
--- /dev/null
+++ b/.stylelintrc.json
@@ -0,0 +1,9 @@
+{
+ "extends": "/usr/lib/node_modules/stylelint-config-standard",
+ "rules": {
+ "color-hex-case": "upper",
+ "no-descending-specificity": false,
+ "selector-list-comma-newline-after": "always-multi-line",
+ "shorthand-property-no-redundant-values": true
+ }
+}
diff --git a/themes/lv2/static/css/main.css b/themes/lv2/static/css/main.css
index fcd430a..07ac922 100644
--- a/themes/lv2/static/css/main.css
+++ b/themes/lv2/static/css/main.css
@@ -10,7 +10,7 @@ body {
padding: 1em;
max-width: 60em;
font-family: "SF Pro Text", Verdana, "DejaVu Sans", sans-serif;
- text-rendering: optimizeLegibility;
+ text-rendering: optimizelegibility;
}
h1 {
@@ -18,7 +18,7 @@ h1 {
font-weight: 500;
font-family: Helvetica, Arial, "DejaVu Sans Condensed", Verdana, sans-serif;
line-height: 2em;
- margin: 0 0 0.25em 0;
+ margin: 0 0 0.25em;
}
h2 {
@@ -26,7 +26,7 @@ h2 {
font-size: 1.41em;
font-weight: 600;
font-family: Helvetica, Arial, "DejaVu Sans Condensed", Verdana, sans-serif;
- margin: 1.25em 0 0.5em 0;
+ margin: 1.25em 0 0.5em;
}
h3 {
@@ -34,7 +34,7 @@ h3 {
font-size: 1.18em;
font-weight: 600;
font-family: Helvetica, Arial, "DejaVu Sans Condensed", Verdana, sans-serif;
- margin: 1.25em 0 0.5em 0;
+ margin: 1.25em 0 0.5em;
}
h4 {
@@ -42,14 +42,14 @@ h4 {
font-size: 1em;
font-weight: 600;
font-family: Helvetica, Arial, "DejaVu Sans Condensed", Verdana, sans-serif;
- margin: 1.25em 0 0.5em 0;
+ margin: 1.25em 0 0.5em;
}
h5, h6 {
font-size: 0.7em;
font-weight: 600;
font-family: Helvetica, Arial, "DejaVu Sans Condensed", Verdana, sans-serif;
- margin: 1.25em 0 0.5em 0;
+ margin: 1.25em 0 0.5em;
}
a {
@@ -74,7 +74,7 @@ h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visit
}
p {
- margin: 0.5em 0 0.5em 0;
+ margin: 0.5em 0;
}
dt {
@@ -102,7 +102,7 @@ caption {
}
img {
- border: 0;
+ border: none;
}
table {
@@ -113,18 +113,15 @@ table {
}
th {
- vertical-align: text-top;
background-color: #F8F8F8;
+ font-weight: bold;
+ text-align: left;
+ vertical-align: text-top;
}
td, th {
- border: 1px solid #ddd;
- padding: 0.25em 0.5em 0.25em 0.5em;
-}
-
-th {
- font-weight: bold;
- text-align: left;
+ border: 1px solid #DDD;
+ padding: 0.25em 0.5em;
}
time, #sitename {
@@ -133,18 +130,10 @@ time, #sitename {
font-variant: small-caps;
}
-img {
- border: none;
-}
-
blockquote {
color: #333;
- margin: 0px;
- padding: 0 4em 0 4em;
-}
-
-p {
- text-indent: 0px;
+ margin: 0;
+ padding: 0 4em;
}
p.caption {
@@ -170,7 +159,7 @@ hr {
}
ul, ol {
- padding: .25em 0em 0 3em;
+ padding: 0.25em 0 0 3em;
}
strong {
@@ -225,79 +214,286 @@ header a#page-title {
.highlight {
font-family: "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace, fixed;
- border: solid 1px #eee;
+ border: solid 1px #EEE;
color: #444;
border-radius: 6px;
}
/* Pygments Style */
-.hll { background-color: #222222 }
-.c { color: #000080 } /* Comment */
-.err { color: #cccccc; border: 1px solid #FF0000 } /* Error */
-.g { color: #cccccc } /* Generic */
-.k { color: #cdcd00 } /* Keyword */
-.l { color: #cccccc } /* Literal */
-.n { color: #cccccc } /* Name */
-.o { color: #3399cc } /* Operator */
-.x { color: #cccccc } /* Other */
-.p { color: #cccccc } /* Punctuation */
-.cm { color: #000080 } /* Comment.Multiline */
-.cp { color: #000080 } /* Comment.Preproc */
-.c1 { color: #000080 } /* Comment.Single */
-.cs { color: #cd0000; font-weight: bold } /* Comment.Special */
-.gd { color: #cd0000 } /* Generic.Deleted */
-.ge { color: #cccccc; font-style: italic } /* Generic.Emph */
-.gr { color: #FF0000 } /* Generic.Error */
-.gh { color: #000080; font-weight: bold } /* Generic.Heading */
-.gi { color: #00cd00 } /* Generic.Inserted */
-.go { color: #808080 } /* Generic.Output */
-.gp { color: #000080; font-weight: bold } /* Generic.Prompt */
-.gs { color: #cccccc; font-weight: bold } /* Generic.Strong */
-.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
-.gt { color: #0040D0 } /* Generic.Traceback */
-.kc { color: #cdcd00 } /* Keyword.Constant */
-.kd { color: #00cd00 } /* Keyword.Declaration */
-.kn { color: #cd00cd } /* Keyword.Namespace */
-.kp { color: #cdcd00 } /* Keyword.Pseudo */
-.kr { color: #cdcd00 } /* Keyword.Reserved */
-.kt { color: #00cd00 } /* Keyword.Type */
-.ld { color: #cccccc } /* Literal.Date */
-.m { color: #cd44cd } /* Literal.Number */
-.s { color: #cd4444 } /* Literal.String */
-.na { color: #cccccc } /* Name.Attribute */
-.nb { color: #cd00cd } /* Name.Builtin */
-.nc { color: #00cdcd } /* Name.Class */
-.no { color: #cccccc } /* Name.Constant */
-.nd { color: #cccccc } /* Name.Decorator */
-.ni { color: #cccccc } /* Name.Entity */
-.ne { color: #666699; font-weight: bold } /* Name.Exception */
-.nf { color: #cccccc } /* Name.Function */
-.nl { color: #cccccc } /* Name.Label */
-.nn { color: #cccccc } /* Name.Namespace */
-.nx { color: #cccccc } /* Name.Other */
-.py { color: #cccccc } /* Name.Property */
-.nt { color: #cccccc } /* Name.Tag */
-.nv { color: #00cdcd } /* Name.Variable */
-.ow { color: #cdcd00 } /* Operator.Word */
-.w { color: #cccccc } /* Text.Whitespace */
-.mf { color: #cd00cd } /* Literal.Number.Float */
-.mh { color: #cd00cd } /* Literal.Number.Hex */
-.mi { color: #cd00cd } /* Literal.Number.Integer */
-.mo { color: #cd00cd } /* Literal.Number.Oct */
-.sb { color: #cd4444 } /* Literal.String.Backtick */
-.sc { color: #cd4444 } /* Literal.String.Char */
-.sd { color: #cd4444 } /* Literal.String.Doc */
-.s2 { color: #cd4444 } /* Literal.String.Double */
-.se { color: #cd4444 } /* Literal.String.Escape */
-.sh { color: #cd4444 } /* Literal.String.Heredoc */
-.si { color: #cd4444 } /* Literal.String.Interpol */
-.sx { color: #cd4444 } /* Literal.String.Other */
-.sr { color: #cd4444 } /* Literal.String.Regex */
-.s1 { color: #cd4444 } /* Literal.String.Single */
-.ss { color: #cd4444 } /* Literal.String.Symbol */
-.bp { color: #cd00cd } /* Name.Builtin.Pseudo */
-.vc { color: #00cdcd } /* Name.Variable.Class */
-.vg { color: #00cdcd } /* Name.Variable.Global */
-.vi { color: #00cdcd } /* Name.Variable.Instance */
-.il { color: #cd00cd } /* Literal.Number.Integer.Long */
+.highlight .n {
+ color: #222;
+}
+
+.highlight .c {
+ color: #3F4D91;
+ font-style: italic;
+}
+
+.highlight .err {
+ border: 1px solid #DC322F;
+}
+
+.highlight .k {
+ color: #586E75;
+}
+
+.highlight .o {
+ color: #586E75;
+}
+
+.highlight .cm {
+ color: #3F4D91;
+ font-style: italic;
+}
+
+.highlight .cp {
+ color: #586E75;
+}
+
+.highlight .cpf {
+ color: #93115C;
+}
+
+.highlight .c1 {
+ color: #3F4D91;
+ font-style: italic;
+}
+
+.highlight .cs {
+ color: #3F4D91;
+ font-style: italic;
+}
+
+.highlight .gd {
+ color: #990A1B;
+}
+
+.highlight .ge {
+ font-style: italic;
+}
+
+.highlight .gr {
+ color: #DC322F;
+}
+
+.highlight .gh {
+ color: #3F4D91;
+ font-weight: bold;
+}
+
+.highlight .gi {
+ color: #859900;
+}
+
+.highlight .go {
+ color: #666;
+}
+
+.highlight .gp {
+ color: #666;
+ font-weight: bold;
+}
+
+.highlight .gs {
+ font-weight: bold;
+}
+
+.highlight .gu {
+ color: #444;
+ font-weight: bold;
+}
+
+.highlight .gt {
+ color: #268BD2;
+}
+
+.highlight .kc {
+ color: #586E75;
+ font-weight: bold;
+}
+
+.highlight .kd {
+ color: #586E75;
+ font-weight: bold;
+}
+
+.highlight .kn {
+ color: #586E75;
+ font-weight: bold;
+}
+
+.highlight .kp {
+ color: #586E75;
+}
+
+.highlight .kr {
+ color: #586E75;
+ font-weight: bold;
+}
+
+.highlight .kt {
+ color: #586E75;
+}
+
+.highlight .m {
+ color: #666;
+}
+
+.highlight .s {
+ color: #93115C;
+}
+
+.highlight .na {
+ color: #444;
+}
+
+.highlight .nb {
+ color: #3F4D91;
+}
+
+.highlight .nc {
+ color: #000;
+}
+
+.highlight .no {
+ color: #880;
+}
+
+.highlight .nd {
+ color: #A2F;
+}
+
+.highlight .ni {
+ color: #666;
+ font-weight: bold;
+}
+
+.highlight .ne {
+ color: #D2413A;
+ font-weight: bold;
+}
+
+.highlight .nf {
+ color: #000;
+}
+
+.highlight .nl {
+ color: #546E00;
+}
+
+.highlight .nn {
+ color: #444;
+}
+
+.highlight .nt {
+ color: #444;
+}
+
+.highlight .nv {
+ color: #222;
+}
+
+.highlight .ow {
+ color: #3F4D91;
+}
+
+.highlight .w {
+ color: #BBB;
+}
+
+.highlight .mb {
+ color: #93115C;
+ font-weight: bold;
+}
+
+.highlight .mf {
+ color: #93115C;
+}
+
+.highlight .mh {
+ color: #93115C;
+ font-weight: bold;
+}
+
+.highlight .mi {
+ color: #93115C;
+}
+
+.highlight .mo {
+ color: #93115C;
+ font-weight: bold;
+}
+
+.highlight .sb {
+ color: #93115C;
+}
+
+.highlight .sc {
+ color: #93115C;
+}
+
+.highlight .sd {
+ color: #3F4D91;
+ font-style: italic;
+}
+
+.highlight .s2 {
+ color: #93115C;
+}
+
+.highlight .se {
+ color: #93115C;
+ font-weight: bold;
+}
+
+.highlight .sh {
+ color: #93115C;
+}
+
+.highlight .si {
+ color: #93115C;
+ font-weight: bold;
+}
+
+.highlight .sx {
+ color: #93115C;
+}
+
+.highlight .sr {
+ color: #93115C;
+ font-weight: bold;
+}
+
+.highlight .s1 {
+ color: #93115C;
+}
+
+.highlight .ss {
+ color: #444;
+ font-weight: bold;
+}
+
+.highlight .bp {
+ color: #859900;
+}
+
+.highlight .vc {
+ color: #00629D;
+}
+
+.highlight .vg {
+ color: #00629D;
+}
+
+.highlight .vi {
+ color: #00629D;
+}
+
+.highlight .il {
+ color: #000;
+}
+
+.highlight .p {
+ color: #444;
+}