From 27f84cc3371aaf519c1bb5c0cca9e728a9dd3967 Mon Sep 17 00:00:00 2001 From: Wicklow Date: Thu, 16 Feb 2023 12:30:30 +0100 Subject: Refactoring class helpers + add bootstrap mixins --- client/src/sass/class-helpers/_menu.scss | 80 ++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 client/src/sass/class-helpers/_menu.scss (limited to 'client/src/sass/class-helpers/_menu.scss') diff --git a/client/src/sass/class-helpers/_menu.scss b/client/src/sass/class-helpers/_menu.scss new file mode 100644 index 000000000..1d17f9f2e --- /dev/null +++ b/client/src/sass/class-helpers/_menu.scss @@ -0,0 +1,80 @@ +@use '_variables' as *; +@use '_mixins' as *; + +.sub-menu-entry { + @include disable-default-a-behaviour; + @include margin-right(55px); + + opacity: 0.7; + color: pvar(--mainForegroundColor); + display: inline-block; + font-weight: $font-semibold; + border-bottom: 2px solid transparent; + white-space: nowrap; + font-size: 1rem; + + &.active { + border-bottom-color: pvar(--mainColor); + } + + &:hover, + &:active, + &:focus { + color: pvar(--mainForegroundColor); + } + + &.active, + &:hover, + &:active, + &:focus { + opacity: 1; + outline: 0 hidden !important; + } + + @media screen and (max-width: $mobile-view) { + @include margin-left(15px); + } +} + +.title-page-v2 { + font-weight: normal; + font-size: 15px; + padding: 35px 25px; +} + +.title-page { + @include margin-right(55px); + + margin-top: 30px; + margin-bottom: 25px; + + color: pvar(--mainForegroundColor); + display: inline-block; + font-weight: $font-semibold; + font-size: 1.25rem; + + a { + @include disable-default-a-behaviour; + + color: inherit; + + &:hover { + color: inherit; + opacity: 0.8; + } + } + + @media screen and (max-width: $mobile-view) { + @include margin-left(15px); + } +} + +.admin-sub-header { + display: flex; + align-items: center; + margin-bottom: 30px; + + @media screen and (max-width: $small-view) { + flex-direction: column; + } +} \ No newline at end of file -- cgit v1.2.3