diff options
| author | 2014-06-04 19:46:48 +0200 | |
|---|---|---|
| committer | 2014-06-04 19:46:48 +0200 | |
| commit | b791134b895d586f71cc28eaf990cbe2fc64016d (patch) | |
| tree | fe972162d174267cf57d8cbad55ad8da63070621 | |
| parent | 4bdabbd39fd111c6c12d5953bd4bd6de2ae3903d (diff) | |
Fix theme Origine2 and template
See https://github.com/marienfressinaud/FreshRSS/issues/320
| -rw-r--r-- | p/themes/Origine2/origine.css | 130 | ||||
| -rw-r--r-- | p/themes/Origine2/template.css | 26 | ||||
| -rw-r--r-- | p/themes/template/template.css | 26 |
3 files changed, 151 insertions, 31 deletions
diff --git a/p/themes/Origine2/origine.css b/p/themes/Origine2/origine.css index 31d1d4233..9f339a2e9 100644 --- a/p/themes/Origine2/origine.css +++ b/p/themes/Origine2/origine.css @@ -70,13 +70,19 @@ input.extend { /*=== Tables */ table { border-collapse: collapse; - text-align: center; } tr, th, td { padding: 0.5em; border: 1px solid #ddd; +} +th { + background: #f6f6f6; +} +form td, +form th { font-weight: normal; + text-align: center; } /*=== COMPONENTS */ @@ -305,6 +311,8 @@ a.btn { } .nav-head .item { padding: 5px 10px; + font-size: 0.9rem; + line-height: 1.5rem; } /*=== Horizontal-list */ @@ -416,12 +424,15 @@ a.btn { /*=== Pagination */ .pagination { - margin: 0; background: #fafafa; text-align: center; color: #333; font-size: 0.8em; } +.content .pagination { + margin: 0; + padding: 0; +} .pagination .item.pager-current { font-weight: bold; font-size: 1.5em; @@ -431,6 +442,10 @@ a.btn { color: #333; font-style: italic; line-height: 3em; + text-decoration: none; +} +.pagination .item a:hover { + background: #ddd; } .pagination:first-child .item { border-bottom: 1px solid #aaa; @@ -553,6 +568,9 @@ a.btn { .post form { margin: 10px 0; } +.post.content { + max-width: 550px; +} /*=== Prompt (centered) */ .prompt { @@ -680,6 +698,48 @@ a.btn { color: #000; } +.content hr { + margin: 30px 10px; + height: 1px; + background: #ddd; + border: 0; + box-shadow: 0 2px 5px #ccc; +} + +.content pre { + margin: 10px auto; + padding: 10px 20px; + overflow: auto; + background: #222; + color: #fff; + font-size: 0.9rem; + border-radius: 3px; +} +.content code { + padding: 2px 5px; + color: #dd1144; + background: #fafafa; + border: 1px solid #eee; + border-radius: 3px; +} +.content pre code { + background: transparent; + color: #fff; + border: none; +} + +.content blockquote { + display: block; + padding: 5px 20px; + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + background: #fafafa; + color: #333; +} +.content blockquote p { + margin: 0; +} + /*=== Notification and actualize notification */ .notification { padding: 0 0 0 5px; @@ -799,7 +859,6 @@ a.btn { font-size: 0.9rem; } - /*=== DIVERS */ /*===========*/ .aside.aside_feed .nav-form input, @@ -813,6 +872,59 @@ a.btn { right: 33px; } +/*=== STATISTICS */ +/*===============*/ +.stat { + margin: 10px 0 20px; +} + +.stat th, +.stat td, +.stat tr { + border: none; +} +.stat > table td, +.stat > table th { + border-bottom: 1px solid #ddd; + text-align: center; +} + +/*=== LOGS */ +/*=========*/ +.logs { + border: 1px solid #aaa; + border-radius: 5px; + overflow: hidden; +} +.log { + padding: 5px 10px; + background: #fafafa; + color: #333; + font-size: 90%; +} +.log+.log { + border-top: 1px solid #aaa; +} +.log .date { + display: block; + font-weight: bold; +} +.log.error { + background: #fdd; + color: #844; +} +.log.warning { + background: #ffe; + color: #c95; +} +.log.notice { + background: #f4f4f4; + color: #aaa; +} +.log.debug { + background: #333; + color: #eee; +} /*=== MOBILE */ /*===========*/ @@ -869,4 +981,16 @@ a.btn { .flux_header .item.website .favicon { padding: 12px; } + + .notification a.close { + display: block; + left: 0; + background: transparent; + } + .notification a.close:hover { + opacity: 0.5; + } + .notification a.close .icon { + display: none; + } } diff --git a/p/themes/Origine2/template.css b/p/themes/Origine2/template.css index d57f2cde3..dd8682472 100644 --- a/p/themes/Origine2/template.css +++ b/p/themes/Origine2/template.css @@ -24,15 +24,15 @@ ul, ol, dd { /*=== Titles */ h1 { - margin: 0.3em 0 0.6em; + margin: 0.6em 0 0.3em; font-size: 1.8em; } h2 { - margin: 0.25em 0 0.5em; + margin: 0.5em 0 0.25em; font-size: 1.6em; } h3 { - margin: 0.25em 0 0.5em; + margin: 0.5em 0 0.25em; font-size: 1.4em; } @@ -235,6 +235,8 @@ a.btn { .pagination { display: table; width: 100%; + margin: 0; + padding: 0; table-layout: fixed; } .pagination .item { @@ -363,9 +365,6 @@ a.btn { } .flux .item { line-height: 40px; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; } .flux .item.manage, .flux .item.link { @@ -381,12 +380,8 @@ a.btn { } .flux:not(.current):hover .item.title { position: absolute; - top: 0; - height: auto; max-width: calc(100% - 320px); background: #fff; - white-space: normal; - z-index: 10; } .flux .item.title a { color: #000; @@ -399,7 +394,7 @@ a.btn { .flux .item > a { display: block; } -.flux .item:not(.title) > a { +.flux .item > a { display: block; text-decoration: none; white-space: nowrap; @@ -455,10 +450,14 @@ a.btn { } .notification a.close { position: absolute; + top: 0; bottom: 0; right: 0; display: inline-block; } +#actualizeProgress { + position: fixed; +} #actualizeProgress progress { max-width: 100%; vertical-align: middle; @@ -503,7 +502,7 @@ a.btn { } /*=== Statistiques */ -.stat table { +.stat > table { width: 100%; } @@ -623,8 +622,7 @@ a.btn { white-space: nowrap; } - #notification, - .actualizeProgress { + .notification { top: 0; left: 0; right: 0; diff --git a/p/themes/template/template.css b/p/themes/template/template.css index d57f2cde3..dd8682472 100644 --- a/p/themes/template/template.css +++ b/p/themes/template/template.css @@ -24,15 +24,15 @@ ul, ol, dd { /*=== Titles */ h1 { - margin: 0.3em 0 0.6em; + margin: 0.6em 0 0.3em; font-size: 1.8em; } h2 { - margin: 0.25em 0 0.5em; + margin: 0.5em 0 0.25em; font-size: 1.6em; } h3 { - margin: 0.25em 0 0.5em; + margin: 0.5em 0 0.25em; font-size: 1.4em; } @@ -235,6 +235,8 @@ a.btn { .pagination { display: table; width: 100%; + margin: 0; + padding: 0; table-layout: fixed; } .pagination .item { @@ -363,9 +365,6 @@ a.btn { } .flux .item { line-height: 40px; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; } .flux .item.manage, .flux .item.link { @@ -381,12 +380,8 @@ a.btn { } .flux:not(.current):hover .item.title { position: absolute; - top: 0; - height: auto; max-width: calc(100% - 320px); background: #fff; - white-space: normal; - z-index: 10; } .flux .item.title a { color: #000; @@ -399,7 +394,7 @@ a.btn { .flux .item > a { display: block; } -.flux .item:not(.title) > a { +.flux .item > a { display: block; text-decoration: none; white-space: nowrap; @@ -455,10 +450,14 @@ a.btn { } .notification a.close { position: absolute; + top: 0; bottom: 0; right: 0; display: inline-block; } +#actualizeProgress { + position: fixed; +} #actualizeProgress progress { max-width: 100%; vertical-align: middle; @@ -503,7 +502,7 @@ a.btn { } /*=== Statistiques */ -.stat table { +.stat > table { width: 100%; } @@ -623,8 +622,7 @@ a.btn { white-space: nowrap; } - #notification, - .actualizeProgress { + .notification { top: 0; left: 0; right: 0; |
