Skip to content

Commit

Permalink
fix: allow outline in buttons and a tags when on focus, esp. for tab …
Browse files Browse the repository at this point in the history
…navigation (#311)

* fix: allow outline in buttons and a tags when on focus

* fix: using grass-color for outline

* focus-visible instead of focus

* fix:  focus color

* fix: using grass-color for the outline

Co-authored-by: daniel <daniel@daniel-debian.ipv6.infinitum.net.mx>
  • Loading branch information
nobeeakon and daniel committed Aug 8, 2022
1 parent f2f3664 commit 5144c1c
Showing 1 changed file with 12 additions and 26 deletions.
38 changes: 12 additions & 26 deletions themes/grass/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ a.nws:hover {
font-size: 125%;
text-align:top;
}

:focus:not(:focus-visible) {
outline: none;
}
:focus-visible {
outline: 2px solid var(--grass-color) !important;
}

.btn {
font-size: 14px;
font-family: open_sansregular;
Expand All @@ -171,27 +179,20 @@ a.nws:hover {
z-index: 1;
transition: .2s ease;
}
.btn:focus {
outline: 0;
box-shadow: none !important;
}
.btn:active {
box-shadow: none;
}
.btn-primary {
background: var(--grass-color-alt);
color: var(--white-color);
}
.btn-primary:hover {
.btn-primary:hover, .btn-primary:focus {
background: var(--grass-color);
color: var(--white-color) !important;
}
.btn-primary:active {
background: var(--grass-color);
}
.btn-primary:hover {
background: var(--grass-color);
}
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
color: var(--white-color);
background-color: var(--primary-color);
Expand All @@ -204,7 +205,7 @@ a.nws:hover {
.btn-secondary:active {
background: var(--grey-color-dark);
}
.btn-secondary:hover {
.btn-secondary:hover, .btn-secondary:focus {
background: var(--grey-color-dark);
color: var(--white-color) !important;
}
Expand Down Expand Up @@ -268,12 +269,6 @@ a, button, select {
cursor: pointer;
transition: .2s ease;
}
a:focus, button:focus, select:focus {
outline: 0;
}
.slick-slide {
outline: 0;
}
.section {
padding-top: 30px;
padding-bottom: 30px;
Expand Down Expand Up @@ -413,10 +408,6 @@ pre {
background: #eff4e8;
}


.outline-0 {
outline: 0 !important;
}
.d-unset {
display: unset !important;
}
Expand Down Expand Up @@ -652,16 +643,13 @@ pre {
.navbar-brand:hover {
color: var(--grey-color-dark) !important;
}
.navbar-brand i {

}

.fdiv:hover {
background: var(--grass-color-light) !important;
}
.fdiv:hover h3 {
color: var(--grass-color-dark);
!important;
}
.gdiv:hover {
background: #ffffff !important;
Expand Down Expand Up @@ -955,7 +943,7 @@ li.parent a {

.separator {
border-top: 1px solid #F6F6F6;
f padding: 5px;
padding: 5px;
padding-left: 40px;
font-style: italic;
font-size: 0.9em;
Expand Down Expand Up @@ -1174,9 +1162,7 @@ f padding: 5px;
.timeline .panel-outline .panel-body {
padding: 10px 10px;
}
.timeline .panel-body {
/* display: none; */
}

.timeline .panel-default {
border: 0;
}
Expand Down

0 comments on commit 5144c1c

Please sign in to comment.