From: cash Date: Sat, 5 Feb 2011 13:57:00 +0000 (+0000) Subject: getting back to the css - making changes based on Evan's comments X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ea3951a035e38e96435db20f820c9da566ed373b;p=lorea%2Felgg.git getting back to the css - making changes based on Evan's comments git-svn-id: http://code.elgg.org/elgg/trunk@8026 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/mod/blog/views/default/forms/blog/save.php b/mod/blog/views/default/forms/blog/save.php index 14e95ac48..da72686e1 100644 --- a/mod/blog/views/default/forms/blog/save.php +++ b/mod/blog/views/default/forms/blog/save.php @@ -106,7 +106,7 @@ echo <<<___HTML $draft_warning -

+

$title_input

diff --git a/views/default/css/elements/base.php b/views/default/css/elements/base.php deleted file mode 100644 index 5ba21909a..000000000 --- a/views/default/css/elements/base.php +++ /dev/null @@ -1,53 +0,0 @@ - - - -.clearfloat { clear:both; } - -/* Clearfix! */ -.clearfix:after { - content:"."; - display:block; - height:0; - clear:both; - visibility:hidden; -} -.hidden { - display:none; -} -.centered { - margin:0 auto; -} -.center { - text-align: center; -} - - -/** - * elgg-body fills the space available to it. - * It uses hidden text to expand itself. The combination of auto width, overflow - * hidden, and the hidden text creates this effect. - * - * This allows us to float fixed width divs to either side of an .elgg-body div - * without having to specify the body div's width. - * - * @todo check what happens with long
 tags or large images
- */
-.elgg-body {
-	width: auto;
-	word-wrap: break-word;
-	overflow: hidden;
-}
-.elgg-body:after {
-	display: block;
-	visibility: hidden;
-	height: 0 !important;
-	line-height: 0;
-	font-size: xx-large;
-	content: " x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ";
-}
\ No newline at end of file
diff --git a/views/default/css/elements/chrome.php b/views/default/css/elements/chrome.php
index 9031f4408..6ff7279ee 100644
--- a/views/default/css/elements/chrome.php
+++ b/views/default/css/elements/chrome.php
@@ -81,9 +81,6 @@ h2 {
 .link {
 	cursor:pointer;
 }
-.small {
-	font-size: 90%;
-}
 .divider {
 	border-top:1px solid #cccccc;
 }
@@ -95,35 +92,10 @@ h2 {
 }
 
 
-
-.elgg-tags {
-	background-image:url(_graphics/elgg_sprites.png);
-	background-repeat: no-repeat;
-	background-position: left -196px;
-	padding:1px 0 0 14px;
-	font-size: 85%;
-}
-.elgg-tags li {
-	display: inline;
-	margin-right: 5px;
-}
-.elgg-tags li:after {
-	content: ",";
-}
-.elgg-tags li:last-child:after {
-	content: "";
-}
-.elgg-tagcloud {
-	text-align:justify;
-}
-.elgg-discover .elgg-discoverable {
-	display: none;
-}
-.elgg-discover:hover .elgg-discoverable {
-	display: block;
-}
+
+?>
 
 .elgg_hrt {
 	border-top: 1px solid #CCCCCC;
diff --git a/views/default/css/elements/forms.php b/views/default/css/elements/forms.php
index d15fcb760..bd233bf3b 100644
--- a/views/default/css/elements/forms.php
+++ b/views/default/css/elements/forms.php
@@ -38,11 +38,6 @@ input[type="text"]:focus, input[type="password"]:focus {
 	color:#333333;
 }
 
-
-textarea.monospace {
-	font-family: Monaco,"Courier New",Courier,monospace;
-	font-size: 13px;
-}
 a.elgg-longtext-control {
 	float: right;
 	margin-left: 14px;
@@ -164,6 +159,7 @@ a.elgg-action-button {
 	border:1px solid #999999;
 	color:#333333;
 	padding:2px 15px 2px 15px;
+	margin: 5px 0;
 	text-align:center;
 	font-weight:bold;
 	text-decoration:none;
diff --git a/views/default/css/elements/helpers.php b/views/default/css/elements/helpers.php
new file mode 100644
index 000000000..0818fba6e
--- /dev/null
+++ b/views/default/css/elements/helpers.php
@@ -0,0 +1,134 @@
+
+
+.clearfloat { 
+	clear: both;
+}
+
+.clearfix:after {
+	content: ".";
+	display: block;
+	height: 0;
+	clear: both;
+	visibility: hidden;
+}
+
+.hidden {
+	display: none;
+}
+
+.centered {
+	margin: 0 auto;
+}
+
+.center {
+	text-align: center;
+}
+
+.right {
+	float: right;
+}
+
+.left {
+	float: left;
+}
+
+.large {
+	font-size: 120%;
+}
+
+.small {
+	font-size: 80%;
+}
+
+.elgg-discover .elgg-discoverable {
+	display: none;
+}
+
+.elgg-discover:hover .elgg-discoverable {
+	display: block;
+}
+
+/* ***************************************
+	Spacing (from OOCSS)
+*************************************** */
+
+ * : m = margin, p = padding
+ * : a = all, t = top, r = right, b = bottom, l = left, h = horizontal, v = vertical
+ * : n = none, s = small, m = medium, l = large
+ */
+
+$none = '0';
+$small = '5px';
+$medium = '10px';
+$large = '20px';
+
+echo <<
diff --git a/views/default/css/elements/core.php b/views/default/css/elements/layout_objects.php
similarity index 57%
rename from views/default/css/elements/core.php
rename to views/default/css/elements/layout_objects.php
index 3c7ffa4f9..87608e205 100644
--- a/views/default/css/elements/core.php
+++ b/views/default/css/elements/layout_objects.php
@@ -7,6 +7,29 @@
  */
 ?>
 
+/**
+ * elgg-body fills the space available to it.
+ * It uses hidden text to expand itself. The combination of auto width, overflow
+ * hidden, and the hidden text creates this effect.
+ *
+ * This allows us to float fixed width divs to either side of an .elgg-body div
+ * without having to specify the body div's width.
+ *
+ * @todo check what happens with long 
 tags or large images
+ */
+.elgg-body {
+	width: auto;
+	word-wrap: break-word;
+	overflow: hidden;
+}
+.elgg-body:after {
+	display: block;
+	visibility: hidden;
+	height: 0 !important;
+	line-height: 0;
+	font-size: xx-large;
+	content: " x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ";
+}
 /* ***************************************
 	Image Block
 *************************************** */
@@ -67,6 +90,26 @@
 .elgg-gallery {
 	border: none;
 }
+/* ***************************************
+	Tables
+*************************************** */
+
+table.styled {
+	width:100%;
+}
+table.styled {
+	border-top:1px solid #cccccc;
+}
+table.styled td {
+	padding:2px 4px 2px 4px;
+	border-bottom:1px solid #cccccc;
+}
+table.styled td.column-one {
+	width:200px;
+}
+table.styled tr:hover {
+	background: #E4E4E4;
+}
 /* ***************************************
 	Modules
 *************************************** */
@@ -262,3 +305,142 @@ a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
 .elgg-system-message p {
 	margin:0;
 }
+/* ***************************************
+	RIVER
+*************************************** */
+.elgg-river {
+	border-top: 1px solid #CCCCCC;
+}
+.elgg-river > li {
+	border-bottom: 1px solid #CCCCCC;
+}
+.elgg-river-item {
+	padding: 7px 0;
+}
+.elgg-river-item .elgg-pict {
+	margin-right: 20px;
+}
+.elgg-river-timestamp {
+	color: #666666;
+	font-size: 85%;
+	font-style: italic;
+	line-height: 1.2em;
+}
+.elgg-river-content {
+	border-left: 1px solid #CCCCCC;
+	font-size: 85%;
+	line-height: 1.5em;
+	margin: 8px 0 5px 0;
+	padding-left: 5px;
+}
+
+
+.elgg-river-content .elgg-user-icon {
+	float: left;
+}
+.elgg-river-layout .elgg-input-dropdown {
+	float: right;
+	margin: 10px 0;
+}
+
+
+.elgg-river-comments-tab {
+	display: block;
+	background-color: #EEEEEE;
+	color: #4690D6;
+	margin-top: 5px;
+	width: auto;
+	float: right;
+	font-size: 85%;
+	padding: 1px 7px;
+	-moz-border-radius-topleft: 5px;
+	-moz-border-radius-topright: 5px;
+	-webkit-border-top-left-radius: 5px;
+	-webkit-border-top-right-radius: 5px;
+}
+
+
+.elgg-river-comments {
+	margin: 0;
+	border-top: none;
+}
+.elgg-river-comments li:first-child {
+	-moz-border-radius-topleft: 5px;
+	-webkit-border-top-left-radius: 5px;
+}
+.elgg-river-comments li:last-child {
+	-moz-border-radius-bottomleft: 5px;
+	-moz-border-radius-bottomright: 5px;
+	-webkit-border-bottom-right-radius: 5px;
+	-webkit-border-bottom-left-radius: 5px;
+}
+.elgg-river-comments li {
+	background-color: #EEEEEE;
+	border-bottom: none;
+	padding: 4px;
+	margin-bottom: 2px;
+}
+.elgg-river-comments .elgg-media {
+	padding: 0;
+}
+.elgg-river-more {
+	background-color: #EEEEEE;
+	-moz-border-radius: 5px;
+	-webkit-border-radius: 5px;
+	padding: 2px 4px;
+	font-size: 85%;
+	margin-bottom: 2px;
+}
+
+
+.elgg-river-item form {
+	background-color: #EEEEEE;
+	padding: 4px 4px;
+	-moz-border-radius: 5px;
+	-webkit-border-radius: 5px;
+	display: none;
+	height: 30px;
+}
+.elgg-river-item input[type=text] {
+	width: 80%;
+}
+.elgg-river-item input[type=submit] {
+	margin: 0 0 0 10px;
+}
+.elgg-river-item > .elgg-alt a {
+	font-size: 90%;
+	float: right;
+	clear: both;
+}
+
+/* ***************************************
+	LIKES
+*************************************** */
+.elgg-likes-list {
+	width: 345px;
+	position: absolute;
+}
+
+/* ***************************************
+	TAGS
+*************************************** */
+.elgg-tags {
+	background-image:url(_graphics/elgg_sprites.png);
+	background-repeat: no-repeat;
+	background-position: left -196px;
+	padding:1px 0 0 14px;
+	font-size: 85%;
+}
+.elgg-tags li {
+	display: inline;
+	margin-right: 5px;
+}
+.elgg-tags li:after {
+	content: ",";
+}
+.elgg-tags li:last-child:after {
+	content: "";
+}
+.elgg-tagcloud {
+	text-align: justify;
+}
\ No newline at end of file
diff --git a/views/default/css/elements/misc.php b/views/default/css/elements/misc.php
index 297becefe..92107db8c 100644
--- a/views/default/css/elements/misc.php
+++ b/views/default/css/elements/misc.php
@@ -4,127 +4,9 @@
  */
 
 ?>
-/* ***************************************
-	PRIMITIVES
-*************************************** */
-.right {float:right}
-.left {float:left}
 
-/* ***************************************
-	LIKES
-*************************************** */
-.elgg-likes-list {
-	width: 345px;
-	position: absolute;
-}
 
-/* ***************************************
-	RIVER
-*************************************** */
-.elgg-river {
-	border-top: 1px solid #CCCCCC;
-}
-.elgg-river > li {
-	border-bottom: 1px solid #CCCCCC;
-}
-.elgg-river-item {
-	padding: 7px 0;
-}
-.elgg-river-item .elgg-pict {
-	margin-right: 20px;
-}
-.elgg-river-timestamp {
-	color: #666666;
-	font-size: 85%;
-	font-style: italic;
-	line-height: 1.2em;
-}
-.elgg-river-content {
-	border-left: 1px solid #CCCCCC;
-	font-size: 85%;
-	line-height: 1.5em;
-	margin: 8px 0 5px 0;
-	padding-left: 5px;
-}
-
-
-.elgg-river-content .elgg-user-icon {
-	float: left;
-}
-.elgg-river-layout .elgg-input-dropdown {
-	float: right;
-	margin: 10px 0;
-}
 
-
-.elgg-river-comments-tab {
-	display: block;
-	background-color: #EEEEEE;
-	color: #4690D6;
-	margin-top: 5px;
-	width: auto;
-	float: right;
-	font-size: 85%;
-	padding: 1px 7px;
-	-moz-border-radius-topleft: 5px;
-	-moz-border-radius-topright: 5px;
-	-webkit-border-top-left-radius: 5px;
-	-webkit-border-top-right-radius: 5px;
-}
-
-
-.elgg-river-comments {
-	margin: 0;
-	border-top: none;
-}
-.elgg-river-comments li:first-child {
-	-moz-border-radius-topleft: 5px;
-	-webkit-border-top-left-radius: 5px;
-}
-.elgg-river-comments li:last-child {
-	-moz-border-radius-bottomleft: 5px;
-	-moz-border-radius-bottomright: 5px;
-	-webkit-border-bottom-right-radius: 5px;
-	-webkit-border-bottom-left-radius: 5px;
-}
-.elgg-river-comments li {
-	background-color: #EEEEEE;
-	border-bottom: none;
-	padding: 4px;
-	margin-bottom: 2px;
-}
-.elgg-river-comments .elgg-media {
-	padding: 0;
-}
-.elgg-river-more {
-	background-color: #EEEEEE;
-	-moz-border-radius: 5px;
-	-webkit-border-radius: 5px;
-	padding: 2px 4px;
-	font-size: 85%;
-	margin-bottom: 2px;
-}
-
-
-.elgg-river-item form {
-	background-color: #EEEEEE;
-	padding: 4px 4px;
-	-moz-border-radius: 5px;
-	-webkit-border-radius: 5px;
-	display: none;
-	height: 30px;
-}
-.elgg-river-item input[type=text] {
-	width: 80%;
-}
-.elgg-river-item input[type=submit] {
-	margin: 0 0 0 10px;
-}
-.elgg-river-item > .elgg-alt a {
-	font-size: 90%;
-	float: right;
-	clear: both;
-}
 
 
 /* ***************************************
@@ -256,27 +138,6 @@
 }
 
 
-/* ***************************************
-	USER SETTINGS
-*************************************** */
-
-table.styled {
-	width:100%;
-}
-table.styled {
-	border-top:1px solid #cccccc;
-}
-table.styled td {
-	padding:2px 4px 2px 4px;
-	border-bottom:1px solid #cccccc;
-}
-table.styled td.column-one {
-	width:200px;
-}
-table.styled tr:hover {
-	background: #E4E4E4;
-}
-
 
 /* ***************************************
 	FRIENDS PICKER
diff --git a/views/default/css/elements/layout.php b/views/default/css/elements/page_layout.php
similarity index 93%
rename from views/default/css/elements/layout.php
rename to views/default/css/elements/page_layout.php
index 6b4a98ae9..ebb201225 100644
--- a/views/default/css/elements/layout.php
+++ b/views/default/css/elements/page_layout.php
@@ -48,11 +48,11 @@ body {
 
 /***** PAGE MESSAGES ******/
 .elgg-system-messages {
-	position:fixed;
-	top:24px;
-	right:20px;
-	max-width:500px;
-	z-index:9600;
+	position: fixed;
+	top: 24px;
+	right: 20px;
+	max-width: 500px;
+	z-index: 1000;
 }
 
 /***** PAGE HEADER ******/
@@ -74,8 +74,7 @@ body {
 	position: relative;
 }
 
-
-.elgg-page-header h1 a {
+.elgg-site-title, .elgg-site-title:hover {
 	font-size: 2em;
 	line-height: 1.4em;
 	color: white;
@@ -94,8 +93,6 @@ body {
 	width: 990px;
 	margin: 0 auto;
 }
-
-
 #elgg-layout-one-column {
 	padding: 10px 0;
 }
@@ -114,7 +111,6 @@ body {
 	min-height: 360px;
 	padding: 10px;
 }
-
 .elgg-aside {
 	padding: 20px 10px;
 	position: relative;
@@ -132,8 +128,9 @@ body {
 }
 
 .elgg-main .elgg-header {
-	border-bottom: 1px solid #CCCCCC;
 	padding-bottom: 3px;
+	border-bottom: 1px solid #CCCCCC;
+	margin-bottom: 10px;
 }
 
 
diff --git a/views/default/css/elements/spacing.php b/views/default/css/elements/spacing.php
deleted file mode 100644
index 8cab342be..000000000
--- a/views/default/css/elements/spacing.php
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-/* ***************************************
-	Spacing (from OOCSS)
-*************************************** */
-/**
-* Spacing classes
-* Should be used to modify the default spacing between objects (not between nodes of the same object)
-* Please use judiciously. You want to be using defaults most of the time, these are exceptions!
-* 
-*/
-.pan{padding:0}
-.pas{padding:5px}
-.pam{padding:10px}
-.pal{padding:20px}
-.ptn{padding-top:0}
-.pts{padding-top:5px}
-.ptm{padding-top:10px}
-.ptl{padding-top:20px}
-.prn{padding-right:0}
-.prs{padding-right:5px}
-.prm{padding-right:10px}
-.prl{padding-right:20px}
-.pbn{padding-bottom:0}
-.pbs{padding-bottom:5px}
-.pbm{padding-bottom:10px}
-.pbl{padding-bottom:20px}
-.pln{padding-left:0}
-.pls{padding-left:5px}
-.plm{padding-left:10px}
-.pll{padding-left:20px}
-.phn{padding-left:0;padding-right:0}
-.phs{padding-left:5px;padding-right:5px}
-.phm{padding-left:10px;padding-right:10px}
-.phl{padding-left:20px;padding-right:20px}
-.pvn{padding-top:0;padding-bottom:0}
-.pvs{padding-top:5px;padding-bottom:5px}
-.pvm{padding-top:10px;padding-bottom:10px}
-.pvl{padding-top:20px;padding-bottom:20px}
-.man{margin:0}
-.mas{margin:5px}
-.mam{margin:10px}
-.mal{margin:20px}
-.mtn{margin-top:0}
-.mts{margin-top:5px}
-.mtm{margin-top:10px}
-.mtl{margin-top:20px}
-.mrn{margin-right:0}
-.mrs{margin-right:5px}
-.mrm{margin-right:10px}
-.mrl{margin-right:20px}
-.mbn{margin-bottom:0}
-.mbs{margin-bottom:5px}
-.mbm{margin-bottom:10px}
-.mbl{margin-bottom:20px}
-.mln{margin-left:0}
-.mls{margin-left:5px}
-.mlm{margin-left:10px}
-.mll{margin-left:20px}
-.mhn{margin-left:0;margin-right:0}
-.mhs{margin-left:5px;margin-right:5px}
-.mhm{margin-left:10px;margin-right:10px}
-.mhl{margin-left:20px;margin-right:20px}
-.mvn{margin-top:0;margin-bottom:0}
-.mvs{margin-top:5px;margin-bottom:5px}
-.mvm{margin-top:10px;margin-bottom:10px}
-.mvl{margin-top:20px;margin-bottom:20px}
diff --git a/views/default/css/elements/typography.php b/views/default/css/elements/typography.php
index a550058e8..70be91da4 100644
--- a/views/default/css/elements/typography.php
+++ b/views/default/css/elements/typography.php
@@ -15,14 +15,14 @@ body {
 	font-family: "Lucida Grande",Arial,Tahoma,Verdana,sans-serif;
 }
 pre, code {
-	font-family:Monaco,"Courier New",Courier,monospace;
-	font-size:12px;
+	font-family: Monaco,"Courier New",Courier,monospace;
+	font-size: 12px;
 }
-blockquote {
-	line-height:1.3em;
+input, textarea {
+	font: 120% Arial, Helvetica, sans-serif;
 }
-small {
-	font-size: 90%;
+blockquote {
+	line-height: 1.3em;
 }
 h1, h2, h3, h4, h5, h6 {
 	font-weight: bold;
@@ -35,4 +35,9 @@ h4 { font-size: 1.0em; }
 h5 { font-size: 0.9em; }
 h6 { font-size: 0.8em; }
 
+.elgg-monospace {
+	font-family: Monaco,"Courier New",Courier,monospace;
+}
+
+
 
\ No newline at end of file
diff --git a/views/default/css/screen.php b/views/default/css/screen.php
index 93c08c83d..cab694385 100644
--- a/views/default/css/screen.php
+++ b/views/default/css/screen.php
@@ -18,37 +18,35 @@ if ($old_css_view != "{$CONFIG->viewpath}") {
 
  Base CSS
  * CSS reset
- * spacing
+ * helpers
  * grid
- * base
 
 *******************************************************************************/
 echo elgg_view('css/elements/reset', $vars);
-echo elgg_view('css/elements/spacing', $vars);
+echo elgg_view('css/elements/helpers', $vars);
 echo elgg_view('css/elements/grid', $vars);
-echo elgg_view('css/elements/base', $vars);
 
 
 /*******************************************************************************
  
  Skin CSS
- * typography - fonts, line spacing
- * chrome - general skin
- * forms - form elements, buttons
- * navigation - menus, breadcrumbs, pagination
- * core - modules, lists, content blocks, notifications, avatars, widgets
- * icons - icons, sprites, graphics
- * layout - page layout
- * misc - river, login, settings, profile
+ * typography     - fonts, line spacing
+ * chrome         - general skin
+ * forms          - form elements, buttons
+ * navigation     - menus, breadcrumbs, pagination
+ * icons          - icons, sprites, graphics
+ * layout_objects - modules, lists, content blocks, notifications, avatars, widgets
+ * page_layout    - page layout
+ * misc           - to be removed/redone
  
 *******************************************************************************/
 echo elgg_view('css/elements/typography', $vars);
 echo elgg_view('css/elements/chrome', $vars);
 echo elgg_view('css/elements/forms', $vars);
-echo elgg_view('css/elements/navigation', $vars);
-echo elgg_view('css/elements/core', $vars);
 echo elgg_view('css/elements/icons', $vars);
-echo elgg_view('css/elements/layout', $vars);
+echo elgg_view('css/elements/navigation', $vars);
+echo elgg_view('css/elements/layout_objects', $vars);
+echo elgg_view('css/elements/page_layout', $vars);
 echo elgg_view('css/elements/misc', $vars);
 
 
diff --git a/views/default/page/elements/header_logo.php b/views/default/page/elements/header_logo.php
index 45bb9cc16..041c0dd00 100644
--- a/views/default/page/elements/header_logo.php
+++ b/views/default/page/elements/header_logo.php
@@ -9,5 +9,5 @@ $site_name = $site->name;
 ?>
 
 

- +