From 9fa58872147b1b99a1db74c3009d2ac95690cb0a Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Wed, 22 Sep 2010 06:20:06 +0000 Subject: [PATCH] theme-anomaly MDL-21918 Tidy up of whitespace and CSS files in anomaly theme --- theme/anomaly/config.php | 2 +- theme/anomaly/style/base.css | 35 ++++----------------------------- theme/anomaly/style/general.css | 20 +++++++++---------- theme/anomaly/style/layout.css | 3 --- 4 files changed, 15 insertions(+), 45 deletions(-) delete mode 100644 theme/anomaly/style/layout.css diff --git a/theme/anomaly/config.php b/theme/anomaly/config.php index 822ed52426f..2ca5b11965d 100644 --- a/theme/anomaly/config.php +++ b/theme/anomaly/config.php @@ -7,7 +7,7 @@ $THEME->name = 'anomaly'; -$THEME->sheets = array('base', 'general', 'layout', 'browser'); +$THEME->sheets = array('base', 'general', 'browser'); /// This variable is an array containing the names of all the /// stylesheet files you want included in this theme, and in what order //////////////////////////////////////////////////////////////////////////////// diff --git a/theme/anomaly/style/base.css b/theme/anomaly/style/base.css index e2a6683a358..8ba85fe6e10 100644 --- a/theme/anomaly/style/base.css +++ b/theme/anomaly/style/base.css @@ -1,72 +1,45 @@ +body, body.has_dock {margin:25px 3%;} body, div, p, li, input, option, textarea {font-size: 10pt; line-height: 1.5em;} - body, div, p, li, input, option, textarea, h1, h2, h3, h4, h5 {font-family: Georgia,Times,"Times New Roman",serif;} - h1.main, h2.main, h3.main, h4.main, h5.main, h6.main {text-align: center;} - .generalbox {padding: 10px; margin-bottom: 15px;} - .generaltable, .userinfobox {margin-left: auto; margin-right: auto;} - #notice.generalbox {margin-left: auto; margin-right: auto; width: 60%;} - .notifyproblem {padding: 10px; color: #660000; text-align: center;} - .notifysuccess {padding: 10px; color: #006600; text-align: center;} - .paging {text-align: center;} /** * Tabs */ - .tabtree {position: relative; margin-bottom: 3.5em;} - .tabtree .tabrow0 {text-align: center; width: 100%; margin: 1em 0px;} - .tabtree .tabrow0 li {display: inline; margin-right: -4px;} - .tabtree .tabrow0 li.here a {position: relative; z-index: 102;} - .tabtree .tabrow0 li a {background-image: url([[pix:theme|tab/left]]); padding-left: 14px; padding-top: 10px; background-repeat: no-repeat; padding-bottom: 3px; margin-bottom: -1px;} - .tabtree .tabrow0 li a:hover {background-image: url([[pix:theme|tab/left_hover]]);} - .tabtree .tabrow0 li a span {background-image: url([[pix:theme|tab/right]]); background-repeat: no-repeat; background-position: 100% 0%; padding-right: 14px; padding-top: 10px; padding-bottom: 3px;} - .tabtree .tabrow0 li a:hover span {background-image: url([[pix:theme|tab/right_hover]]);} - .tabtree .tabrow0 ul, .tabtree .tabrow0 div {background-image: url([[pix:theme|tab/tabrow1]]); background-position: 0% 50%; position: absolute; width: 100%; border-top: 1px solid #aaa; padding: 0.25em 0px; top: 100%; margin: 0px;} - .tabtree .tabrow0 .empty {height: 1px; overflow: hidden; padding: 0px; position: absolute;} - .tabtree .tabrow1 li a, .tabtree .tabrow1 li a:hover, .tabtree .tabrow1 li a span, .tabtree .tabrow1 li a:hover span {background-image: none !important;} .groupmanagementtable {width: 90%;} - .groupmanagementtable td {vertical-align: top; border-width: 0px;} - .groupmanagementtable td p {margin: 0px;} -/* Themes -----------------------------*/ - +/** + * Themes + */ #page-admin-theme-index .generalbox {border: none;background: none;} - .theme_screenshot {float: left; width: 300px;} - .theme_screenshot img {width: 275px;} - .theme_screenshot h2 {font-size: 2em; margin-top: 0;} - .theme_screenshot h3 {font-size: 0.9em; margin: 1em 0 0;} - .theme_screenshot p {font-size: 0.9em; margin: 0 0 1em;} - .theme_description {margin-left: 300px;} - .theme_description h2 {padding-top: 0.5em;} \ No newline at end of file diff --git a/theme/anomaly/style/general.css b/theme/anomaly/style/general.css index b7e3c8a6944..4a7a2a36fb4 100644 --- a/theme/anomaly/style/general.css +++ b/theme/anomaly/style/general.css @@ -14,34 +14,34 @@ html, body {background-color:#C8C9C7;} #page-header .navbar {background-color:#697F55;width:100%;} #page-header .navbar {color:#000;} -#page-header .navbar a:link {color:#fff;} +#page-header .navbar a:link, #page-header .navbar a:visited {color:#fff;} -#page-header .navbar .breadcrumb {margin:5px 1em;float:left;} -#page-header .navbar .navbutton {float:right;margin:5px 1em;} +#page-header .navbar .breadcrumb, +#page-header .navbar .navbutton {margin:5px 1em;} /** General **/ .generalbox {border: 1px solid #DDDDDD;} -.generaltable td {border-width:0px;} -.sitetopic {border-width:0px;} +.generaltable td {border-width:0;} +.sitetopic {border-width:0;} .headingblock {margin-bottom:10px;border-bottom:1px solid #697F55;background-color:#E3E3E3;padding:4px 5px;} .coursebox {width:100%;margin:10px 0px;border-bottom:1px solid #E3E3E3;overflow:hidden;padding-bottom:10px;} .coursebox .info {width:35%;float:left;} .coursebox .summary {width:60%;float:right;} -.course-content ul {margin:0px;} -.course-content .headingblock.outline {margin-top:0px;} +.course-content ul {margin:0;} +.course-content .headingblock.outline {margin-top:0;} .course-content .section.main {border:1px solid #E3E3E3;margin-bottom:10px;} .course-content .section.main .left.side {float:left;width:20px;padding:5px;} .course-content .section.main .right.side {float:right;width:20px;padding:5px;} -.course-content .section.main .content {margin:0px 30px 10px 30px;background-color:#FFF;} +.course-content .section.main .content {margin:0 30px 10px 30px;background-color:#FFF;} .course-content .section.main .content .section_add_menus {text-align:right;} -#course-user .section {border:1px solid #DDD;margin:0px 5% 1.5em 5%;} +#course-user .section {border:1px solid #DDD;margin:0 5% 1.5em 5%;} #course-user .section h2, #course-user .section .content {margin:5px 1em;} -#course-user .section table td {border:0px;} +#course-user .section table td {border:0;} .generaltable {border:1px solid #DDD;} .generaltable .cell {background-color:#FFF;border:1px solid #EEE;border-collapse: collapse;} diff --git a/theme/anomaly/style/layout.css b/theme/anomaly/style/layout.css deleted file mode 100644 index 272afe073fe..00000000000 --- a/theme/anomaly/style/layout.css +++ /dev/null @@ -1,3 +0,0 @@ -/** Main Page Layout - Both side have blocks**/ -body {margin:25px 3%;} -#page {min-width:600px;} \ No newline at end of file