-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3306 from projectblacklight/toggle-bookmark
Disambiguate .toggle-bookmark
- Loading branch information
Showing
3 changed files
with
47 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,51 @@ | ||
label.toggle-bookmark { | ||
font-weight: inherit; | ||
min-width: 8.5em; | ||
} | ||
|
||
div.toggle-bookmark { | ||
cursor: pointer; | ||
} | ||
|
||
/* override for line 3. | ||
Creates weird spacing in toolbar when min-width is set to 8rem */ | ||
.header-tools label.toggle-bookmark { | ||
min-width: 2rem; | ||
} | ||
|
||
.bookmark-toggle { | ||
.no-js & { | ||
input[type="submit"] { | ||
display: inline | ||
} | ||
|
||
div.toggle-bookmark { | ||
display: none | ||
} | ||
} | ||
|
||
input[type="submit"] { | ||
display: none; | ||
} | ||
} | ||
.toggle-bookmark .blacklight-icons svg { | ||
height: 1.25rem; | ||
width: 1.25rem; | ||
overflow: visible; | ||
fill: var(--bs-primary); | ||
.no-js & { | ||
input[type="submit"] { | ||
display: inline; | ||
} | ||
|
||
.toggle-bookmark { | ||
display: none; | ||
} | ||
} | ||
|
||
&.bookmark-checked { | ||
input[type="submit"] { | ||
display: none; | ||
} | ||
} | ||
|
||
.toggle-bookmark[type="checkbox"]:checked+span svg { | ||
&.bookmark-checked { | ||
display: inherit; | ||
.toggle-bookmark { | ||
cursor: pointer; | ||
|
||
.toggle-bookmark-label { | ||
font-weight: inherit; | ||
min-width: 8.5em; | ||
|
||
.blacklight-icons svg { | ||
height: 1.25rem; | ||
width: 1.25rem; | ||
overflow: visible; | ||
fill: var(--bs-primary); | ||
|
||
&.bookmark-checked { | ||
display: none; | ||
} | ||
} | ||
} | ||
|
||
.toggle-bookmark-input:checked + span svg { | ||
&.bookmark-checked { | ||
display: inherit; | ||
} | ||
|
||
&.bookmark-unchecked { | ||
display: none; | ||
} | ||
} | ||
} | ||
|
||
&.bookmark-unchecked { | ||
display: none; | ||
/* override for line 21. | ||
Creates weird spacing in toolbar when min-width is set to 8rem */ | ||
.header-tools .toggle-bookmark-label { | ||
min-width: 2rem; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters