discourse/app/assets/stylesheets/common/components/keyboard_shortcuts.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

102 lines
1.7 KiB
SCSS
Raw Normal View History

.topic-list-item td:first-child,
.topic-post {
border-left: 1px solid transparent;
}
.topic-list tr.selected td:first-child,
.topic-list-item.selected td:first-child,
.latest-topic-list-item.selected,
.search-results .fps-result.selected {
box-shadow: inset 3px 0 0 var(--danger);
2018-07-17 02:51:05 +08:00
}
.featured-topic.selected,
.topic-post.selected {
box-shadow: -3px 0 0 var(--danger);
}
.topic-list tr.selected,
.topic-list-item.selected,
.featured-topic.selected,
.topic-post.selected,
.latest-topic-list-item.selected,
.search-results .fps-result.selected {
&:focus-visible {
outline: none;
}
}
.latest .featured-topic {
padding-left: 4px;
}
.topic-list-item.selected {
background-color: inherit;
}
.keyboard-shortcuts-modal {
.modal-inner-container {
width: 100%;
--modal-max-width: 80vw;
}
}
.modal-body:has(#keyboard-shortcuts-help) {
overflow-y: hidden;
}
#keyboard-shortcuts-help {
box-sizing: border-box;
.keyboard-shortcuts-help__container {
columns: auto 20em;
section {
display: inline-block;
margin-bottom: 1.5em;
width: 100%;
}
}
&:focus {
outline: none;
}
kbd:first-child {
margin-left: 0;
}
@for $i from 1 through 25 {
.span-#{$i} {
grid-row-end: span $i;
}
2014-08-14 17:54:53 +08:00
}
ul {
list-style: none;
margin: 0;
li {
align-items: center;
display: flex;
flex-wrap: wrap;
margin-bottom: 6px;
}
span {
border-radius: 3px;
display: inline-flex;
margin: 0 6px;
padding: 2px 1px 4px;
}
span:first-child {
margin-left: 0;
}
kbd {
font-family: var(--font-family);
font-weight: bold;
}
}
}