Add own styles
authorPetr Vobornik <pvoborni@redhat.com>
Mon, 27 Jan 2014 17:15:50 +0000 (18:15 +0100)
committerSimo Sorce <simo@redhat.com>
Mon, 17 Feb 2014 14:49:52 +0000 (09:49 -0500)
Signed-off-by: Petr Vobornik <pvoborni@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
less/admin.less [new file with mode: 0644]
less/font.less [new file with mode: 0644]
less/ipsilon.less [new file with mode: 0644]

diff --git a/less/admin.less b/less/admin.less
new file mode 100644 (file)
index 0000000..f6514fc
--- /dev/null
@@ -0,0 +1,86 @@
+//
+// Copyright (C) 2014  Petr Vobornik <pvoborni@redhat.com>
+//
+// see file 'COPYING' for use and warranty information
+//
+// 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 <http://www.gnu.org/licenses/>.
+
+// Styles are taken from PatternFly and Bootstrap project.
+
+// Core variables and mixins
+@import "bootstrap/variables.less";
+@import "bootstrap/mixins.less";
+
+// Reset
+@import "bootstrap/normalize.less";
+@import "bootstrap/print.less";
+
+// Core CSS
+@import "bootstrap/scaffolding.less";
+@import "bootstrap/type.less";
+@import "bootstrap/code.less";
+@import "bootstrap/grid.less";
+@import "bootstrap/tables.less";
+@import "bootstrap/forms.less";
+@import "bootstrap/buttons.less";
+
+// Components
+@import "bootstrap/component-animations.less";
+//@import "glyphicons.less";
+@import "bootstrap/dropdowns.less";
+@import "bootstrap/button-groups.less";
+@import "bootstrap/input-groups.less";
+@import "bootstrap/navs.less";
+@import "bootstrap/navbar.less";
+@import "bootstrap/breadcrumbs.less";
+@import "bootstrap/pagination.less";
+@import "bootstrap/pager.less";
+@import "bootstrap/labels.less";
+@import "bootstrap/badges.less";
+@import "bootstrap/jumbotron.less";
+@import "bootstrap/thumbnails.less";
+@import "bootstrap/alerts.less";
+@import "bootstrap/progress-bars.less";
+@import "bootstrap/media.less";
+@import "bootstrap/list-group.less";
+@import "bootstrap/panels.less";
+@import "bootstrap/wells.less";
+@import "bootstrap/close.less";
+
+// Components w/ JavaScript
+@import "bootstrap/modals.less";
+@import "bootstrap/tooltip.less";
+@import "bootstrap/popovers.less";
+@import "bootstrap/carousel.less";
+
+// Utility classes
+@import "bootstrap/utilities.less";
+@import "bootstrap/responsive-utilities.less";
+
+
+// PatternFly imports
+@import "patternfly/variables.less";
+@import "patternfly/forms.less";
+@import "patternfly/mixins.less";
+@import "patternfly/buttons.less";
+@import "patternfly/navbar.less";
+@import "patternfly/dropdowns.less";
+
+
+// Open Sans Fonts
+@import "font.less";
+
+// remove warnings
+@fa-var-angle-right: ">";
+@fa-var-angle-down: "\f107";
diff --git a/less/font.less b/less/font.less
new file mode 100644 (file)
index 0000000..9305392
--- /dev/null
@@ -0,0 +1,91 @@
+//
+// Font face definitions are different than original RCUE ones.
+// Here we supply only ttf variants. Additionally local variant can be
+// used so it can save some load time in some browsers.
+//
+// This approach has a disadvantage:
+// - fonts do not work in IE8 and below
+//
+// Advantage is that it nicely fits into Fedora packaging guidelines
+//
+
+
+@font-face {
+  font-family: 'Open Sans';
+  font-style: normal;
+  font-weight: normal;
+  src: local('Open Sans'),
+       url('../fonts/open-sans/OpenSans-Regular.ttf') format('truetype');
+}
+
+@font-face {
+  font-family: 'Open Sans';
+  font-style: italic;
+  font-weight: normal;
+  src: local('Open Sans Italic'),
+       url('../fonts/open-sans/OpenSans-Italic.ttf') format('truetype');
+}
+
+@font-face {
+  font-family: 'Open Sans';
+  font-style: normal;
+  font-weight: 300;
+  src:  local('Open Sans Light'),
+        url('../fonts/open-sans/OpenSans-Light.ttf') format('truetype');
+}
+
+@font-face {
+  font-family: 'Open Sans';
+  font-style: italic;
+  font-weight: 300;
+  src: local('Open Sans Light Italic'),
+       url('../fonts/open-sans/OpenSans-LightItalic.ttf') format('truetype');
+}
+
+@font-face {
+  font-family: 'Open Sans';
+  font-style: normal;
+  font-weight: 600;
+  src: local('Open Sans Semibold'),
+       url('../fonts/open-sans/OpenSans-Semibold.ttf') format('truetype');
+}
+
+@font-face {
+  font-family: 'Open Sans';
+  font-style: italic;
+  font-weight: 600;
+  src: local('Open Sans Semibold Italic'),
+       url('../fonts/open-sans/OpenSans-SemiboldItalic.ttf') format('truetype');
+}
+
+@font-face {
+  font-family: 'Open Sans';
+  font-style: normal;
+  font-weight: 700;
+  src: local('Open Sans Bold'),
+       url('../fonts/open-sans/OpenSans-Bold.ttf') format('truetype');
+}
+
+@font-face {
+  font-family: 'Open Sans';
+  font-style: italic;
+  font-weight: 700;
+  src: local('Open Sans Bold Italic'),
+       url('../fonts/open-sans/OpenSans-BoldItalic.ttf') format('truetype');
+}
+
+@font-face {
+  font-family: 'Open Sans';
+  font-style: normal;
+  font-weight: 900;
+  src: local('Open Sans Extrabold'),
+       url('../fonts/open-sans/OpenSans-ExtraBold.ttf') format('truetype');
+}
+
+@font-face {
+  font-family: 'Open Sans';
+  font-style: italic;
+  font-weight: 900;
+  src: local('Open Sans Extrabold Italic'),
+       url('../fonts/open-sans/OpenSans-ExtraBoldItalic.ttf') format('truetype');
+}
\ No newline at end of file
diff --git a/less/ipsilon.less b/less/ipsilon.less
new file mode 100644 (file)
index 0000000..3f1263d
--- /dev/null
@@ -0,0 +1,55 @@
+//
+// Copyright (C) 2014  Petr Vobornik <pvoborni@redhat.com>
+//
+// see file 'COPYING' for use and warranty information
+//
+// 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 <http://www.gnu.org/licenses/>.
+
+// Styles are taken from PatternFly and Bootstrap project.
+
+// Bootstrap 3 Core variables and mixins
+@import "bootstrap/variables.less";
+@import "bootstrap/mixins.less";
+
+// Bootstrap 3 Reset
+@import "bootstrap/normalize.less";
+@import "bootstrap/print.less";
+
+// Bootstrap 3 Core CSS
+@import "bootstrap/scaffolding.less";
+@import "bootstrap/type.less";
+@import "bootstrap/code.less";
+@import "bootstrap/grid.less";
+@import "bootstrap/tables.less";
+@import "bootstrap/forms.less";
+@import "bootstrap/buttons.less";
+
+// Bootstrap 3 Components
+@import "bootstrap/alerts.less";
+
+// Bootstrap 3 Utilities
+@import "bootstrap/utilities.less";
+
+// PatternFly imports
+@import "patternfly/variables.less";
+@import "patternfly/forms.less";
+@import "patternfly/mixins.less";
+@import "patternfly/buttons.less";
+@import "patternfly/login.less";
+
+// Open Sans Fonts
+@import "font.less";
+
+// remove warnings
+@fa-var-angle-right: ">";