From 2a81ce2acb9548220d02d47394158712d395ad34 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 25 Jan 2011 12:40:02 +0000 Subject: light clean-up of the css git-svn-id: http://code.elgg.org/elgg/trunk@7929 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/css/elements/chrome.php | 13 -------- views/default/css/elements/core.php | 53 ++++--------------------------- views/default/css/elements/icons.php | 42 ++++++++++++++++++++++++ views/default/css/elements/navigation.php | 9 ------ views/default/layout/objects/gallery.php | 2 ++ views/default/layout/objects/list.php | 4 --- 6 files changed, 50 insertions(+), 73 deletions(-) (limited to 'views') diff --git a/views/default/css/elements/chrome.php b/views/default/css/elements/chrome.php index ef66fe9c8..9031f4408 100644 --- a/views/default/css/elements/chrome.php +++ b/views/default/css/elements/chrome.php @@ -77,12 +77,6 @@ h2 { padding-bottom:5px; } - -.listing .icon { float: left; margin-right: 10px; } -.listing .icon img { width: auto } -.listing .info { display: table-cell; } - - .link { cursor:pointer; @@ -100,13 +94,6 @@ h2 { -moz-border-radius: 8px; } - -.margin-none { - margin:0; -} -.margin-top { - margin-top:10px; -} .elgg-tags { diff --git a/views/default/css/elements/core.php b/views/default/css/elements/core.php index 319fd4c5b..b86af351b 100644 --- a/views/default/css/elements/core.php +++ b/views/default/css/elements/core.php @@ -34,9 +34,6 @@ .elgg-list > li { border-bottom: 1px dotted #CCCCCC; } -.elgg-gallery, .elgg-gallery > li { - border: none; -} .elgg-list-metadata { float: right; margin-left: 15px; @@ -62,6 +59,12 @@ .elgg-list-content { margin: 10px 5px; } +/* *************************************** + Gallery +*************************************** */ +.elgg-gallery { + border: none; +} /* *************************************** Modules *************************************** */ @@ -257,47 +260,3 @@ a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover { .elgg-system-message p { margin:0; } - - -/* *************************************** - AVATAR ICONS -*************************************** */ -.elgg-user-icon { - position:relative; -} -.elgg-user-icon.tiny, -img.tiny { - width:25px; - height:25px; - /* remove the border-radius if you don't want rounded avatars in supported browsers */ - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - -moz-background-clip: border; - - -o-background-size: 25px; - -webkit-background-size: 25px; - -khtml-background-size: 25px; - -moz-background-size: 25px; -} -.elgg-user-icon.small, -img.small { - width:40px; - height:40px; - /* remove the border-radius if you don't want rounded avatars in supported browsers */ - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - -moz-background-clip: border; - - -o-background-size: 40px; - -webkit-background-size: 40px; - -khtml-background-size: 40px; - -moz-background-size: 40px; -} -img.large { - width:200px; - height:200px; -} -img.medium { - width:100px; - height:100px; -} \ No newline at end of file diff --git a/views/default/css/elements/icons.php b/views/default/css/elements/icons.php index b847bfadc..b8e6b20f0 100644 --- a/views/default/css/elements/icons.php +++ b/views/default/css/elements/icons.php @@ -77,3 +77,45 @@ background-position: left center; } +/* *************************************** + AVATAR ICONS +*************************************** */ +.elgg-user-icon { + position:relative; +} +.elgg-user-icon.tiny, +img.tiny { + width:25px; + height:25px; + /* remove the border-radius if you don't want rounded avatars in supported browsers */ + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + -moz-background-clip: border; + + -o-background-size: 25px; + -webkit-background-size: 25px; + -khtml-background-size: 25px; + -moz-background-size: 25px; +} +.elgg-user-icon.small, +img.small { + width:40px; + height:40px; + /* remove the border-radius if you don't want rounded avatars in supported browsers */ + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + -moz-background-clip: border; + + -o-background-size: 40px; + -webkit-background-size: 40px; + -khtml-background-size: 40px; + -moz-background-size: 40px; +} +img.large { + width:200px; + height:200px; +} +img.medium { + width:100px; + height:100px; +} \ No newline at end of file diff --git a/views/default/css/elements/navigation.php b/views/default/css/elements/navigation.php index a4688111d..dae6b58be 100644 --- a/views/default/css/elements/navigation.php +++ b/views/default/css/elements/navigation.php @@ -50,19 +50,10 @@ *************************************** */ .elgg-tabs { margin-bottom:5px; - padding: 0; border-bottom: 2px solid #cccccc; display:table; width:100%; } - - -.elgg-tabs ul { - list-style: none; - padding: 0; - margin: 0; -} - .elgg-tabs li { float: left; border: 2px solid #cccccc; diff --git a/views/default/layout/objects/gallery.php b/views/default/layout/objects/gallery.php index 29534a450..4135de9df 100644 --- a/views/default/layout/objects/gallery.php +++ b/views/default/layout/objects/gallery.php @@ -3,6 +3,8 @@ * Gallery view * * @uses $vars['items'] + * + * @todo not complete - number of columns */ $items = $vars['items']; diff --git a/views/default/layout/objects/list.php b/views/default/layout/objects/list.php index 0ab3d5482..6d12c5e55 100644 --- a/views/default/layout/objects/list.php +++ b/views/default/layout/objects/list.php @@ -31,10 +31,6 @@ if (isset($vars['list_class'])) { $list_class = "{$vars['list_class']} $list_class"; } -if (elgg_in_context('gallery')) { - $list_class = "$list_class elgg-gallery"; -} - $item_class = 'elgg-list-item'; if (isset($vars['item_class'])) { $item_class = "{$vars['item_class']} $item_class"; -- cgit v1.2.3