linkding/bookmarks/styles/bookmarks.scss

205 lines
3.5 KiB
SCSS
Raw Normal View History

.bookmarks-page .search {
$searchbox-height: 1.8rem;
2019-06-30 17:54:33 +00:00
// Regular input
input[type='search'] {
width: 180px;
height: $searchbox-height;
-webkit-appearance: none;
@media (min-width: $control-width-md) {
width: 300px;
}
2019-06-30 17:54:33 +00:00
}
// Enhanced auto-complete input
// This needs a bit more wrangling to make the CSS component align with the attached button
.form-autocomplete {
height: $searchbox-height;
.form-autocomplete-input {
height: $searchbox-height;
width: 100%;
input[type='search'] {
height: 100%;
margin: 0;
border: none;
}
}
}
2019-06-30 17:54:33 +00:00
}
2021-03-28 22:43:50 +00:00
.bookmarks-page .content-area-header {
span.btn {
margin-left: 8px;
}
}
2019-06-29 17:45:08 +00:00
ul.bookmark-list {
list-style: none;
margin: 0;
padding: 0;
.description {
2019-06-30 06:24:21 +00:00
color: $gray-color-dark;
2021-03-28 10:11:56 +00:00
a, a:visited:hover {
2019-06-30 06:24:21 +00:00
color: $alternative-color;
}
2019-06-29 17:45:08 +00:00
}
.actions .btn-link {
2019-06-30 06:24:21 +00:00
color: $gray-color;
2019-06-29 17:45:08 +00:00
padding-left: 0;
padding-right: 0;
&:focus,
&:hover,
&:active,
&.active {
2019-06-30 06:24:21 +00:00
color: darken($gray-color, 10%);
2019-06-29 17:45:08 +00:00
}
}
2021-03-28 22:43:50 +00:00
.bulk-edit-toggle {
display: none;
}
2019-06-29 17:45:08 +00:00
}
2019-06-30 17:31:32 +00:00
.bookmark-pagination {
margin-top: 1rem;
}
2019-06-30 17:31:32 +00:00
.tag-cloud {
2021-03-28 10:11:56 +00:00
a, a:visited:hover {
2019-06-30 17:31:32 +00:00
color: $alternative-color;
}
.group {
margin-bottom: 0.4rem;
}
2019-06-30 19:15:02 +00:00
.highlight-char {
2019-06-30 17:31:32 +00:00
font-weight: bold;
text-transform: uppercase;
color: $alternative-color-dark;
}
}
.bookmarks-form {
.form-icon.loading {
visibility: hidden;
}
.form-input-hint.bookmark-exists {
visibility: hidden;
color: $warning-color;
a {
color: $warning-color;
text-decoration: underline;
font-weight: bold;
}
}
}
2021-03-28 22:43:50 +00:00
/* Bulk edit */
$bulk-edit-toggle-width: 16px;
$bulk-edit-toggle-offset: 8px;
$bulk-edit-bar-offset: $bulk-edit-toggle-width + (2 * $bulk-edit-toggle-offset);
$bulk-edit-transition-duration: 400ms;
.bulk-edit-form {
.bulk-edit-bar {
margin-top: -17px;
margin-bottom: 16px;
margin-left: -$bulk-edit-bar-offset;
max-height: 0;
overflow: hidden;
transition: max-height $bulk-edit-transition-duration;
}
.bulk-edit-actions {
display: flex;
align-items: baseline;
padding: 4px 0;
border-top: solid 1px $border-color;
button:hover {
text-decoration: underline;
}
> label.form-checkbox {
min-height: 1rem;
}
> button {
padding: 0;
margin-left: 8px;
}
> span {
margin-left: 8px;
}
> input, .form-autocomplete {
width: auto;
margin-left: 4px;
max-width: 200px;
-webkit-appearance: none;
}
span.confirmation {
display: flex;
}
span.confirmation button {
padding: 0;
}
}
.bulk-edit-all-toggle {
width: $bulk-edit-toggle-width;
margin: 0 0 0 $bulk-edit-toggle-offset;
padding: 0;
}
ul.bookmark-list li {
position: relative;
}
ul.bookmark-list li .bulk-edit-toggle {
display: block;
position: absolute;
width: $bulk-edit-toggle-width;
left: -$bulk-edit-toggle-width - $bulk-edit-toggle-offset;
top: 0;
padding: 0;
margin: 0;
visibility: hidden;
opacity: 0;
transition: all $bulk-edit-transition-duration;
i {
top: 0.2rem;
}
}
}
#bulk-edit-mode {
display: none;
}
#bulk-edit-mode:checked ~ .bookmarks-page .bulk-edit-toggle {
visibility: visible;
opacity: 1;
}
#bulk-edit-mode:checked ~ .bookmarks-page .bulk-edit-bar {
max-height: 37px;
border-bottom: solid 1px $border-color;
}