MDL-32355 formal_white: improved reliability e maintainability
authorKordan <kordan@mclink.it>
Fri, 6 Apr 2012 07:26:28 +0000 (09:26 +0200)
committerSam Hemelryk <sam@moodle.com>
Mon, 16 Apr 2012 00:04:56 +0000 (12:04 +1200)
theme/formal_white/config.php
theme/formal_white/style/core.css
theme/formal_white/style/pagelayout.css

index eee75c3..d92c4a1 100644 (file)
@@ -53,7 +53,6 @@ $THEME->parents = array('base','canvas');
 
 $THEME->parents_exclude_sheets = array(
     'canvas'=>array(
-        'core',
         'pagelayout',
         'tabs',
         'tables',
index 56ededa..cb14e93 100644 (file)
@@ -1,80 +1,15 @@
-/************************************************************************
-    I could not find a way to override the rule
-        border: 2px solid #ddd;
-    belonging to the file
-        /theme/canvas/style/core.css
-    Therefore this file has been created from the copy of that css file
-    and adapted to the needs of the current theme.
-************************************************************************/
-
-.sitetopic {
-    border: none;
-}
-
 .headingblock {
-    border-bottom: 1px solid #ddd;
     font-size:130%;
-    color: #333;
 }
 
 #notice {
-    text-align: center;
     padding:1em;
 }
 
-.noticebox,
-.expired,
-.notopenyet,
-.notifysuccess,
-.notifyproblem,
-.errorbox,
-.continuebutton,
-.singlebutton,
-.buttons,
-.singleselect {
-    text-align: center;
-    margin: 1em 0;
-}
-
 label {
     margin-right: 0.3em;
 }
 
-.navbutton .singlebutton {
-    margin: 0;
-}
-
-.generalbox {
-    border-color: #ddd;
-}
-
-.noticebox .generalbox {
-    border: none;
-    margin:2em 0;
-}
-
-.expired,
-.notopenyet {
-    border: none;
-    color: #f00;
-}
-
-.buttons .singlebutton input {
-    margin: 0 1em;
-}
-
-.initialbar {
-    text-align: center;
-}
-
-.side-pre-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-    padding-right: 0;
-}
-
-.side-post-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-    padding-left: 0;
-}
-
 input[type="text"],
 input[type="password"],
 textarea {
@@ -89,11 +24,6 @@ textarea {
     margin: 0 0.3em 0 0;
 }
 
-input[type="checkbox"],
-input[type="radio"] {
-    margin-right: 7px;
-}
-
 /* Login
 ------------------------*/
 
@@ -195,248 +125,11 @@ input[type="radio"] {
     text-align: left;
 }
 
-/* User
------------------------*/
-
-.userinfobox {
-    border-color: #ddd;
-    padding: 0
-}
-
-.userinfobox .content {
-    text-align: left;
-    padding-left:10px
-}
-
-.userinfobox .links {
-    vertical-align: top;
-    background: #f4f4f4;
-    padding-left: 10px;
-}
-
-.userinfobox .links a {
-    display: block;
-    text-align: left;
-
-}
-
-.profilepicture {
-    float: left;
-    margin-right: 10px;
-}
-
-.descriptionbox {
-    margin-left: 110px;
-    border: 1px solid #ddd;
-    padding: 10px;
-}
-
-.path-user .description {
-    padding-bottom: 15px;
-    border-bottom: 1px solid #eee;
-}
-
-.userprofile .list {
-    margin-top: 10px;
-}
-
-.userprofile .list td {
-    padding-top: 3px;
-    padding-bottom: 3px;
-}
-
-.userprofile .list .c0 {
-    padding-left: 0;
-    font-weight: bold;
-}
-
-#page-user-view .buttons {
-    text-align: center;
-    width: 70%;
-    margin: 0 auto;
-}
-
-#page-user-view .buttons div {
-    padding: 0 0 10px;
-}
-
-#page-user-index .controls {
-    width: 100%
-}
-
-#page-user-index .controls .singleselect {
-    margin: 0;
-}
-
-.rolesform {
-    text-align: center;
-    margin: 1em 0;
-}
-
-#participantsform {
-    text-align: center;
-}
-
-#participants {
-    width: 100%;
-    margin: 1em auto 0;
-}
-
-#participants th,
-#participants td {
-    vertical-align: middle;
-}
-
-.groupinfobox {border-color: #DDDDDD;width: 60%;margin-left: 20%;margin-right: 20%;}
-
-/* Notes
-------------------------*/
-
-.path-notes .generalbox {
-    border: none;
-}
-
-/* Roles
-------------------------*/
-
-.path-admin-roles .generaltable {
-    /* width: 65%; hiding because it's causing problems on role/assign */
-}
-
-.path-admin-roles .generaltable th {
-    vertical-align: middle;
-}
-
-.path-admin-roles .generaltable .lastcol {
-    width: 15%;
-}
-
-.path-admin-roles .backlink {
-    text-align: center;
-}
-
-/* Blogs
-------------------------*/
-
-.blog_entry .audience {
-    color: #444;
-    margin: 0 0 0.5em;
-    font-size:90%;
-}
-
-.blog_entry .tags {
-    margin-bottom: 0.5em;
-}
-
-/* Tags
-------------------------*/
-
-#big-tag-cloud-box {
-    padding: 10px;
-}
-
-#tag-management-box {
-    text-align: center;
-}
-
-.tag-management-form {
-    border: none;
-    padding: 0 0 1em;
-}
-
-#tag-management-list {
-    margin: 1em 0
-}
-
-#page-tag-index #tag-blogs {
-    border-width: 0 0 1px;
-    width: 65%;
-    margin: 1em auto;
-}
-
-#tagblogentries {
-    margin: 0 0 1em;
-}
-
-#tagblogentries li {
-    list-style: none;
-    padding: 0.25em 0;
-    margin: 0
-}
-
-#big-tag-cloud-box {
-    border: none;
-}
-
-#tag-user-table {
-    width: 95%;
-    margin: 0 auto;
-    border-width: 0 0 1px;
-}
-
-.managelink {
-    text-align: right;
-}
-
-#page-tag-index .headingblock {
-    text-align: center;
-    margin-bottom: 0;
-}
-
-#page-tag-index #tag-management-box {
-    border-bottom: 1px solid #ddd;
-    padding: 4px 0;
-}
-
-#page-tag-index .relatedpages {
-    text-align: center;
-}
-
-#page-tag-manage .lastinitial {
-    margin-bottom: 0.5em;
-}
-
-#page-tag-manage .green {
-    text-align: center;
-    padding: 0 0 1em;
-}
-
-/* YUI overlays
-------------------------*/
-#helppopupbox {
-    z-index: 99999 !important;
-}
-
-
-/* Embedded Pages
-------------------------*/
-
-.pagelayout-embedded {
-    text-align: center;
-    background-color: #fff;
-    background-image: none;
-}
-
-.pagelayout-embedded #content {
-    padding-top: 30px;
-}
-
 /* Forms
 -----------------------*/
 
-.mform .fsubmit {
-    text-align: center;
-    padding: 2px;
-}
-
-.form-label .form-shortname {
-    font-size:80%;
-    color: #777;
-}
-
 .form-description {
     font-size:95%;
-    color: #444;
 }
 
 /* do not push the field far from the label more than all the other mform elements */
@@ -451,117 +144,10 @@ input[type="radio"] {
     margin-top:0;
 }
 
-.path-backup .mform .hidden .fitem .fgroup {
-    text-align: left;
-}
-
-.path-backup .mform .grouped_settings {
-    margin:1em;
-}
-.path-backup .mform .grouped_settings .grouped_settings {
-    margin:0;
-}
-
-/* Comments
+/* Redirect
 -----------------------*/
+.pagelayout-redirect #content {margin-bottom:10%;}
 
-.comment-list li {
-    background: #eee !important;
-    list-style: none;
-}
-
-/* Gradebook
-----------------------*/
-
-.path-grade h1.headerheading {
-    text-align: left; /* Strangely necessary TODO: find bug */
-}
-
-.gradestable .lastrow th.header {
-    background: #ddd;
-}
-
-.gradestable .lastrow td.cell {
-    background: #eee !important;
-}
-
-.user-grade td.b1t,
-.user-grade td.baggt {
-    background: #ddd !important;
-}
-
-#page-grade-edit-scale-index .generaltable {
-    margin: 1em auto;
-}
-
-#page-grade-report-grader-preferences .generalbox {
-    border: none;
-}
-
-.path-grade-report-grader form {
-    text-align: left;
-}
-
-/* Footer
+/* Plugin compattable
 -----------------------*/
-
-#page-footer .logininfo {
-    padding: 1em 0;
-}
-
-#page-footer .homelink,
-#page-footer .sitelink {
-    padding: 1em 0;
-}
-
-.homelink a {
-    text-decoration: none;
-    border-top: 1px solid #cecece;
-    border-bottom: 2px solid #8a8a8a;
-    border-left: 1px solid #cecece;
-    border-right: 2px solid #8a8a8a;
-}
-
-.homelink a:hover {
-    text-decoration: none;
-    border-bottom: 1px solid #cecece;
-    border-top: 2px solid #8a8a8a;
-    border-right: 1px solid #cecece;
-    border-left: 2px solid #8a8a8a;
-}
-
-/**
- * Enrol   - TODO: tidy up styles here
- */
-.userenrolment {font-size:100%;border:1px solid #E3DFD4;}
-.userenrolment tr.r0 {background-color:#F9F9F9;}
-.userenrolment tr.r1 {background-color:#F3F3F3;}
-.userenrolment td {border:1px solid #E9E9E9;border-top-color:#F6F6F6;border-right-color:#EEE;border-left-color:#F3F3F3;}
-.userenrolment td.c0 {border-left-color:#E3DFD4;}
-.userenrolment td.c4 {border-right-color:#E3DFD4;}
-.userenrolment .col_userdetails {padding:3px;min-width:35%;}
-.userenrolment .col_role .roles {position:relative;}
-.userenrolment .col_role .role {line-height:10px;font-size:70%;}
-.userenrolment .col_role .role a img {height:8px;}
-.userenrolment .col_role .addrole {background-color:#DDD;border:1px outset #EEE;-moz-border-radius:5px;}
-.userenrolment .col_group {max-width:300px;}
-.userenrolment .col_group .group {line-height:10px;font-size:70%;}
-.userenrolment .col_group .group a img {height:8px;}
-.userenrolment .col_group .addgroup {background-color:#DDD;border:1px outset #EEE;-moz-border-radius:5px;}
-.userenrolment .col_enrol {max-width:300px;}
-.userenrolment .col_enrol .enrolment {border:1px outset #E6E6E6;background-color:#EEE;line-height:10px;font-size:70%;-moz-border-radius:5px;}
-.path-enrol .enrolusersbutton,
-.path-enrol .enrolcohortbutton {float:left;}
-.path-enrol .enrolusersbutton.instance1,
-.path-enrol .enrolcohortbutton.instance1 {float:right;}
-
-/* Registration */
-#page-admin-registration-hubselector .registration_textfield {width: 400px;}
-
-/**
- * Redirect
- */
-.pagelayout-redirect #content {text-align:center;margin-top:10%;margin-bottom:10%;}
-
-/* plugin compattable */
 .plugincompattable {font-size:90%;}
index ea1d95a..48b4379 100644 (file)
  *
  ****/
 
+#page {
+    font-size: 100%;
+}
+
 #page-header {
     background-color:[[setting:headerbgc]];
     /* arrotonadamento angoli in alto dell'header */
     padding:[[setting:blockpadding]] [[setting:blockpadding]] 0 [[setting:blockpadding]];
 }
 
+#maincontent {
+    margin-top:0;
+}
+
 .pagelayout-report #page-content .region-content {
     overflow: auto;
 }