From 34aa06a9b9c9bc6cdfb61607b2def8e1fc861b76 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 16 Oct 2016 11:51:38 +0200 Subject: [PATCH 01/40] WIP Signed-off-by: Thomas Citharel --- .../static/themes/material/css/main.css | 102 +++++++++++++++--- .../themes/material/Entry/entries.html.twig | 30 ++---- .../themes/material/Entry/entry.html.twig | 53 +++++---- .../themes/material/css/style.min.css | 7 +- .../themes/material/css/style.min.css.map | 1 + 5 files changed, 134 insertions(+), 59 deletions(-) create mode 100644 web/bundles/wallabagcore/themes/material/css/style.min.css.map diff --git a/app/Resources/static/themes/material/css/main.css b/app/Resources/static/themes/material/css/main.css index 2cc2e8a0f..f5687318a 100755 --- a/app/Resources/static/themes/material/css/main.css +++ b/app/Resources/static/themes/material/css/main.css @@ -17,12 +17,11 @@ 0 = Common ========================================================================== */ -@font-face { - font-family: icomoon; - src: url("../fonts/IcoMoon-Free.ttf"); - font-weight: normal; - font-style: normal; -} +/** + * + * Material icons + * + */ @font-face { font-family: 'Material Icons'; @@ -62,6 +61,33 @@ font-feature-settings: 'liga'; } +/* Rules for sizing the icon. */ +.material-icons.md-18 { font-size: 18px; } +.material-icons.md-24 { font-size: 24px; } +.material-icons.md-36 { font-size: 36px; } +.material-icons.md-48 { font-size: 48px; } + +/* Rules for using icons as black on a light background. */ +.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); } +.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); } + +/* Rules for using icons as white on a dark background. */ +.material-icons.md-light { color: rgba(255, 255, 255, 1); } +.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); } + +/** + * + * Icomoon icons + * + */ + +@font-face { + font-family: icomoon; + src: url("../fonts/IcoMoon-Free.ttf"); + font-weight: normal; + font-style: normal; +} + [class^="icon-"]::before, [class*=" icon-"]::before { font-family: icomoon; @@ -397,13 +423,23 @@ main ul.row { } .data .card .card-body { - height: 22em; + height: 19em; overflow: hidden; } -.card .card-content .card-title { - line-height: 32px; +.card .card-content .card-title, +.card .card-reveal .card-title { + line-height: 22.8px; max-height: 64px; + font-size: 19px; + font-family: roberto, "Helvetica Neue", Helvetica, Arial, sans-serif; + color: #313131; +} + +.card .card-content .activator, +.card .card-reveal .activator { + cursor: pointer; + font-family: "Material Icons"; } .card .card-content i.right, @@ -411,6 +447,11 @@ main ul.row { margin-left: 0; } +.card .card-content .original { + line-height: 24px; + font-size: 15px; +} + .card .card-entry-labels { position: absolute; top: 10px; @@ -433,7 +474,7 @@ main ul.row { } .card .card-entry-labels-hidden { - margin-top: 5px; + margin: 2.5px auto; } .card .card-entry-labels-hidden li { @@ -464,8 +505,8 @@ main ul.row { margin-bottom: 10px; } -.card .card-action .original { - line-height: 24px; +.card .card-action { + padding: 10px 5px 10px 15px; } .card .card-action ul.links { @@ -483,6 +524,11 @@ main ul.row { color: #fff; } +.card .card-action .reading-time { + display: inline-flex; + vertical-align: middle; +} + .quickstart .card .card-action a, .quickstart .card .card-action a:hover { color: #fff !important; @@ -499,7 +545,7 @@ main ul.row { } .card .card-image { - height: 14em; + height: 10em; } .card .card-image .preview { @@ -526,7 +572,8 @@ main ul.row { } #article > header > h1 { - font-size: 1.6em; + font-size: 2em; + margin: 2.1rem 0 0.68rem; } .reader-mode { @@ -565,9 +612,21 @@ main ul.row { z-index: 9999; } -#article aside .link { - color: #000; +#article aside .tools { font-size: 0.8em; + display: flex; + flex-flow: row wrap; + margin: 0 auto; +} + +#article aside .tools li { + display: inline-flex; + vertical-align: middle; + margin: auto 10px; +} + +#article aside .tools a { + color: #000; text-decoration: none; } @@ -578,10 +637,11 @@ main ul.row { #article aside .chip { background-color: rgba(0, 151, 167, 0.85); - color: #fff; padding: 0 15px 0 10px; + margin: auto 2px; } +#article aside .chip a, #article aside .chip i { color: #fff; } @@ -708,6 +768,14 @@ main ul.row { .nb-results { display: none; } + + main ul.row { + padding: 0; + } + + .row .col { + padding: 0; + } } /* ========================================================================== diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index 919f94eca..d0786936e 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig @@ -9,7 +9,7 @@