mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Introduce stylelint (#29852)
Stylelint is a css linter: https://stylelint.io/ As part of this change we have added two javascript scripts: ``` pnpm lint:css pnpm lint:css:fix ``` Look at `.vscode/settings.json.sample` and `.vscode/extensions.json` for configuration in VSCode. --------- Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
This commit is contained in:
@@ -4,6 +4,7 @@ $meta-element-margin: 6px;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
|
||||
&:hover .meta {
|
||||
opacity: 0.9;
|
||||
transition: opacity 0.5s;
|
||||
@@ -25,10 +26,12 @@ $meta-element-margin: 6px;
|
||||
.lightbox-wrapper {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
|
||||
img {
|
||||
object-fit: cover;
|
||||
object-position: top;
|
||||
}
|
||||
|
||||
&,
|
||||
* {
|
||||
outline: 0;
|
||||
@@ -55,8 +58,9 @@ $meta-element-margin: 6px;
|
||||
margin: $meta-element-margin;
|
||||
opacity: 0.8;
|
||||
color: var(--secondary);
|
||||
|
||||
+ .filename {
|
||||
margin-left: 0px;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user