Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

UX tweaks for MVP #651

Merged
merged 6 commits into from
Jan 13, 2022
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
61 changes: 59 additions & 2 deletions fec_eregs/static/regulations/css/scss/module/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,13 @@ $toc-background: $neutral;
border-bottom: none;
border-right: none;
height: auto;
left: 188px;
left: 200px;
position: fixed;
top: $mainhead_height + $subhead_height;
transition: none;
width: auto;
z-index: 1;
z-index: 200;
margin-top: 0.4rem;

a.current,
a:hover {
Expand Down Expand Up @@ -396,3 +397,59 @@ div.footer-disclaimer {
font-family: $sans-serif;
}
}


//Overriding some styles for mobile and responsive breakpoints above so regulations, toc and toggle are always fully visible


#site-header {
position: static;
}

.landing-content {
margin-top: 0;
}

#menu, .toc-head {
top: 179px;
}

.reg-section{
margin-left: 20px
}


.reg-section:before {
margin: -314px 0 0;
}

@media only screen and ( min-width: 790px ) and ( max-width: 997px ) {
#menu, .toc-head {
top: 229px;
}

.reg-section:before {
margin: -2 * $mainhead_height + 40 0 0;
}

}

@media only screen and ( min-width: 721px ) and ( max-width: 789px ) {
#menu, .toc-head {
top: 269px;
}
.reg-section:before {
margin: -2 * $mainhead_height + 80 0 0;
}

}

@media only screen and ( max-width: 720px ) {
#menu, .toc-head {
top: 83px
}
.reg-section:before {
margin: -179px 0 0;
}
}