From 32da2a70ef278bd42f66eb82c3fbf1905a417b87 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 23 Feb 2015 22:55:06 +0100 Subject: Add LiipThemeBundle Re-defined the config / user relation to be OneToOne bidirectionnal. ConfigType is now a service so I can inject the list of available themes that are also used by LiipThemeBundle Force sqlite for test In case of people use a different driver in parameter.yml (yes I do :)) --- .../views/themes/solarized-dark/README.md | 6 + .../themes/solarized-dark/Solarized-LICENSE.txt | 19 ++ .../views/themes/solarized-dark/layout.html.twig | 38 ++++ .../public/css/style-solarized-dark.css | 232 +++++++++++++++++++++ .../public/img/solarized-dark/backtotop.png | Bin 0 -> 242 bytes .../public/img/solarized-dark/bad-display.png | Bin 0 -> 419 bytes .../public/img/solarized-dark/checkmark-off.png | Bin 0 -> 464 bytes .../public/img/solarized-dark/checkmark-on.png | Bin 0 -> 164 bytes .../public/img/solarized-dark/down.png | Bin 0 -> 186 bytes .../public/img/solarized-dark/envelop.png | Bin 0 -> 335 bytes .../public/img/solarized-dark/flattr.png | Bin 0 -> 314 bytes .../public/img/solarized-dark/left.png | Bin 0 -> 148 bytes .../public/img/solarized-dark/link.png | Bin 0 -> 424 bytes .../public/img/solarized-dark/remove.png | Bin 0 -> 329 bytes .../public/img/solarized-dark/rss.png | Bin 0 -> 288 bytes .../public/img/solarized-dark/shaarli.png | Bin 0 -> 729 bytes .../public/img/solarized-dark/star-off.png | Bin 0 -> 441 bytes .../public/img/solarized-dark/star-on.png | Bin 0 -> 327 bytes .../public/img/solarized-dark/top.png | Bin 0 -> 173 bytes .../public/img/solarized-dark/twitter.png | Bin 0 -> 388 bytes .../views/themes/solarized-dark/screenshot.jpg | Bin 0 -> 230456 bytes .../views/themes/solarized-dark/theme.ini | 2 + 22 files changed, 297 insertions(+) create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/README.md create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/Solarized-LICENSE.txt create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/layout.html.twig create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/css/style-solarized-dark.css create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/backtotop.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/bad-display.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/checkmark-off.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/checkmark-on.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/down.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/envelop.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/flattr.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/left.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/link.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/remove.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/rss.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/shaarli.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/star-off.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/star-on.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/top.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/twitter.png create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/screenshot.jpg create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/theme.ini (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark') diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/README.md b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/README.md new file mode 100644 index 00000000..81be1f8c --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/README.md @@ -0,0 +1,6 @@ +# solarized-dark (Solarized Dark) theme + + +Theme created by NumEricR + +http://github.com/NumEricR/poche-themes diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/Solarized-LICENSE.txt b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/Solarized-LICENSE.txt new file mode 100644 index 00000000..a842f663 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/Solarized-LICENSE.txt @@ -0,0 +1,19 @@ +Copyright (c) 2011 Ethan Schoonover + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/layout.html.twig new file mode 100644 index 00000000..8d62a31b --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/layout.html.twig @@ -0,0 +1,38 @@ + + + + + + + + + + + {% block title %}{% endblock %} - wallabag + {% include "WallabagCoreBundle:themes:_global/_head_icon.html.twig" %} + + + + + + + + + + + + + {% include "WallabagCoreBundle::_top.html.twig" %} +
+ {% block menu %}{% endblock %} + {% block precontent %}{% endblock %} + {{ include("WallabagCoreBundle::_messages.html.twig", {'flashMessages': app.session.flashbag.get('notice')}) }} +
+ {% block content %}{% endblock %} +
+
+ {% include "WallabagCoreBundle::_footer.html.twig" %} + + diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/css/style-solarized-dark.css b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/css/style-solarized-dark.css new file mode 100644 index 00000000..77a97d38 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/css/style-solarized-dark.css @@ -0,0 +1,232 @@ +/* + * Solarized Dark - by NumEricR + * http://github.com/NumEricR/poche-themes + * ================================================== + * + * Based on Solarized's palette - (c) 2011 Ethan Schoonover + * See http://ethanschoonover.com/solarized#usage-development + * See http://ethanschoonover.com/solarized#the-values + * + * Background: #002b36 base 03 + * Highlight: #073642 base 02 + * Primary content: #839496 base 0 + * Intermediate: #657b83 base 00 + * Emphasized content: #93a1a1 base 1 + * Secondary content: #586e75 base 01 + * Green: #859900 + * Orange: #cb4b16 + * Red: #dc322f + * Blue: #268bd2 + * + * ================================================== */ + +/* Background */ + +body, +#article_toolbar { + background-color: #002b36; +} + +/* Highlight */ +/* 2 different selectors for selection pseudo-elmt */ +/* See https://developer.mozilla.org/en-US/docs/Web/CSS/::selection */ +::-moz-selection { + background-color: #073642; +} +::selection { + background-color: #073642; +} + +/* Primary content */ + +body, +a, +a:hover, +a:visited, +td { + color: #839496; +} + +/* Secondary content */ + +.tools p, +.vieworiginal a, +.vieworiginal a:hover, +.vieworiginal a:visited { + color: #586e75; +} + +#main #content .entrie, +#article header, +#article article { + border-bottom-color: #586e75; +} + +/* Emphasized content */ + +.entrie h2 a:hover, +footer, +footer a { + color: #93a1a1; +} + +/* Colored content */ + +#main .messages.success, +#main .messages.warning, +#main .messages.error, +#main .messages.information, +#main .messages.info { + background-color: #073642; +} + +#main .messages.success { + border-color: #859900; +} + +#main .messages.success p { + color: #859900 !important; /* Overwrites !important used on messages.css */ +} + +#main .messages.warning { + border-color: #cb4b16; +} + +#main .messages.warning p { + color: #cb4b16; +} + +#main .messages.error { + border-color: #dc322f; +} + +#main .messages.error p { + color: #dc322f !important; /* Overwrites !important used on messages.css */ +} + +#main .messages.information, +#main .messages.info { + border-color: #268bd2; +} + +#main .messages.information p, +#main .messages.info p { + color: #268bd2; +} + +/* Miscellaneous */ + +.bouton, +.bouton:hover, +#main #links li a.current, +#links a:hover, +.pagination span.current, +.pagination a:hover, +.pagination a:active { + color: #002b36; + background-color: #586e75; +} + +.bouton:hover { + background-color: #657b83; +} + +#login, +#password, +#password_repeat, +#bookmarklet, +.top_link { + background-color: #073642; +} + +#login, +#password, +#password_repeat, +#bookmarklet { + padding: 5px; + border: 1px solid #586e75; + color: #839496; +} + +#bookmarklet { + border-style: dashed; +} + +.pagination a { + border-color: #586e75; + color: #586e75; +} + +.pagination span.current { + border-color: #073642; +} + +/* Images */ + +a.back span { + background-image: url('../img/solarized-dark/left.png'); +} + +a.top span { + background-image: url('../img/solarized-dark/top.png'); +} + +a.fav span, +a.fav-off span:hover { + background-image: url('../img/solarized-dark/star-on.png'); +} + +a.fav span:hover, +a.fav-off span { + background-image: url('../img/solarized-dark/star-off.png'); +} + +a.archive span, +a.archive-off span:hover { + background-image: url('../img/solarized-dark/checkmark-on.png'); +} + +a.archive span:hover, +a.archive-off span { + background-image: url('../img/solarized-dark/checkmark-off.png'); +} + +a.twitter span { + background-image: url('../img/solarized-dark/twitter.png'); +} + +a.flattr span { + background-image: url('../img/solarized-dark/flattr.png'); +} + +a.shaarli span { + background-image: url('../img/solarized-dark/shaarli.png'); +} + +a.email span { + background-image: url('../img/solarized-dark/envelop.png'); +} + +a.delete span { + background-image: url('../img/solarized-dark/remove.png'); +} + +a.link span { + background-image: url('../img/solarized-dark/link.png'); +} + +a.bad-display span { + background-image: url('../img/solarized-dark/bad-display.png'); +} + +.arrow-down { + width: 0px; + height: 0px; + border-style: solid; + border-width: 10px 10px 0 10px; + border-color: #586E75 transparent transparent transparent; + + position: absolute; + margin-top: 1.5em; + margin-left: -30px; +} \ No newline at end of file diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/backtotop.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/backtotop.png new file mode 100644 index 00000000..1501c2a5 Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/backtotop.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/bad-display.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/bad-display.png new file mode 100644 index 00000000..b2c3ca17 Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/bad-display.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/checkmark-off.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/checkmark-off.png new file mode 100644 index 00000000..fd7d92fa Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/checkmark-off.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/checkmark-on.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/checkmark-on.png new file mode 100644 index 00000000..592965dd Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/checkmark-on.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/down.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/down.png new file mode 100644 index 00000000..5de30315 Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/down.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/envelop.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/envelop.png new file mode 100644 index 00000000..d3468885 Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/envelop.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/flattr.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/flattr.png new file mode 100644 index 00000000..73e3f421 Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/flattr.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/left.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/left.png new file mode 100644 index 00000000..a953d831 Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/left.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/link.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/link.png new file mode 100644 index 00000000..5e859a0e Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/link.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/remove.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/remove.png new file mode 100644 index 00000000..66a5c1ab Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/remove.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/rss.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/rss.png new file mode 100644 index 00000000..21bad1a1 Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/rss.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/shaarli.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/shaarli.png new file mode 100644 index 00000000..1eb30f60 Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/shaarli.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/star-off.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/star-off.png new file mode 100644 index 00000000..1c603ecc Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/star-off.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/star-on.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/star-on.png new file mode 100644 index 00000000..bc37772a Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/star-on.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/top.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/top.png new file mode 100644 index 00000000..b3f44f31 Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/top.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/twitter.png b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/twitter.png new file mode 100644 index 00000000..c4a25334 Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/public/img/solarized-dark/twitter.png differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/screenshot.jpg b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/screenshot.jpg new file mode 100644 index 00000000..2ad87943 Binary files /dev/null and b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/screenshot.jpg differ diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/theme.ini b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/theme.ini new file mode 100644 index 00000000..c9948146 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/solarized-dark/theme.ini @@ -0,0 +1,2 @@ +name = Solarized Dark +requirements[] = default -- cgit v1.2.3