From f87af55eb50a38ba44fcc0397d93e4989304bc8b Mon Sep 17 00:00:00 2001 From: hackademix Date: Thu, 13 Sep 2018 15:54:10 +0200 Subject: Refactored panel visual styles to be reused by the general settings page. --- html/README | 21 ++++++++++++++++ html/background-panel.png | Bin 0 -> 14814 bytes html/common.css | 29 +++++++++++++++++++++++ html/display_panel/content/README | 21 ---------------- html/display_panel/content/background-panel.png | Bin 14814 -> 0 bytes html/display_panel/content/librejs-title-old.png | Bin 2673 -> 0 bytes html/display_panel/content/librejs-title.png | Bin 14123 -> 0 bytes html/display_panel/content/panel-styles.css | 28 +++------------------- html/librejs-title.png | Bin 0 -> 14123 bytes 9 files changed, 53 insertions(+), 46 deletions(-) create mode 100644 html/README create mode 100644 html/background-panel.png create mode 100644 html/common.css delete mode 100644 html/display_panel/content/README delete mode 100644 html/display_panel/content/background-panel.png delete mode 100644 html/display_panel/content/librejs-title-old.png delete mode 100644 html/display_panel/content/librejs-title.png create mode 100644 html/librejs-title.png diff --git a/html/README b/html/README new file mode 100644 index 0000000..a56ea46 --- /dev/null +++ b/html/README @@ -0,0 +1,21 @@ +/** + * GNU LibreJS - A browser add-on to block nonfree nontrivial JavaScript. + * * + * Copyright (C) 2011, 2012, 2014 Loic J. Duros + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +All images in this directory are free, released under the GPLv3 or later. \ No newline at end of file diff --git a/html/background-panel.png b/html/background-panel.png new file mode 100644 index 0000000..022ffb3 Binary files /dev/null and b/html/background-panel.png differ diff --git a/html/common.css b/html/common.css new file mode 100644 index 0000000..cf2c5d1 --- /dev/null +++ b/html/common.css @@ -0,0 +1,29 @@ +html { + padding:0px; + margin:0px; + color:#000 !important; + background:url('background-panel.png') !important; +} +body { + padding:0; + margin:10px 30px 10px 20px; + color:#000; +} + +div.libre { + position: relative; +} + +.libre { + width:230px; + height:104px; + display:block; +} +h1.libre { + font-size:1.5em; + font-weight:normal; + padding:0; + font-weight:bold; + background:url('librejs-title.png') no-repeat top left; + text-indent:-1000px; +} diff --git a/html/display_panel/content/README b/html/display_panel/content/README deleted file mode 100644 index a56ea46..0000000 --- a/html/display_panel/content/README +++ /dev/null @@ -1,21 +0,0 @@ -/** - * GNU LibreJS - A browser add-on to block nonfree nontrivial JavaScript. - * * - * Copyright (C) 2011, 2012, 2014 Loic J. Duros - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ - -All images in this directory are free, released under the GPLv3 or later. \ No newline at end of file diff --git a/html/display_panel/content/background-panel.png b/html/display_panel/content/background-panel.png deleted file mode 100644 index 022ffb3..0000000 Binary files a/html/display_panel/content/background-panel.png and /dev/null differ diff --git a/html/display_panel/content/librejs-title-old.png b/html/display_panel/content/librejs-title-old.png deleted file mode 100644 index 8a11527..0000000 Binary files a/html/display_panel/content/librejs-title-old.png and /dev/null differ diff --git a/html/display_panel/content/librejs-title.png b/html/display_panel/content/librejs-title.png deleted file mode 100644 index c1a911c..0000000 Binary files a/html/display_panel/content/librejs-title.png and /dev/null differ diff --git a/html/display_panel/content/panel-styles.css b/html/display_panel/content/panel-styles.css index 745c67f..0d849e4 100644 --- a/html/display_panel/content/panel-styles.css +++ b/html/display_panel/content/panel-styles.css @@ -17,38 +17,16 @@ * along with this program. If not, see . * */ -html { - padding:0px; - margin:0px; - color:#000 !important; - background:url('background-panel.png') !important; -} +@import url("/html/common.css"); + body { - padding:0; - margin:10px 30px 10px 20px; - color:#000; -width:500px; + width:500px; } - #header{ display:block; width:500px; } -.libre { - width:230px; - height:104px; - display:block; -} -h1.libre { - font-size:1.5em; - font-weight:normal; - padding:0; - font-weight:bold; - background:url('librejs-title.png') no-repeat top left; - text-indent:-1000px; - overflow:hidden; -} h2 { font-size:1.1em; font-weight:bold; diff --git a/html/librejs-title.png b/html/librejs-title.png new file mode 100644 index 0000000..c1a911c Binary files /dev/null and b/html/librejs-title.png differ -- cgit v1.2.3