diff --git a/static/styles.css b/static/styles.css index 73799d1..7307fbf 100644 --- a/static/styles.css +++ b/static/styles.css @@ -247,37 +247,48 @@ iframe { } } .container .columnA { + position: -webkit-sticky; + position: sticky; + top: 2rem; + align-self: flex-start; flex-basis: 25%; margin-top: 2rem; } @media (max-width: 580px) { .container .columnA { display: flex; + position: relative; + top: auto; align-items: center; margin-top: 0rem; } } .container .columnA .info-wrapper { display: none; + font-size: 1.6rem; + margin-bottom: 0.6em; + text-align: center; +} +.container .columnA .info-wrapper .display { + display: block; + font-size: 1.2rem; +} +.theme--default .container .columnA .info-wrapper .display { + color: #c9c9c9; +} +.theme--dark .container .columnA .info-wrapper .display { + color: #969696; } @media (max-width: 580px) { .container .columnA .info-wrapper { display: block; + text-align: left; + margin-bottom: 0; flex-basis: 64%; max-width: 64%; overflow: hidden; font-size: 1.6rem; } - .container .columnA .info-wrapper .display { - display: block; - font-size: 1.2rem; - } - .theme--default .container .columnA .info-wrapper .display { - color: #c9c9c9; - } - .theme--dark .container .columnA .info-wrapper .display { - color: #969696; - } } .container .columnA .last_update { font-size: 0.8em; diff --git a/static/styles.scss b/static/styles.scss index 9d4fe2c..ca748d5 100644 --- a/static/styles.scss +++ b/static/styles.scss @@ -288,28 +288,39 @@ iframe { } .columnA { + position: -webkit-sticky; + position: sticky; + top: 2rem; + align-self: flex-start; flex-basis: 25%; margin-top: 2rem; @media (max-width: 580px) { display: flex; + position: relative; + top: auto; align-items: center; margin-top: 0rem; } .info-wrapper { display: none; + font-size: 1.6rem; + margin-bottom: 0.6em; + text-align: center; + .display { + display: block; + font-size: 1.2rem; + @include themed() { + color: t($base4); + } + } @media (max-width: 580px) { display: block; + text-align: left; + margin-bottom: 0; flex-basis: 64%; max-width: 64%; overflow: hidden; font-size: 1.6rem; - .display { - display: block; - font-size: 1.2rem; - @include themed() { - color: t($base4); - } - } } } .last_update { diff --git a/templates/profile.html b/templates/profile.html index e262c20..7d55c47 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -10,10 +10,12 @@