mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Standardised dropdown list item styles, Extracted page editor toolbar
- Updated all dropdown list item actions into three specific styles: icon-item, text-item & label-item. Allows a stronger structure while prevents mixing of styles as we were getting for header dropdown in dark mode. - Extracted out page editor top toolbar to its own view file & split editor switch options to different markdown options.
This commit is contained in:
@@ -593,13 +593,22 @@ ul.pagination {
|
||||
li.active a {
|
||||
font-weight: 600;
|
||||
}
|
||||
a, button {
|
||||
display: block;
|
||||
padding: $-xs $-m;
|
||||
button {
|
||||
width: 100%;
|
||||
text-align: start;
|
||||
}
|
||||
li.border-bottom {
|
||||
border-bottom: 1px solid #DDD;
|
||||
}
|
||||
li hr {
|
||||
margin: $-xs 0;
|
||||
}
|
||||
.icon-item, .text-item, .label-item {
|
||||
padding: 8px $-m;
|
||||
@include lightDark(color, #555, #eee);
|
||||
fill: currentColor;
|
||||
white-space: nowrap;
|
||||
line-height: 1.6;
|
||||
line-height: 1.4;
|
||||
cursor: pointer;
|
||||
&:hover, &:focus {
|
||||
text-decoration: none;
|
||||
@@ -616,15 +625,30 @@ ul.pagination {
|
||||
width: 16px;
|
||||
}
|
||||
}
|
||||
button {
|
||||
width: 100%;
|
||||
text-align: start;
|
||||
.text-item {
|
||||
display: block;
|
||||
}
|
||||
li.border-bottom {
|
||||
border-bottom: 1px solid #DDD;
|
||||
.label-item {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
grid-template-columns: auto min-content;
|
||||
gap: $-m;
|
||||
}
|
||||
li hr {
|
||||
margin: $-xs 0;
|
||||
.label-item > *:nth-child(2) {
|
||||
opacity: 0.7;
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.icon-item {
|
||||
display: grid;
|
||||
align-items: start;
|
||||
grid-template-columns: 16px auto;
|
||||
gap: $-m;
|
||||
svg {
|
||||
margin-inline-end: 0;
|
||||
margin-block-start: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -163,7 +163,6 @@ em, i, .italic {
|
||||
|
||||
small, p.small, span.small, .text-small {
|
||||
font-size: 0.75rem;
|
||||
@include lightDark(color, #5e5e5e, #999);
|
||||
}
|
||||
|
||||
sup, .superscript {
|
||||
|
Reference in New Issue
Block a user