From d9fa2ac90032f8593266dec39b2ff99eacd6dcca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Thu, 19 Oct 2017 15:32:11 +0200 Subject: [PATCH] Grey background for white icon classes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- .../themes/nextcloud_com/static/styles.css | 68 ++++++++++--------- developer_manual/design/icons.rst | 2 + 2 files changed, 39 insertions(+), 31 deletions(-) diff --git a/_shared_assets/themes/nextcloud_com/static/styles.css b/_shared_assets/themes/nextcloud_com/static/styles.css index 4dbd8ec98..4610afb41 100644 --- a/_shared_assets/themes/nextcloud_com/static/styles.css +++ b/_shared_assets/themes/nextcloud_com/static/styles.css @@ -3,8 +3,8 @@ /* enable to reveal boxes everywhere */ /** { - border-style: solid; - border-color: red; + border-style: solid; + border-color: red; }*/ @font-face { @@ -78,13 +78,13 @@ img { } .btn-default { - /* background: rgba(240,240,240,.9); */ - /* border: 1px solid rgba(210,210,210,.9); */ + /* background: rgba(240,240,240,.9); */ + /* border: 1px solid rgba(210,210,210,.9); */ } .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { - /* background: white; */ - /* border: 1px solid rgba(240,240,240,.9); */ + /* background: white; */ + /* border: 1px solid rgba(240,240,240,.9); */ } .btn-primary { @@ -94,9 +94,9 @@ img { } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { - /* background: #428BCA; */ - /* border: 1px solid #1D2D44; */ - /* color: white; */ + /* background: #428BCA; */ + /* border: 1px solid #1D2D44; */ + /* color: white; */ } /* button a {color: #1d2d44} */ @@ -975,7 +975,7 @@ img.desaturate { background-size: cover; -o-background-size: cover; /* border: 0px; */ - /* min-height: 450px; background-position: 35% 40%; */ + /* min-height: 450px; background-position: 35% 40%; */ position: relative; margin-left: 0px !important; margin-right: 0px !important; @@ -983,7 +983,7 @@ img.desaturate { } /*.ft-img-center { - margin: 0 auto; + margin: 0 auto; }*/ .ft-sharing { @@ -1020,7 +1020,7 @@ img.desaturate { @media (max-width: 767px) { .ft-everywhere-img { - /* height: auto; */ + /* height: auto; */ width: 20%; right: 5%; } @@ -1046,12 +1046,12 @@ img.desaturate { } /*.ft-img-overlay a { - display: table; + display: table; }*/ /*.ft-img-overlay img { - width: 100%; - height: 100%; + width: 100%; + height: 100%; }*/ .ft-play-overlay { @@ -1060,9 +1060,9 @@ img.desaturate { top: 30%; left: 45%; margin-top: 10px; - /* width: 0px; */ - /* height: 0px; */ - /* padding: 50%; */ + /* width: 0px; */ + /* height: 0px; */ + /* padding: 50%; */ } .youtube i { @@ -1146,27 +1146,27 @@ li.next { /* Floating image on code */ .figure.figure-with-code img { - margin: 0; + margin: 0; } .figure.figure-with-code { - float: right; + float: right; max-width: 40%; min-width: 200px; } .figure.figure-with-code + .code.html, .figure.figure-with-code + .highlight-html { - max-width: 59%; + max-width: 59%; } .figure.figure-with-code + .code.html::after, .figure.figure-with-code + .highlight-html::after { - content: ' '; - clear: both; - display: block; + content: ' '; + clear: both; + display: block; } /* Fix nested lists bold */ li > dl > dt { - font-weight: inherit; + font-weight: inherit; } /* Icons grid */ @@ -1180,13 +1180,19 @@ li > dl > dt { text-align: center; flex: 10%; } -#icons > blockquote > div > div:hover img { - filter: drop-shadow(0 0 10px black); -} #icons > blockquote > div img { - margin: 10px; - transition: filter 100ms ease-in-out; + margin: 5px; } #icons > blockquote > div p { - font-size: inherit; + font-size: inherit; +} +#icons > blockquote > div a { + display: flex; + width: 42px; + height: 42px; + margin: auto; +} +#icons > blockquote > div > div a[href*='white'] { + background: #ddd; + border-radius: 50%; } diff --git a/developer_manual/design/icons.rst b/developer_manual/design/icons.rst index a34277569..a461dc9f6 100644 --- a/developer_manual/design/icons.rst +++ b/developer_manual/design/icons.rst @@ -6,5 +6,7 @@ Icons ======== +White icons only have a grey background on this documentation page for readability purposes. + .. include:: icons.txt :class: icons-flex