]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
moving more css into the skin view - including page layout information
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 14 Dec 2010 22:07:38 +0000 (22:07 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 14 Dec 2010 22:07:38 +0000 (22:07 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7621 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/css/elements/core.php
views/default/css/elements/layout.php [new file with mode: 0644]
views/default/css/elements/page_layout.php [deleted file]
views/default/css/elements/skin.php
views/default/css/elements/typography.php
views/default/css/screen.php

index 65c5f2a2e6ffc42abf21386140cb67decae868d9..f46ec11d9ef8fab0ef006799e0eaf8af38459322 100644 (file)
@@ -9,11 +9,6 @@
 /* ***************************************
        Core
 *************************************** */
-body {
-       font-size: 80%;
-       line-height: 1.4em;
-       font-family: "Lucida Grande",Arial,Tahoma,Verdana,sans-serif;
-}
 a:hover,
 a.selected {
        text-decoration: underline;
@@ -45,8 +40,6 @@ dd {
        margin: 0 0 1em 1em;
 }
 pre, code {
-       font-family:Monaco,"Courier New",Courier,monospace;
-       font-size:12px;
        background:#EBF5FF;
        color:#000000;
        overflow:auto;
@@ -69,7 +62,6 @@ pre {
 blockquote {
        padding:3px 15px;
        margin:0px 0 15px 0;
-       line-height:1.3em;
        background:#EBF5FF;
        border:none;
        -webkit-border-radius: 4px;
diff --git a/views/default/css/elements/layout.php b/views/default/css/elements/layout.php
new file mode 100644 (file)
index 0000000..945a4a9
--- /dev/null
@@ -0,0 +1,69 @@
+<?php
+/**
+ * Reusable layout objects and elements
+ *
+ * @package Elgg.Core
+ * @subpackage UI
+ */
+?>
+
+/**
+ * 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 <pre> 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 ";
+}
+
+.elgg_inner {
+}
+
+.elgg-footer {
+}
+
+.elgg-media {
+       padding: 3px 0;
+}
+
+.elgg-media .elgg-pict {
+       float: left;
+       margin-right: 5px;
+}
+.elgg-media .elgg-pict-alt {
+       float: right;
+       margin-left: 5px;
+}
+
+.elgg-list {
+    border-top: 1px dotted #CCCCCC;
+       margin: 5px 0;
+       clear: both;
+}
+
+.elgg-list li {
+       border-bottom: 1px dotted #CCCCCC;
+}
+
+.elgg-center {
+       margin: 0 auto;
+}
+
+.elgg-width-classic {
+       width: 990px;
+}
diff --git a/views/default/css/elements/page_layout.php b/views/default/css/elements/page_layout.php
deleted file mode 100644 (file)
index 24445ea..0000000
+++ /dev/null
@@ -1,222 +0,0 @@
-<?php
-/**
- * Page Layout
- *
- * @package Elgg.Core
- * @subpackage UI
- */
-?>
-/* ***************************************
-       Page Layout
-*************************************** */
-
-/* move elgg-body to one of the css components */
-/**
- * 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 <pre> 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 ";
-}
-
-
-
-.elgg-sidebar .elgg-module {
-       margin-top: 20px;
-}
-
-.elgg_inner {
-}
-
-.elgg-sidebar .elgg-module .elgg-head {
-       border-bottom: 1px solid #CCCCCC;
-       margin-bottom: 5px;
-       padding-bottom: 5px;
-}
-
-.elgg-footer {
-}
-
-.elgg-media {
-       padding: 3px 0;
-}
-
-.elgg-media .elgg-pict {
-       float: left;
-       margin-right: 5px;
-}
-.elgg-media .elgg-pict-alt {
-       float: right;
-       margin-left: 5px;
-}
-
-
-
-.elgg-list {
-    border-top: 1px dotted #CCCCCC;
-       margin: 5px 0;
-       clear: both;
-}
-
-.elgg-list li {
-       border-bottom: 1px dotted #CCCCCC;
-}
-
-
-.elgg-center {
-       margin: 0 auto;
-}
-
-.elgg-width-classic {
-       width: 990px;
-}
-
-/* ***************************************
-       ELGG TOPBAR
-*************************************** */
-.elgg-page-topbar {
-       background: #333333 url(<?php echo elgg_get_site_url(); ?>_graphics/toptoolbar_background.gif) repeat-x top left;
-       border-bottom: 1px solid #000000;
-       min-width: 998px;
-       position: relative;
-       height: 24px;
-       z-index: 9000;
-}
-.elgg-page-header .elgg-inner {
-       width: 990px;
-       margin: 0 auto;
-       height: 90px;
-       position: relative;
-}
-.elgg-page-topbar .elgg-inner {
-       padding: 2px 10px 2px 8px;
-}
-.elgg-page-topbar a {
-       color: #eeeeee;
-       float: left;
-       margin: 2px 30px 0 0;
-       line-height: 1.1em;
-}
-.elgg-page-topbar a.alt {
-       float: right;
-       margin: 2px 0 0 30px;
-}
-.elgg-page-topbar a:hover {
-       color: #71cbff;
-       text-decoration: none;
-}
-/* elgg logo and user avatar need to be adjusted slightly */
-.elgg-page-topbar img {
-       margin-top: -1px;
-}
-
-/* ***************************************
-       HEADER
-*************************************** */
-.elgg-page-header {
-       x-overflow: hidden;
-       position: relative;
-       background-color: #4690D6;
-       background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/header_shadow.png);
-       background-repeat: repeat-x;
-       background-position: bottom left;
-}
-.elgg-page-header h1 a {
-       font-size: 2em;
-       line-height: 1.4em;
-       color: white;
-       font-style: italic;
-       font-family: Georgia, times, serif;
-       text-shadow: 1px 2px 4px #333333;
-       text-decoration: none;
-}
-/* ***************************************
-       BODY
-*************************************** */
-
-.elgg-layout-one_column {
-       padding: 10px 0;
-}
-.elgg-layout-sidebar {
-       background-image:url(<?php echo elgg_get_site_url(); ?>_graphics/sidebar_background.gif);
-       background-repeat:repeat-y;
-       background-position: right top;
-}
-.elgg-layout-two-sidebar {
-       background-image:url(<?php echo elgg_get_site_url(); ?>_graphics/two_sidebar_background.gif);
-       background-repeat:repeat-y;
-       background-position: right top;
-}
-.elgg-main {
-       position: relative;
-       min-height: 360px;
-       padding: 10px;
-}
-.elgg-aside {
-       padding: 20px 10px;
-       position: relative;
-       min-height: 360px;
-}
-.elgg-sidebar {
-       float: right;
-       width: 210px;
-       margin-left: 10px;
-}
-.elgg-sidebar-alt {
-       float: left;
-       width: 160px;
-       margin-right: 10px;
-}
-
-.elgg-main-header {
-    border-bottom: 1px solid #CCCCCC;
-    padding-bottom: 3px;
-}
-
-.elgg-main-heading {
-       float: left;
-       max-width: 530px;
-       margin-right: 10px;
-}
-
-/* ***************************************
-       FOOTER
-*************************************** */
-.elgg-page-footer {
-       position: relative;
-       z-index: 999;
-}
-.elgg-page-footer .elgg-inner {
-       width: 990px;
-       margin: 0 auto;
-       padding: 5px 0;
-       border-top: 1px solid #DEDEDE;
-}
-
-.elgg-page-footer .elgg-inner,
-.elgg-page-footer .elgg-inner a,
-.elgg-page-footer .elgg-inner p {
-       color:#999999;
-}
-.elgg-page-footer .elgg-inner a:hover {
-       color:#666666;
-}
-.elgg-page-footer .elgg-inner p {
-       margin:0;
-}
index a8f8db7ba6b03c619f7943d1a06ecf50952d924d..a37b5a5842c6aadcc0dafd9593e46c0594adbdcf 100644 (file)
@@ -2,6 +2,10 @@
 /**
  * Skin of the theme
  *
+ * - theme chrome
+ * - page layout
+ * - icons
+ *
  * @package Elgg.Core
  * @subpackage UI
  */
@@ -20,9 +24,153 @@ a:hover,
 a.selected {
        color: #555555;
 }
+
+/* ***************************************
+       PAGE LAYOUT
+*************************************** */
+
+/***** TOPBAR ******/
+
+.elgg-page-topbar {
+       background: #333333 url(<?php echo elgg_get_site_url(); ?>_graphics/toptoolbar_background.gif) repeat-x top left;
+       border-bottom: 1px solid #000000;
+       min-width: 998px;
+       position: relative;
+       height: 24px;
+       z-index: 9000;
+}
+.elgg-page-header .elgg-inner {
+       width: 990px;
+       margin: 0 auto;
+       height: 90px;
+       position: relative;
+}
+.elgg-page-topbar .elgg-inner {
+       padding: 2px 10px 2px 8px;
+}
+.elgg-page-topbar a {
+       color: #eeeeee;
+       float: left;
+       margin: 2px 30px 0 0;
+       line-height: 1.1em;
+}
+.elgg-page-topbar a.alt {
+       float: right;
+       margin: 2px 0 0 30px;
+}
+.elgg-page-topbar a:hover {
+       color: #71cbff;
+       text-decoration: none;
+}
+/* elgg logo and user avatar need to be adjusted slightly */
+.elgg-page-topbar img {
+       margin-top: -1px;
+}
+
+/***** PAGE HEADER ******/
+
+.elgg-page-header {
+       x-overflow: hidden;
+       position: relative;
+       background-color: #4690D6;
+       background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/header_shadow.png);
+       background-repeat: repeat-x;
+       background-position: bottom left;
+}
+.elgg-page-header h1 a {
+       font-size: 2em;
+       line-height: 1.4em;
+       color: white;
+       font-style: italic;
+       font-family: Georgia, times, serif;
+       text-shadow: 1px 2px 4px #333333;
+       text-decoration: none;
+}
+
+/***** PAGE BODY ******/
+
+.elgg-layout-one_column {
+       padding: 10px 0;
+}
+.elgg-layout-sidebar {
+       background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/sidebar_background.gif);
+       background-repeat: repeat-y;
+       background-position: right top;
+}
+.elgg-layout-two-sidebar {
+       background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/two_sidebar_background.gif);
+       background-repeat: repeat-y;
+       background-position: right top;
+}
+.elgg-main {
+       position: relative;
+       min-height: 360px;
+       padding: 10px;
+}
+.elgg-aside {
+       padding: 20px 10px;
+       position: relative;
+       min-height: 360px;
+}
+.elgg-sidebar {
+       float: right;
+       width: 210px;
+       margin-left: 10px;
+}
+.elgg-sidebar-alt {
+       float: left;
+       width: 160px;
+       margin-right: 10px;
+}
+.elgg-main-header {
+    border-bottom: 1px solid #CCCCCC;
+    padding-bottom: 3px;
+}
+.elgg-main-heading {
+       float: left;
+       max-width: 530px;
+       margin-right: 10px;
+}
+
+/***** PAGE SIDEBAR ******/
+
+.elgg-sidebar .elgg-module {
+       margin-top: 20px;
+}
+.elgg-sidebar .elgg-module .elgg-head {
+       border-bottom: 1px solid #CCCCCC;
+       margin-bottom: 5px;
+       padding-bottom: 5px;
+}
+
+/***** PAGE FOOTER ******/
+
+.elgg-page-footer {
+       position: relative;
+       z-index: 999;
+}
+.elgg-page-footer .elgg-inner {
+       width: 990px;
+       margin: 0 auto;
+       padding: 5px 0;
+       border-top: 1px solid #DEDEDE;
+}
+.elgg-page-footer .elgg-inner,
+.elgg-page-footer .elgg-inner a,
+.elgg-page-footer .elgg-inner p {
+       color: #999999;
+}
+.elgg-page-footer .elgg-inner a:hover {
+       color: #666666;
+}
+.elgg-page-footer .elgg-inner p {
+       margin: 0;
+}
+
 /* ***************************************
        ICONS
 *************************************** */
+
 .elgg-icon {
        background: transparent url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat left;
        width: 16px;
index 869b74bf84ddc56098d1846285b5cdd65a59e4f5..ac98c87f1508ec4c9e6f17c9b36a74e9f55371ef 100644 (file)
@@ -9,3 +9,15 @@
 /* ***************************************
        Typography
 *************************************** */
+body {
+       font-size: 80%;
+       line-height: 1.4em;
+       font-family: "Lucida Grande",Arial,Tahoma,Verdana,sans-serif;
+}
+pre, code {
+       font-family:Monaco,"Courier New",Courier,monospace;
+       font-size:12px;
+}
+blockquote {
+       line-height:1.3em;
+}
\ No newline at end of file
index 114213a0be1c77c8692aca530ab982ec3b3bd4c7..f74823373cd21a06d2c446bcbb24d3ac69c1fc41 100644 (file)
@@ -17,7 +17,7 @@ if ($old_css_view != "{$CONFIG->viewpath}") {
 echo elgg_view('css/elements/reset', $vars);
 echo elgg_view('css/elements/core', $vars);
 echo elgg_view('css/elements/typography', $vars);
-echo elgg_view('css/elements/page_layout', $vars);
+echo elgg_view('css/elements/layout', $vars);
 echo elgg_view('css/elements/spacing', $vars);
 echo elgg_view('css/elements/navigation', $vars);
 echo elgg_view('css/elements/grid', $vars);