diff --git a/web/css/responsive.css b/web/css/responsive.css index b941115..a4e5f0c 100644 --- a/web/css/responsive.css +++ b/web/css/responsive.css @@ -8,14 +8,11 @@ /* Utility */ .vertical-hide { - display: none; + display: none !important; } /* Application Framework */ - #container { - flex-flow: column-reverse; - } - #content { + #view { width: initial; border-right: none; } @@ -23,17 +20,6 @@ padding: 12px; } - /* Navigation */ - #nav { - flex-flow: row; - border-right: none; - } - #nav > * { - flex: auto; - margin-bottom: 0; - font-size: 1.3em; - } - /* Event */ .pfp { /* TODO sync up with userpic */ width: 44px; diff --git a/web/css/styles.css b/web/css/styles.css index d636166..d9d9d1d 100644 --- a/web/css/styles.css +++ b/web/css/styles.css @@ -44,8 +44,6 @@ body { font-size: var(--fsNormal); margin: 0; padding: 0; - width: 100%; - height: 100%; } /* Utilities */ @@ -94,15 +92,23 @@ button.action { .bottom-border { /* TODO rename to bdr-bottom */ border-bottom: solid 1px var(--clrBorder); } +.sticky { + position: sticky; + top: 0; +} /* Navigation */ #nav { - display: flex; - flex-flow: column; border-right: 1px solid var(--clrBorder); padding: 16px; } -#nav > * { +#nav > div { + position: sticky; + top: 16px; + display: flex; + flex-flow: column; +} +#nav > div > * { margin-bottom: 38px; } #app-icon-logo { @@ -123,37 +129,23 @@ button.nav { #container { display: flex; flex-flow: row; - width: 100vw; - height: 100vh; - overflow: hidden; } -#content { +#view { flex: auto; - display: flex; - flex-direction: column; border-right: 1px solid var(--clrBorder); - overflow: hidden; width: 750px; } -#content { - flex: auto; - display: flex; - flex-direction: column; - border-right: 1px solid var(--clrBorder); - overflow: hidden; - width: 750px; +#view header { + position: sticky; + top: 0; + background: var(--clrBg); } -#content header > label { +#view header > label { padding: 22px 15px; font-size: 22px; font-weight: 800; display: block; } -#view { - height: 100%; - overflow-y: scroll; - flex: 1; -} /* Events & Content */ .event { @@ -169,10 +161,9 @@ button.nav { text-align: center; padding: 15px; } -.userpic { +.userpic { /* TODO remove .userpic and use helper class */ flex-shrink: 1; } - .pfp { border-radius: 50%; width: 64px; diff --git a/web/index.html b/web/index.html index d9b1aa5..4a18be5 100644 --- a/web/index.html +++ b/web/index.html @@ -6,7 +6,6 @@