144 lines
3.6 KiB
SCSS
144 lines
3.6 KiB
SCSS
:root {
|
|
--d-button-border-radius: 6.25rem;
|
|
}
|
|
|
|
.discourse-no-touch .topic-body .actions .fade-out {
|
|
transition: none;
|
|
}
|
|
|
|
.btn-default,
|
|
.btn-primary,
|
|
.btn-danger,
|
|
.select-kit .select-kit-header {
|
|
//using this hard coded value to make standalone icon-only btns perfect circles; I can't target the class no-text see below line 18
|
|
padding: var(--spacing-block-s) 0.665rem;
|
|
|
|
//theres buttons with text hidden that dont have the no-text class, and my :has workaround for some reason refuses to work
|
|
// &.no-text,
|
|
// .btn-icon-text:has(.d-button-label) {
|
|
// padding-inline: 0.665rem;
|
|
// }
|
|
}
|
|
|
|
.sidebar-new-topic-button__wrapper .topic-drafts-menu-trigger.btn.no-text {
|
|
background: var(--accent-color);
|
|
&:hover {
|
|
background: radial-gradient(
|
|
90% 110% at 50% 50%,
|
|
rgba(255, 255, 255, 0.3) 0%,
|
|
rgba(255, 255, 255, 0) 100%
|
|
),
|
|
var(--accent-color);
|
|
}
|
|
svg {
|
|
color: var(--accent-text-color);
|
|
}
|
|
}
|
|
|
|
.discourse-no-touch .btn.post-action-menu__reply:hover {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.post-info.edits .btn-flat {
|
|
background-color: transparent;
|
|
&:hover {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
.discourse-no-touch .btn-default.sidebar-new-topic-button,
|
|
.discourse-no-touch .interface-color-selector-content,
|
|
.btn-default,
|
|
.btn-icon-text,
|
|
.select-kit .select-kit-header.btn-default {
|
|
background: var(--primary-100);
|
|
|
|
.d-icon {
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
&:hover {
|
|
.discourse-no-touch & {
|
|
border-color: transparent;
|
|
box-shadow: 0px 0px 8px 1px var(--button-box-shadow);
|
|
background: var(--d-content-background);
|
|
color: var(--accent-color);
|
|
.d-icon {
|
|
color: var(--accent-color);
|
|
}
|
|
}
|
|
}
|
|
&:focus-visible {
|
|
.discourse-no-touch & {
|
|
background: var(--d-content-background);
|
|
color: var(--accent-color);
|
|
box-shadow: 0px 0px 0px 3px var(--button-box-shadow);
|
|
.d-icon {
|
|
color: var(--accent-color);
|
|
}
|
|
}
|
|
}
|
|
&:active:not(:hover, :focus) {
|
|
color: var(--primary);
|
|
background: var(--tertiary-300);
|
|
background-image: none;
|
|
.d-icon {
|
|
color: var(--tertiary-high);
|
|
}
|
|
}
|
|
}
|
|
|
|
.btn-primary,
|
|
#create-topic.btn {
|
|
background-color: var(--accent-color);
|
|
color: var(--accent-text-color);
|
|
.d-icon {
|
|
color: var(--accent-text-color);
|
|
}
|
|
&:hover {
|
|
.discourse-no-touch & {
|
|
background: oklch(from var(--accent-color) 40% c h) !important;
|
|
box-shadow: 0px 0px 6px 1px var(--button-box-shadow);
|
|
color: var(--accent-text-color);
|
|
.d-icon {
|
|
color: var(--accent-text-color);
|
|
}
|
|
}
|
|
}
|
|
&:focus-visible {
|
|
.discourse-no-touch & {
|
|
background: oklch(from var(--accent-color) 40% c h) !important;
|
|
box-shadow: 0px 0px 0px 4px var(--button-box-shadow);
|
|
color: var(--accent-text-color);
|
|
}
|
|
}
|
|
&:active {
|
|
background: oklch(from var(--accent-color) 30% c h) !important;
|
|
}
|
|
}
|
|
|
|
.post-controls {
|
|
svg.d-icon {
|
|
color: inherit !important; //something we should honestly implement in core imo, when do we ever NOT want the same colour for icon and text?
|
|
}
|
|
}
|
|
|
|
//undoing the outline for select-kit, since Im using a custom visual cue
|
|
.select-kit.single-select.is-expanded .select-kit-header:not(.btn),
|
|
.select-kit.single-select .select-kit-header:not(.btn):focus,
|
|
.select-kit.single-select .select-kit-header:not(.btn):active {
|
|
outline: transparent;
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.chat-message-actions .btn,
|
|
.dropdown-menu__item .btn,
|
|
.fk-d-menu .btn {
|
|
background-color: var(--d-content-background);
|
|
&:hover {
|
|
background-color: var(--d-selected);
|
|
box-shadow: none;
|
|
color: var(--primary);
|
|
}
|
|
}
|