From 76a7ae56d3eb47a28b97879f1ad7a88ed7e7706d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Mar 2013 14:16:34 +0400 Subject: [PATCH] add plugin based on google reader css at http://tt-rss.org/forum/viewtopic.php?f=22&t=1287&start=15#p5956 --- plugins/googlereadertheme/init.css | 73 ++++++++++++++++++++++++++++++ plugins/googlereadertheme/init.php | 25 ++++++++++ 2 files changed, 98 insertions(+) create mode 100644 plugins/googlereadertheme/init.css create mode 100644 plugins/googlereadertheme/init.php diff --git a/plugins/googlereadertheme/init.css b/plugins/googlereadertheme/init.css new file mode 100644 index 000000000..8d5c8cefe --- /dev/null +++ b/plugins/googlereadertheme/init.css @@ -0,0 +1,73 @@ +/* fix dijit */ +:focus { + outline: none; +} +input[type="search"] { + -webkit-appearance: none; +} +.claro .dijitToolbar .dijitButton .dijitButtonNode, +.claro .dijitToolbar .dijitDropDownButton .dijitButtonNode, +.claro .dijitToolbar .dijitComboButton .dijitButtonNode, +.claro .dijitToolbar .dijitToggleButton .dijitButtonNode, +.claro .dijitToolbar .dijitComboBox .dijitButtonNode { + -moz-transition: background-color, border-color, color; + -webkit-transition-property: background-color, border-color, color; + transition: background-color, border-color, color; +} + + +/* some style */ +body#ttrssMain, +a, +.titleWrap .title { + color: #444; +} +a:hover, +.Unread .titleWrap .title, +.Selected .titleWrap .title, +html div.cdmContent a { + color: #15c; +} +#feeds-holder, +#content-wrap, +#headlines-frame { + border: none; +} +#ttrssMain #headlines-toolbar, +#ttrssMain .dijitToolbar, +#ttrssMain .cdmHeader { + background: #fff; + border-color: transparent; +} +#ttrssMain #headlines-toolbar { + border-color: #ebebeb; +} +#ttrssMain .cdm { + margin: 5px 25px 10px 5px; + border: 1px solid #ddd !important; + box-shadow: 0 0 4px rgba(0,0,0,.1); + background: #fff !important; +} +#ttrssMain .cdm.Selected { + border-left-color: #4d90f0 !important; + background: #fff !important; +} +#ttrssMain .cdmFeedTitle { + border-color: #ebebeb; + background: #fff; + font-size: 1.2em; + font-weight: bold; +} +#headlines-frame .cdmFooter { + border-top: 1px solid #ebebeb; + background: #fafafa; +} + +.titleWrap .title { + font-size: 1.5em; + font-weight: bold; +} +div.cdmHeader span.hlFeed { + padding-top: .5em; +} + diff --git a/plugins/googlereadertheme/init.php b/plugins/googlereadertheme/init.php new file mode 100644 index 000000000..76e6fa421 --- /dev/null +++ b/plugins/googlereadertheme/init.php @@ -0,0 +1,25 @@ +link = $host->get_link(); + $this->host = $host; + + // force-enable combined mode + set_pref($this->link, "COMBINED_DISPLAY_MODE", true); + } + + function get_css() { + return file_get_contents(dirname(__FILE__) . "/init.css"); + } +} +?>