fix: design tweaks
This commit is contained in:
parent
1348c91c3c
commit
68eb44884e
@ -174,7 +174,10 @@ h4
|
|||||||
margin: 20px 0
|
margin: 20px 0
|
||||||
|
|
||||||
.navbar__container-radio:checked ~ * &
|
.navbar__container-radio:checked ~ * &
|
||||||
margin-top: calc(var(--current-header-height) + 40px)
|
margin-top: calc(var(--current-header-height) + 30px)
|
||||||
|
|
||||||
|
@media (min-width: 769px) and (min-height: 501px)
|
||||||
|
margin-top: calc(var(--current-header-height) + 44px)
|
||||||
|
|
||||||
.main__content, .modal__content
|
.main__content, .modal__content
|
||||||
a
|
a
|
||||||
@ -183,19 +186,25 @@ h4
|
|||||||
p, form, .div-p
|
p, form, .div-p
|
||||||
margin: 0.5rem 0
|
margin: 0.5rem 0
|
||||||
|
|
||||||
|
&:first-child
|
||||||
|
margin: 0 0 0.5rem 0
|
||||||
|
|
||||||
&:last-child
|
&:last-child
|
||||||
margin: 0.5rem 0 0
|
margin: 0.5rem 0 0 0
|
||||||
|
|
||||||
&:first-child
|
&:first-child
|
||||||
margin: 0
|
margin: 0
|
||||||
|
|
||||||
|
@media (min-width: 769px) and (min-height: 501px)
|
||||||
|
.main__content
|
||||||
|
--current-header-height: var(--header-height)
|
||||||
|
|
||||||
@media (min-width: 426px)
|
@media (min-width: 426px)
|
||||||
.main__content
|
.main__content
|
||||||
margin-left: var(--asidenav-width-md, 50px)
|
margin-left: var(--asidenav-width-md, 50px)
|
||||||
|
|
||||||
@media (min-width: 769px)
|
@media (min-width: 769px) and (min-height: 501px)
|
||||||
.main__content
|
.main__content
|
||||||
--current-header-height: var(--header-height)
|
|
||||||
margin-left: var(--asidenav-width-lg, 20%)
|
margin-left: var(--asidenav-width-lg, 20%)
|
||||||
|
|
||||||
@media (min-width: 1200px)
|
@media (min-width: 1200px)
|
||||||
@ -528,6 +537,9 @@ section
|
|||||||
display: grid
|
display: grid
|
||||||
grid-column: 2
|
grid-column: 2
|
||||||
|
|
||||||
|
h1 + &
|
||||||
|
margin: 0 auto 0.5rem
|
||||||
|
|
||||||
&::before
|
&::before
|
||||||
@extend .fas
|
@extend .fas
|
||||||
|
|
||||||
@ -586,7 +598,7 @@ section
|
|||||||
&::before
|
&::before
|
||||||
height: auto
|
height: auto
|
||||||
width: 45px
|
width: 45px
|
||||||
font-size: 40px
|
font-size: 20px
|
||||||
top: 15px
|
top: 15px
|
||||||
|
|
||||||
.notification-error
|
.notification-error
|
||||||
@ -602,15 +614,15 @@ section
|
|||||||
color: var(--color-warning)
|
color: var(--color-warning)
|
||||||
|
|
||||||
// "Heated" element.
|
// "Heated" element.
|
||||||
Set custom property "--hotness" to a value from 0 to 1 to turn
|
// Set custom property "--hotness" to a value from 0 to 1 to turn
|
||||||
the element's background to a color on a gradient from green to red.
|
// the element's background to a color on a gradient from green to red.
|
||||||
|
|
||||||
TBD:
|
// TBD:
|
||||||
- move to a proper place
|
// - move to a proper place
|
||||||
- think about font-weight...
|
// - think about font-weight...
|
||||||
|
|
||||||
Example:
|
// Example:
|
||||||
<div .heated style="--hotness: 0.2">Lorem ipsum
|
// <div .heated style="--hotness: 0.2">Lorem ipsum
|
||||||
|
|
||||||
.heated
|
.heated
|
||||||
--hotness: 0
|
--hotness: 0
|
||||||
@ -644,14 +656,17 @@ section
|
|||||||
pointer-events: none
|
pointer-events: none
|
||||||
|
|
||||||
.navbar__container-radio:checked ~ &
|
.navbar__container-radio:checked ~ &
|
||||||
top: calc(80px + var(--header-height))
|
top: calc(84px + var(--header-height))
|
||||||
|
|
||||||
@media (max-width: 768px)
|
@media (max-width: 768px), (max-height: 500px)
|
||||||
.ribbon
|
.ribbon
|
||||||
top: calc(20px + var(--header-height-collapsed))
|
top: calc(20px + var(--header-height-collapsed))
|
||||||
right: -83px
|
right: -83px
|
||||||
transform: rotate(45deg) scale(0.6)
|
transform: rotate(45deg) scale(0.6)
|
||||||
|
|
||||||
|
.navbar__container-radio:checked ~ &
|
||||||
|
top: calc(50px + var(--header-height-collapsed))
|
||||||
|
|
||||||
#admin-studyterms
|
#admin-studyterms
|
||||||
select, option, input
|
select, option, input
|
||||||
min-width: 50px
|
min-width: 50px
|
||||||
|
|||||||
@ -1,24 +1,6 @@
|
|||||||
.navbar-container
|
.navbar-container
|
||||||
position: relative
|
position: relative
|
||||||
|
|
||||||
.navbar-shadow
|
|
||||||
position: fixed
|
|
||||||
right: 0
|
|
||||||
top: 0
|
|
||||||
height: var(--header-height-collapsed)
|
|
||||||
width: 20px
|
|
||||||
z-index: 50
|
|
||||||
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent)
|
|
||||||
transition: height 0.2s cubic-bezier(0.03, 0.43, 0.58, 1)
|
|
||||||
|
|
||||||
@media (min-width: 768px)
|
|
||||||
.navbar-shadow
|
|
||||||
height: var(--header-height)
|
|
||||||
|
|
||||||
@media (min-width: 1025px)
|
|
||||||
.navbar-shadow
|
|
||||||
display: none
|
|
||||||
|
|
||||||
.navbar
|
.navbar
|
||||||
position: fixed
|
position: fixed
|
||||||
right: 0
|
right: 0
|
||||||
@ -38,23 +20,21 @@
|
|||||||
left: var(--asidenav-width-lg)
|
left: var(--asidenav-width-lg)
|
||||||
|
|
||||||
@media (max-width: 768px), (max-height: 500px)
|
@media (max-width: 768px), (max-height: 500px)
|
||||||
left: 0
|
|
||||||
min-height: var(--header-height-collapsed)
|
min-height: var(--header-height-collapsed)
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
@media (max-width: 768px), (max-height: 500px)
|
@media (max-width: 768px)
|
||||||
.navbar__link-wrapper
|
left: 0
|
||||||
height: var(--header-height-collapsed)
|
|
||||||
|
|
||||||
.navbar__list-wrapper
|
.navbar__list-wrapper
|
||||||
display: flex
|
display: flex
|
||||||
flex-flow: row nowrap
|
flex-flow: row nowrap
|
||||||
justify-content: space-between
|
justify-content: space-between
|
||||||
align-items: center
|
align-items: center
|
||||||
margin: 0 40px
|
margin: 0
|
||||||
|
|
||||||
.navbar__list-left
|
@media (min-width: 769px)
|
||||||
margin-right: 40px
|
margin: 0 40px
|
||||||
|
|
||||||
.navbar__list
|
.navbar__list
|
||||||
display: flex
|
display: flex
|
||||||
@ -62,9 +42,11 @@
|
|||||||
justify-content: flex-end
|
justify-content: flex-end
|
||||||
align-items: center
|
align-items: center
|
||||||
list-style-type: none
|
list-style-type: none
|
||||||
|
margin: 0
|
||||||
|
|
||||||
&.navbar__list-left
|
&.navbar__list-left
|
||||||
justify-content: flex-start
|
justify-content: flex-start
|
||||||
|
margin-right: 40px
|
||||||
|
|
||||||
& > *
|
& > *
|
||||||
display: block
|
display: block
|
||||||
@ -80,13 +62,16 @@
|
|||||||
display: flex
|
display: flex
|
||||||
flex-flow: row nowrap
|
flex-flow: row nowrap
|
||||||
align-items: center
|
align-items: center
|
||||||
overflow: auto
|
overflow: overlay
|
||||||
list-style-type: none
|
list-style-type: none
|
||||||
justify-content: flex-end
|
justify-content: flex-end
|
||||||
|
margin: 0
|
||||||
|
|
||||||
& > *
|
& > *
|
||||||
display: block
|
display: block
|
||||||
margin-right: 12px
|
|
||||||
|
@media (min-width: 769px) and (min-height: 501px)
|
||||||
|
margin-right: 12px
|
||||||
|
|
||||||
&:last-child
|
&:last-child
|
||||||
margin-right: 0
|
margin-right: 0
|
||||||
@ -94,7 +79,7 @@
|
|||||||
&.navbar__container-list--left > ul
|
&.navbar__container-list--left > ul
|
||||||
justify-content: flex-start
|
justify-content: flex-start
|
||||||
|
|
||||||
@media (max-width: 768px), (max-height: 500px)
|
@media (max-width: 768px)
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
visibility: collapse
|
visibility: collapse
|
||||||
@ -125,6 +110,9 @@
|
|||||||
|
|
||||||
&.navbar__container-list-closer--hidden
|
&.navbar__container-list-closer--hidden
|
||||||
visibility: hidden
|
visibility: hidden
|
||||||
|
|
||||||
|
@media (max-width: 768px)
|
||||||
|
visibility: hidden
|
||||||
|
|
||||||
&.navbar__container-list--left .navbar__container-list-closer
|
&.navbar__container-list--left .navbar__container-list-closer
|
||||||
left: 14.5px
|
left: 14.5px
|
||||||
@ -144,6 +132,10 @@
|
|||||||
overflow: hidden
|
overflow: hidden
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
|
||||||
|
@media (max-width: 768px), (max-height: 500px)
|
||||||
|
height: var(--header-height-collapsed)
|
||||||
|
|
||||||
|
|
||||||
.navbar__link-icon
|
.navbar__link-icon
|
||||||
opacity: 0.7
|
opacity: 0.7
|
||||||
transition: opacity 0.2s ease
|
transition: opacity 0.2s ease
|
||||||
@ -179,10 +171,6 @@
|
|||||||
|
|
||||||
@media (min-width: 769px) and (min-height: 501px)
|
@media (min-width: 769px) and (min-height: 501px)
|
||||||
border: 1px solid rgba(255, 255, 255, 0.7)
|
border: 1px solid rgba(255, 255, 255, 0.7)
|
||||||
text-decoration: none
|
|
||||||
|
|
||||||
@media (max-width: 768px), (max-height: 500px)
|
|
||||||
text-decoration: underline
|
|
||||||
|
|
||||||
height: 30px
|
height: 30px
|
||||||
color: var(--color-lightwhite) !important
|
color: var(--color-lightwhite) !important
|
||||||
@ -195,20 +183,15 @@
|
|||||||
min-width: 0
|
min-width: 0
|
||||||
transition: none
|
transition: none
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
white-space: nowrap
|
||||||
|
|
||||||
&:not(.navbar__container-link--active):hover
|
&:not(.navbar__container-link--active):hover
|
||||||
text-decoration: none
|
background-color: var(--color-dark) !important
|
||||||
|
color: var(--color-lightwhite) !important
|
||||||
@media (min-width: 769px) and (min-height: 501px)
|
|
||||||
background-color: var(--color-dark) !important
|
|
||||||
color: var(--color-lightwhite) !important
|
|
||||||
|
|
||||||
&.navbar__container-link--active
|
&.navbar__container-link--active
|
||||||
text-decoration: none
|
background-color: var(--color-lightwhite) !important
|
||||||
|
color: var(--color-dark) !important
|
||||||
@media (min-width: 769px) and (min-height: 501px)
|
|
||||||
background-color: var(--color-lightwhite) !important
|
|
||||||
color: var(--color-dark) !important
|
|
||||||
|
|
||||||
|
|
||||||
// list item
|
// list item
|
||||||
@ -216,20 +199,14 @@
|
|||||||
position: relative
|
position: relative
|
||||||
transition: background-color .1s ease
|
transition: background-color .1s ease
|
||||||
|
|
||||||
&:not(.navbar__list-item--favorite) + .navbar__list-item--lang-wrapper
|
& + .navbar__list-item
|
||||||
margin-left: 12px
|
|
||||||
|
|
||||||
&:not(.navbar__list-item--favorite) + .navbar__list-item
|
|
||||||
margin-left: 12px
|
margin-left: 12px
|
||||||
|
|
||||||
@media (max-width: 500px)
|
@media (max-width: 500px)
|
||||||
.navbar__list-item
|
.navbar__list-item
|
||||||
min-width: 60px
|
min-width: 60px
|
||||||
|
|
||||||
&:not(.navbar__list-item--favorite) + .navbar__list-item
|
& + .navbar__list-item
|
||||||
margin-left: 0
|
|
||||||
|
|
||||||
&:not(.navbar__list-item--favorite) + .navbar__list-item--lang-wrapper
|
|
||||||
margin-left: 0
|
margin-left: 0
|
||||||
|
|
||||||
// "Favorites" list item, only visible on small screens and logged in
|
// "Favorites" list item, only visible on small screens and logged in
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
##{containerIdent}-radio:checked ~ * ##{containerIdent}-container
|
##{containerIdent}-radio:checked ~ * ##{containerIdent}-container
|
||||||
visibility: visible
|
visibility: visible
|
||||||
margin: 14px 0 0 0
|
|
||||||
height: 30px
|
height: 30px
|
||||||
|
|
||||||
|
@media (min-width: 769px) and (min-height: 501px)
|
||||||
|
##{containerIdent}-radio:checked ~ * ##{containerIdent}-container
|
||||||
|
margin: 14px 0 0 0
|
||||||
|
|
||||||
##{containerIdent}-radio:checked ~ * ##{containerIdent}
|
##{containerIdent}-radio:checked ~ * ##{containerIdent}
|
||||||
background-color: var(--color-dark)
|
background-color: var(--color-dark)
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
$newline never
|
$newline never
|
||||||
<div .navbar-container>
|
<div .navbar-container>
|
||||||
<div .navbar-shadow>
|
|
||||||
<nav .navbar>
|
<nav .navbar>
|
||||||
<div .navbar__list-wrapper>
|
<div .navbar__list-wrapper>
|
||||||
<ul .navbar__list.navbar__list-left>
|
<ul .navbar__list.navbar__list-left>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user