Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: skin/new-options.css

Issue 29555879: Noissue - Center the content and unfix on small screens the sidebar (Closed)
Patch Set: Created Sept. 25, 2017, 9:58 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skin/new-options.css
===================================================================
--- a/skin/new-options.css
+++ b/skin/new-options.css
@@ -53,6 +53,7 @@
{
background-color: #F3F3F3;
display: flex;
+ justify-content: center;
margin: 1.2rem 0.3rem;
font-family: "Source Sans Pro", sans-serif;
font-size: 1.25rem;
@@ -420,7 +421,6 @@
top: 1.2rem;
bottom: 0rem;
height: auto;
- position: fixed;
}
#sidebar header
@@ -510,8 +510,6 @@
#sidebar footer
{
- bottom: 0px;
- position: absolute;
width: 100%;
}
@@ -522,6 +520,20 @@
margin: 1.2rem 0rem;
}
+@media (min-height: 37rem)
saroyanm 2017/09/25 22:02:13 @Thomas can you please send the link to the soluti
Thomas Greiner 2017/09/26 10:40:38 This is a bit of a hack because it depends on the
Thomas Greiner 2017/09/26 10:40:38 What I was mentioning was `position: sticky` but a
saroyanm 2017/09/26 16:55:48 As we did introduce fixed root element and prevent
saroyanm 2017/09/26 16:55:48 I see.
Thomas Greiner 2017/09/27 13:27:50 Ok, since there's no good solution that we can imp
saroyanm 2017/09/27 14:56:43 Agree, done.
+{
+ #sidebar .fixed
+ {
+ position: fixed;
+ }
+
+ #sidebar footer
+ {
+ bottom: 0px;
+ position: absolute;
+ }
+}
+
/*
Main content
*/
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld