Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 50 additions & 21 deletions resource/css/skosmos.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
--secondary-light-color: #f2f5f7;
--alert-color: #a0270a;
--white-color: #ffffff;
--focus-color: #0d2fc4;

--body-text: var(--dark-color);

Expand Down Expand Up @@ -97,6 +98,12 @@ body {
font-size: var(--font-size);
}

:focus-visible {
outline: 3px solid var(--focus-color) !important;
outline-offset: 3px !important;
box-shadow: none !important;
}

/* Font awesome
====================================== */

Expand Down Expand Up @@ -149,6 +156,14 @@ header .container-fluid .row {
background-color: var(--topbar-bg-2);
}

.frontpage-logo #topbar :focus-visible {
outline-color: var(--topbar-text-1) !important;
}

#topbar :focus-visible {
outline-color: var(--topbar-text-2) !important;
}

.frontpage-logo #topbar-nav .nav-item a {
color: var(--topbar-text-1);
}
Expand Down Expand Up @@ -285,6 +300,10 @@ header .container-fluid .row {
color: var(--search-dropdown-hover-text);
}

#search-wrapper .dropdown-menu li:focus-visible {
outline-offset: -3px !important;
}

#search-wrapper .dropdown-toggle {
color: var(--headerbar-text);
background-color: var(--search-field-bg);
Expand Down Expand Up @@ -335,9 +354,9 @@ header .container-fluid .row {
border-radius: 0;
}

#search-field:focus {
border-color: var(--search-border);
box-shadow: inset 0 0 5px rgba(196, 205, 217, 1);
#search-field:focus-visible {
position: relative;
z-index: 1001;
}
Comment thread
osma marked this conversation as resolved.

#clear-button {
Expand Down Expand Up @@ -497,13 +516,8 @@ header .container-fluid .row {
/* Show a visible focus ring when focus is moved with keyboard navigation */

#search-wrapper #vocab-list .vocab-select:focus-within {
outline: 2px solid var(--search-keyboard-nav-border);
outline-offset: 2px;
}

#search-wrapper #language-list .dropdown-item:focus-within {
outline: 2px solid var(--search-keyboard-nav-border);
outline-offset: -3px;
outline: 3px solid var(--focus-color);
outline-offset: 3px;
}
Comment on lines 518 to 521

/* Search field */
Expand Down Expand Up @@ -640,6 +654,10 @@ header .container-fluid .row {
text-underline-offset: 0.3rem;
}

#vocabulary-list .list-group-item a:focus-visible {
text-decoration: none;
}

/* Sidebar vocab and concept pages
-------------------------------------- */

Expand Down Expand Up @@ -685,6 +703,11 @@ header .container-fluid .row {
background-color: var(--sidebar-tab-inactive-bg);
}

#sidebar-tabs :focus-visible {
z-index: 1000;
position: relative;
}
Comment thread
osma marked this conversation as resolved.

#sidebar .nav-link {
color: var(--sidebar-tab-inactive-text);
height: 100%;
Expand Down Expand Up @@ -817,6 +840,10 @@ header .container-fluid .row {
font-weight: bold;
}

#sidebar .sidebar-list :focus-visible {
outline-offset: 0 !important;
}

/* --- Sidebar alphabetical tab --- */

#alphabetical .nav-link {
Expand Down Expand Up @@ -852,9 +879,9 @@ header .container-fluid .row {
text-decoration: underline;
}

.form-check-input:focus + .form-check-label {
outline: 2px dotted white;
outline-offset: -2px;
.form-check-input:focus-visible + .form-check-label {
outline: 3px solid var(--sidebar-tab-active-text);
outline-offset: -3px;
}

#sidebar .form-check-label.wide {
Expand Down Expand Up @@ -1171,9 +1198,12 @@ h1#vocab-heading {
bottom: 4px;
}

.copy-clipboard:focus {
border: 1px solid var(--main-content-text);
border-radius: 3px;
.copy-clipboard {
border-radius: 0;
}

.copy-clipboard:focus-visible {
outline-offset: -3px !important;
}

/* Properties */
Expand Down Expand Up @@ -1279,7 +1309,7 @@ h1#vocab-heading {
text-transform: none;
}

.tooltip-inline:focus {
.tooltip-inline:focus-visible {
z-index: 9002 !important;
}

Expand Down Expand Up @@ -1326,10 +1356,9 @@ h1#vocab-heading {
color: var(--tooltip-bg);
}

.tooltip-html button:focus {
border: 2px solid var(--main-content-text);
.tooltip-html button:focus-visible {
outline-offset: -3px !important;
border-radius: 0;
margin: -4px;
}

.tooltip-html:hover .tooltip-html-content, .tooltip-html:focus-within .tooltip-html-content {
Expand Down Expand Up @@ -1547,7 +1576,7 @@ h1#vocab-heading {
background-image: none;
}

#feedback-form select:valid, #feedback-form select:valid:focus, #feedback-form input::placeholder {
#feedback-form select:valid, #feedback-form select:valid:focus-visible, #feedback-form input::placeholder {
color: var(--feedback-text);
}

Expand Down
Loading