mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 16:16:44 +08:00

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>
69 lines
1.2 KiB
SCSS
69 lines
1.2 KiB
SCSS
// LEGACY STYLES
|
|
// some plugins rely on these (discourse-topic-voting is one)
|
|
.popup-menu {
|
|
background-color: var(--secondary);
|
|
width: 14em;
|
|
border: 1px solid var(--primary-low);
|
|
z-index: z("dropdown");
|
|
box-shadow: var(--shadow-card);
|
|
|
|
ul {
|
|
margin: 0;
|
|
list-style: none;
|
|
|
|
li {
|
|
border-bottom: 1px solid rgba(var(--primary-low-rgb), 0.5);
|
|
|
|
&:last-child {
|
|
border: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
justify-content: left;
|
|
text-align: left;
|
|
background: none;
|
|
width: 100%;
|
|
padding: 0.5em;
|
|
border-radius: 0;
|
|
margin: 0;
|
|
|
|
.d-icon {
|
|
color: var(--primary-medium);
|
|
align-self: flex-start;
|
|
margin-right: 0.75em;
|
|
margin-top: 0.1em; // vertical alignment
|
|
}
|
|
|
|
&:focus,
|
|
&:hover {
|
|
color: var(--primary);
|
|
background: var(--d-hover);
|
|
|
|
.d-icon {
|
|
color: var(--primary-medium);
|
|
}
|
|
}
|
|
|
|
&.popup-menu-btn-danger {
|
|
.d-icon {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.d-button-label {
|
|
color: var(--primary);
|
|
}
|
|
|
|
&:focus,
|
|
&:hover {
|
|
.d-icon,
|
|
.d-button-label {
|
|
color: var(--danger);
|
|
}
|
|
background: var(--danger-low);
|
|
}
|
|
}
|
|
}
|
|
}
|