diff --git a/assets/less/classes/input/checkbox.less b/assets/less/classes/input/checkbox.less index 47b5e0b6..edc5cc1c 100644 --- a/assets/less/classes/input/checkbox.less +++ b/assets/less/classes/input/checkbox.less @@ -3,6 +3,11 @@ margin: 1px 0; cursor: pointer; + &--radio &__display, + &--radio &__display__icon { + border-radius: 100%; + } + &__input { display: inline-block; position: absolute; diff --git a/assets/less/classes/permissions.less b/assets/less/classes/permissions.less index 2c200b9c..313f84f2 100644 --- a/assets/less/classes/permissions.less +++ b/assets/less/classes/permissions.less @@ -6,13 +6,14 @@ &__line { display: flex; font-size: .9em; - line-height: 1.2em; + line-height: 1.7em; &--header { font-size: 1.2em; line-height: 1.4em; border-bottom: 1px solid var(--accent-colour); padding-bottom: 1px; + font-weight: 700; &:not(:first-child) { margin-top: 4px; @@ -22,7 +23,7 @@ @media (max-width: @site-mobile-width) { flex-wrap: wrap; justify-content: right; - border-bottom: 1px solid #ded5e7; + border-bottom: 1px solid var(--accent-colour); } } @@ -32,7 +33,7 @@ } &__line:not(&__line--header) &__title { - border-bottom: 1px solid #ded5e7; + border-bottom: 1px solid var(--accent-colour); @media (max-width: @site-mobile-width) { width: 100%; @@ -40,10 +41,6 @@ } } - &__input { - cursor: pointer; - } - &__choice { width: 100px; text-align: center; @@ -55,27 +52,27 @@ } &--radio { - cursor: pointer; - border-left: 1px solid var(--accent-colour); + justify-content: center; } &--yes { - - &:hover { - background-color: #0a0; - } + --accent-colour: #0a0; @media (max-width: @site-mobile-width) { border-left-width: 0; } } - &--no:hover { - background-color: #a00; + &--no { + --accent-colour: #a00; } - &--never:hover { - background-color: #400; + &--never { + --accent-colour: #400; + } + + &__wrapper { + border-left: 1px solid var(--accent-colour); } } } diff --git a/templates/_layout/input.twig b/templates/_layout/input.twig index 3dfc30b4..14245351 100644 --- a/templates/_layout/input.twig +++ b/templates/_layout/input.twig @@ -23,12 +23,13 @@ {% endspaceless %} {% endmacro %} -{% macro input_checkbox(name, text, value, class) %} +{% macro input_checkbox(name, text, checked, class, value, radio) %} {% spaceless %} -