From e9abcc803127a7561f57cb3186b1de41dec3f7fd Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 22 Nov 2017 03:50:19 +0300 Subject: [PATCH] install-usercss: css tweaks * pad the Install button * remove global * selector * add narrow @media query * simplify css --- install-usercss/install-usercss.css | 45 ++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 10 deletions(-) diff --git a/install-usercss/install-usercss.css b/install-usercss/install-usercss.css index eb4df0a6..910f9295 100644 --- a/install-usercss/install-usercss.css +++ b/install-usercss/install-usercss.css @@ -4,10 +4,6 @@ body { background: white; } -* { - box-sizing: border-box; -} - a { color: #000; transition: color .5s; @@ -32,6 +28,7 @@ svg.icon { .header { flex: 0 0 280px; + box-sizing: border-box; padding: 15px; border-right: 1px dashed #aaa; box-shadow: 0 0 50px -18px black; @@ -53,9 +50,7 @@ h1 small { .warning { padding: 3px 6px; - border: 1px dashed black; - - border-color: #ef6969; + border: 1px dashed #ef6969; background: #ffe2e2; } @@ -68,13 +63,19 @@ h1 small { } .actions label { - max-width: fit-content; max-width: -moz-fit-content; + max-width: fit-content; display: flex; align-items: center; margin: 0.5em 0; } +.install { + padding: 1ex 1em; + font-weight: bold; + margin-bottom: 1ex; +} + .actions label input { margin: 0 0.5em 0 0; flex: 0 0 auto; @@ -92,6 +93,10 @@ h1 small { margin: 0 7.5px; } +li { + margin-left: -2em; +} + .code { padding: 2em; } @@ -101,9 +106,7 @@ h1 small { overflow: hidden; overflow-wrap: break-word; min-width: 0; - display: flex; - flex-direction: column; } .main > :first-child { @@ -119,3 +122,25 @@ h1 small { .main .CodeMirror { height: 100%; } + +/************ reponsive layouts ************/ +@media (max-width:7.5in) { + .container { + flex-direction: column; + } + .header { + flex-basis: auto; + -webkit-column-count: 2; + -moz-column-count: 2; + column-count: 2; + border-right: none; + border-bottom: 1px dashed #AAA; + z-index: 2; + } + .main { + padding-left: 0; + } + .code { + padding: 0; + } +}