From 56b537271ef591446f952c834257ae8eaac7e255 Mon Sep 17 00:00:00 2001
From: Raghu Nayyar <hey@raghunayyar.com>
Date: Fri, 4 Sep 2015 00:25:30 +0530
Subject: [PATCH] Global Classes for Core.

Move up the global styles up the hierarchy.

Adds Clear Left, Right and both.

New CSS file for Global Styles.
---
 core/css/global.css      | 50 ++++++++++++++++++++++++++++++++++++++++
 core/css/styles.css      | 20 ----------------
 lib/private/template.php |  1 +
 3 files changed, 51 insertions(+), 20 deletions(-)
 create mode 100644 core/css/global.css

diff --git a/core/css/global.css b/core/css/global.css
new file mode 100644
index 0000000000..9511d4324f
--- /dev/null
+++ b/core/css/global.css
@@ -0,0 +1,50 @@
+/* Copyright (c) 2015, Raghu Nayyar, http://raghunayyar.com
+ This file is licensed under the Affero General Public License version 3 or later.
+ See the COPYING-README file. */
+
+/* Global Components */
+
+.pull-left {
+	float: left;
+}
+
+.pull-right {
+	float: right;
+}
+
+.clear-left {
+	clear: left;
+}
+
+.clear-right {
+	clear: right;
+}
+
+.clear-both {
+	clear: both;
+}
+
+.hidden {
+	display: none;
+}
+
+.hidden-visually {
+	position: absolute;
+	left:-10000px;
+	top: auto;
+	width: 1px;
+	height: 1px;
+	overflow: hidden;
+}
+
+.bold {
+	font-weight:600;
+}
+
+.center {
+	text-align:center;
+}
+
+.inlineblock {
+	display: inline-block;
+}
\ No newline at end of file
diff --git a/core/css/styles.css b/core/css/styles.css
index 1368d8bfa5..163750f46b 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -856,26 +856,6 @@ html.ie8 #body-login form input[type="checkbox"] {
 	height: 70px;
 }
 
-
-
-
-/* VARIOUS REUSABLE SELECTORS */
-.hidden {
-	display: none;
-}
-.hidden-visually {
-	position: absolute;
-	left:-10000px;
-	top: auto;
-	width: 1px;
-	height: 1px;
-	overflow: hidden;
-}
-
-.bold { font-weight:600; }
-.center { text-align:center; }
-.inlineblock { display: inline-block; }
-
 /* round profile photos */
 .avatar,
 .avatar img,
diff --git a/lib/private/template.php b/lib/private/template.php
index 5a08e15d95..38527cdc46 100644
--- a/lib/private/template.php
+++ b/lib/private/template.php
@@ -108,6 +108,7 @@ class OC_Template extends \OC\Template\Base {
 			OC_Util::addVendorStyle('jquery-ui/themes/base/jquery-ui',null,true);
 			OC_Util::addStyle("multiselect",null,true);
 			OC_Util::addStyle("fixes",null,true);
+			OC_Util::addStyle("global",null,true);
 			OC_Util::addStyle("apps",null,true);
 			OC_Util::addStyle("fonts",null,true);
 			OC_Util::addStyle("icons",null,true);
-- 
GitLab