mirror of
https://github.com/moodle/moodle.git
synced 2025-02-21 18:08:02 +01:00
922 lines
13 KiB
CSS
922 lines
13 KiB
CSS
/* $Id$ */
|
|
/*************************************************
|
|
***
|
|
*** layout
|
|
***
|
|
**************************************************/
|
|
/*************************************************
|
|
***
|
|
*** This CSS file contains all layout definitions
|
|
*** like positioning, floats,
|
|
*** margins, paddding,
|
|
*** borders etc.
|
|
***
|
|
*** Shortindex:
|
|
*** basic and general styles
|
|
*** header and footer styles
|
|
*** content styles (alphabetically)
|
|
*** admin, course, activities, calendar, blocks
|
|
***
|
|
*** Please sort new styles for existing content
|
|
*** into the appropriate part of this CSS file.
|
|
*** Styles for new Blocks or Activities please
|
|
*** place at the end.
|
|
*** Wouldn't the alphabetical order be better?
|
|
***
|
|
**************************************************/
|
|
|
|
/***
|
|
*** Core
|
|
***/
|
|
|
|
h1.main,
|
|
h2.main,
|
|
h3.main,
|
|
h4.main,
|
|
h5.main,
|
|
h6.main {
|
|
width:80%;
|
|
margin-left:auto;
|
|
margin-right:auto;
|
|
}
|
|
|
|
/* basic styles */
|
|
|
|
.clearer {
|
|
clear:both;
|
|
margin:0;
|
|
padding:0;
|
|
border:none;
|
|
background:transparent;
|
|
height:1px;
|
|
}
|
|
|
|
a.autolink:link {
|
|
border-bottom:dashed 1px;
|
|
cursor:help;
|
|
}
|
|
|
|
a.autolink:visited {
|
|
border-bottom:dashed 1px;
|
|
cursor:help;
|
|
}
|
|
|
|
a.autolink:hover {
|
|
border-bottom:solid 1px;
|
|
cursor:help;
|
|
}
|
|
|
|
/* general styles */
|
|
body {
|
|
margin:10px; /*behavior:url(/htc/csshover.htc);*/
|
|
}
|
|
|
|
ul {
|
|
margin-bottom:5px;
|
|
margin-top:0;
|
|
}
|
|
|
|
form {
|
|
margin-bottom:0;
|
|
}
|
|
|
|
a img {
|
|
border:none;
|
|
}
|
|
|
|
input {
|
|
background:transparent;
|
|
}
|
|
|
|
|
|
/* header styles */
|
|
#header-home {
|
|
padding:0.5em 0.5em;
|
|
height:2em;
|
|
}
|
|
|
|
#header,
|
|
#header-main,
|
|
#nav-bar {
|
|
margin:0;
|
|
}
|
|
|
|
#header {
|
|
padding:0.1em 0.5em;
|
|
height:50px;
|
|
}
|
|
|
|
.headermain {
|
|
float:left;
|
|
}
|
|
|
|
#header .headermain {
|
|
margin:0.2em 0;
|
|
}
|
|
|
|
.headermenu {
|
|
float:right;
|
|
padding:0;
|
|
margin:0;
|
|
}
|
|
|
|
#nav-bar {
|
|
margin-bottom:0;
|
|
padding:1px 0.5em;
|
|
background:url(colorstrip.gif) left no-repeat;
|
|
height:3em;
|
|
}
|
|
|
|
#breadcrumb {
|
|
float:left;
|
|
padding-top:13px;
|
|
margin:0.2em 0;
|
|
}
|
|
|
|
#navbutton {
|
|
float:right;
|
|
padding-top:13px;
|
|
margin:0.2em 0;
|
|
}
|
|
|
|
#nav-bar hr {
|
|
height:1px;
|
|
}
|
|
|
|
/* footer styles */
|
|
#footer br {
|
|
display:none;
|
|
}
|
|
|
|
#footer hr {
|
|
display:none;
|
|
}
|
|
|
|
/*****************************
|
|
***
|
|
*** content styles
|
|
***
|
|
******************************/
|
|
#content {
|
|
margin:0;
|
|
padding:0;
|
|
border:thin solid;
|
|
}
|
|
|
|
/* many places */
|
|
.generalbox {
|
|
margin-left:auto;
|
|
margin-right:auto;
|
|
border-width:1px;
|
|
border-style:solid;
|
|
}
|
|
|
|
.generalboxcontent {
|
|
background-image:none;
|
|
}
|
|
|
|
.noticebox {
|
|
border-width:1px;
|
|
border-style:solid;
|
|
}
|
|
|
|
/* weblib.php table */
|
|
.tabledivider {
|
|
border-width:1px;
|
|
border-style:solid;
|
|
border-left:0;
|
|
border-right:0;
|
|
border-top:0;
|
|
}
|
|
|
|
/* entry page */
|
|
#site-index #left-column,
|
|
#site-index #left-column .sideblock {
|
|
width:250px !important;
|
|
}
|
|
|
|
#site-index #left-column .sideblock .content {
|
|
padding:0.5em;
|
|
}
|
|
|
|
#site-index #middle-column {
|
|
width:auto;
|
|
padding:0 2.5em;
|
|
}
|
|
|
|
#site-index #right-column {
|
|
width:30%;
|
|
}
|
|
|
|
#site-index #middle-column .forumpost {
|
|
border-width:0;
|
|
border-style:none;
|
|
}
|
|
|
|
#site-index #middle-column .forumpostpicture,
|
|
#site-index #middle-column .forumpostside {
|
|
display:none;
|
|
}
|
|
|
|
#site-index #middle-column .headingblock,
|
|
#site-index #middle-column .forumpostheadertopic {
|
|
padding:1em;
|
|
border-width:0 0 0 25px;
|
|
border-style:solid;
|
|
}
|
|
|
|
/* entry-page index.php */
|
|
.sitetopic,
|
|
.siteinfo {
|
|
border-width:1px;
|
|
border-style:solid;
|
|
}
|
|
|
|
|
|
/***
|
|
*** User
|
|
***/
|
|
|
|
.userinfobox {
|
|
margin-bottom:5px;
|
|
border:1px solid;
|
|
border-collapse: separate;
|
|
}
|
|
|
|
.userinfobox .left {
|
|
padding: 10px;
|
|
width: 100px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.userinfobox .content {
|
|
padding: 10px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.userinfobox .links {
|
|
width: 100px;
|
|
padding: 5px;
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
.userinfobox .list td {
|
|
padding: 3px;
|
|
}
|
|
|
|
.userinfobox .username {
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
.userinfobox {
|
|
width: 80%;
|
|
margin-left: 10%;
|
|
margin-right: 10%;
|
|
}
|
|
|
|
table.groupinfobox {
|
|
width: 60%;
|
|
margin-left: 20%;
|
|
margin-right: 20%;
|
|
border-width:1px;
|
|
border-style:solid;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.groupinfobox .left {
|
|
padding: 10px;
|
|
width: 100px;
|
|
vertical-align: top;
|
|
}
|
|
body#user-index #longtimenosee {
|
|
text-align:center;
|
|
}
|
|
|
|
#user-edit .generalbox {
|
|
border-top-width:0;
|
|
}
|
|
|
|
/*****************************
|
|
***
|
|
*** Admin
|
|
***
|
|
******************************/
|
|
/* admin, calendar */
|
|
table.formtable td {
|
|
padding:9px;
|
|
}
|
|
|
|
/* admin */
|
|
.admin #content,
|
|
.admin .generalboxcontent,
|
|
.admin .generalbox {
|
|
width:auto
|
|
}
|
|
|
|
#user-edit .generalboxcontent {
|
|
width:100%
|
|
}
|
|
|
|
|
|
/*****************************
|
|
***
|
|
*** Course
|
|
***
|
|
******************************/
|
|
/* course, entry-page, login */
|
|
.generaltableheader {
|
|
background-image:none;
|
|
}
|
|
|
|
/* course */
|
|
#layout-table {
|
|
width:100%;
|
|
margin:0;
|
|
border-spacing:5px;
|
|
border-collapse:separate;
|
|
}
|
|
|
|
#layout-table tr,
|
|
#layout-table td {
|
|
vertical-align:top;
|
|
}
|
|
|
|
#left-column,
|
|
#right-column {
|
|
margin:0;
|
|
padding:0;
|
|
border:0;
|
|
}
|
|
|
|
#middle-column {
|
|
padding:0 15px;
|
|
}
|
|
|
|
#course-view .headingblock {
|
|
border-style:none;
|
|
margin-left:2px;
|
|
padding-left:1.5em;
|
|
border-left:1.5em solid;
|
|
background-image:none;
|
|
}
|
|
|
|
#course-view .activity {
|
|
border:0 none;
|
|
}
|
|
|
|
#course-view table.section {
|
|
border-collapse:collapse;
|
|
border-spacing:0;
|
|
}
|
|
|
|
#course-view .section td {
|
|
vertical-align:top;
|
|
}
|
|
|
|
#course-view .section .content {
|
|
padding:0 1em;
|
|
}
|
|
|
|
#course-view .section .side {
|
|
}
|
|
|
|
#course-view .section .left {
|
|
width:0;
|
|
padding:0;
|
|
border-left:1.5em solid;
|
|
}
|
|
|
|
#course-view .section .right {
|
|
width:2em;
|
|
padding:0.5em;
|
|
text-align:center;
|
|
}
|
|
|
|
#course-view .current .side {
|
|
}
|
|
|
|
#course-view .topics {
|
|
margin-top:9px;
|
|
}
|
|
|
|
#course-view .weeks {
|
|
margin-top:9px;
|
|
}
|
|
|
|
#course-view .section .spacer {
|
|
height:2em;
|
|
}
|
|
|
|
#course-view .section .weekdates {
|
|
}
|
|
|
|
.categorybox {
|
|
border-width:1px;
|
|
border-style:solid;
|
|
}
|
|
|
|
.courseboxcontent {
|
|
border-width:1px;
|
|
border-style:solid;
|
|
}
|
|
|
|
/*****************************
|
|
***
|
|
*** Activities
|
|
***
|
|
******************************/
|
|
/* assignment, forum, glossary */
|
|
.forumpost,
|
|
.forumheaderlist {
|
|
border-width:1px;
|
|
border-style:solid;
|
|
}
|
|
|
|
/* forum */
|
|
.forum {
|
|
width:100%;
|
|
margin-left:auto;
|
|
margin-right:auto;
|
|
border:1px solid;
|
|
position:relative;
|
|
/*width:45em;*/
|
|
}
|
|
|
|
/* new */
|
|
.forumheaderlist,
|
|
.forumpost {
|
|
width:100%;
|
|
border-width:1px solid;
|
|
border-collapse:separate;
|
|
}
|
|
|
|
.forumheaderlist thead tr th {
|
|
border:1px solid;
|
|
}
|
|
|
|
.forumpost {
|
|
margin-top:15px;
|
|
}
|
|
|
|
.forumpost .topic {
|
|
padding:4px;
|
|
}
|
|
|
|
.forumpost .commands {
|
|
padding-top:0.5em;
|
|
text-align:right;
|
|
}
|
|
|
|
.forumpost .ratings {
|
|
padding-top:1em;
|
|
text-align:right;
|
|
}
|
|
|
|
.forumpost .content {
|
|
padding:4px;
|
|
}
|
|
|
|
.forumpost .footer {
|
|
padding-top:0.5em;
|
|
text-align:right;
|
|
}
|
|
|
|
.forumpost .left {
|
|
width:35px;
|
|
padding:4px;
|
|
text-align:center;
|
|
vertical-align:top;
|
|
}
|
|
|
|
.forumpostindent {
|
|
margin-left:45px;
|
|
}
|
|
|
|
.unread {
|
|
margin-left:1em;
|
|
border-width:0 0 1px 3px;
|
|
border-style:solid;
|
|
}
|
|
|
|
/* glossary */
|
|
.mod-glossary #glossary-view {
|
|
width:45em;
|
|
margin-left:auto;
|
|
margin-right:auto;
|
|
border:1px solid;
|
|
position:relative;
|
|
}
|
|
|
|
/*.mod-glossary table {
|
|
width:100%;
|
|
}*/
|
|
#mod-glossary-edit {
|
|
margin:0;
|
|
width:auto;
|
|
}
|
|
|
|
.mod-glossary .generaltab,
|
|
.mod-glossary .generaltabselected,
|
|
.mod-glossary .general,
|
|
.mod-glossary .inactive {
|
|
width:100%;
|
|
padding:0 1px;
|
|
text-align:center;
|
|
}
|
|
|
|
.mod-glossary table.tabs td.separator {
|
|
width:1%;
|
|
}
|
|
|
|
.mod-glossary .glossarydisplay {
|
|
width:80%;
|
|
}
|
|
|
|
.mod-glossary .tabs {
|
|
margin-bottom:0;
|
|
padding-bottom:0;
|
|
}
|
|
|
|
.mod-glossary .entryboxheader hr {
|
|
display:none;
|
|
}
|
|
|
|
.mod-glossary .entrybox {
|
|
border:1px solid #D1D7DC;
|
|
border-top:0 none;
|
|
}
|
|
|
|
/*
|
|
.glossary .inactive {
|
|
border:1px solid;
|
|
}*/
|
|
/* quiz */
|
|
table.quiz td {
|
|
padding-top:0.1em;
|
|
line-height:1.7em;
|
|
}
|
|
|
|
table.quiz input {
|
|
padding-top:0.1em;
|
|
height:1.7em;
|
|
vertical-align:top;
|
|
}
|
|
|
|
/* wiki */
|
|
.wiki {
|
|
border-width:1px;
|
|
border-style:solid;
|
|
}
|
|
|
|
.mwiki .view {
|
|
margin-left:auto;
|
|
margin-right:auto;
|
|
width:35em;
|
|
}
|
|
|
|
.mwiki .edit {
|
|
margin-right:auto;
|
|
margin-left:auto;
|
|
padding:0;
|
|
}
|
|
|
|
.wiki .title {
|
|
padding:3px;
|
|
border:1px solid;
|
|
}
|
|
|
|
.wiki .upload {
|
|
padding-top:1em;
|
|
}
|
|
|
|
#wikipageactions {
|
|
width:auto !important;
|
|
margin:auto;
|
|
position:relative;
|
|
}
|
|
|
|
#wikipageactions td {
|
|
text-align:left !important;
|
|
}
|
|
|
|
#wikipageactions input {
|
|
padding:0;
|
|
margin:0;
|
|
}
|
|
|
|
.mwiki {
|
|
width:45em;
|
|
margin-left:auto;
|
|
margin-right:auto;
|
|
border:1px solid;
|
|
position:relative;
|
|
}
|
|
|
|
/*****************************
|
|
***
|
|
*** Calendar
|
|
***
|
|
******************************/
|
|
body.calendar #calendar tr,
|
|
body.calendar #calendar td {
|
|
vertical-align:top;
|
|
}
|
|
|
|
body.calendar #calendar td.maincalendar {
|
|
padding:0 2em;
|
|
}
|
|
|
|
body.calendar #calendar td.maincalendar .buttons {
|
|
float:right;
|
|
}
|
|
|
|
body.calendar #calendar table.calendarmonth {
|
|
padding:1em 0;
|
|
}
|
|
|
|
table.minicalendar {
|
|
width:100%;
|
|
margin:0;
|
|
padding:0;
|
|
border-width:1px;
|
|
border-style:solid;
|
|
}
|
|
|
|
table.calendarmonth {
|
|
width:100%;
|
|
margin:0;
|
|
padding:0;
|
|
border-width:1px;
|
|
border-style:solid;
|
|
}
|
|
|
|
table.minicalendar tbody td {
|
|
width:14%;
|
|
border-width:1px 0;
|
|
border-style:none;
|
|
vertical-align:center;
|
|
}
|
|
|
|
table.calendarmonth tbody td {
|
|
width:14%;
|
|
border-width:1px;
|
|
border-style:solid;
|
|
vertical-align:top;
|
|
}
|
|
|
|
table.calendarmonth tbody td table {
|
|
margin-top:0;
|
|
margin-left:0;
|
|
}
|
|
|
|
table.calendarmonth tbody td table td {
|
|
border:none;
|
|
background:none;
|
|
}
|
|
|
|
table.calendarmonth tbody td div {
|
|
margin-top:0;
|
|
margin-left:0;
|
|
}
|
|
|
|
table.minicalendar thead td {
|
|
vertical-align:center;
|
|
}
|
|
|
|
table.calendarmonth thead td {
|
|
padding-bottom:3px;
|
|
border-bottom:2px solid;
|
|
vertical-align:center;
|
|
}
|
|
|
|
.event_global {
|
|
border:2px solid !important;
|
|
}
|
|
|
|
.event_course {
|
|
border:2px solid !important;
|
|
}
|
|
|
|
.event_group {
|
|
border:2px solid !important;
|
|
}
|
|
|
|
.event_user {
|
|
border:2px solid !important;
|
|
}
|
|
|
|
.cal_duration_global {
|
|
border-top:2px solid !important;
|
|
border-bottom:2px solid !important;
|
|
}
|
|
|
|
.cal_duration_course {
|
|
border-top:2px solid !important;
|
|
border-bottom:2px solid !important;
|
|
}
|
|
|
|
.cal_duration_user {
|
|
border-top:2px solid !important;
|
|
border-bottom:2px solid !important;
|
|
}
|
|
|
|
.cal_duration_group {
|
|
border-top:2px solid !important;
|
|
border-bottom:2px solid !important;
|
|
}
|
|
|
|
.cal_today {
|
|
border:2px solid !important;
|
|
}
|
|
|
|
.mycalendar table.cal_filters {
|
|
margin:0;
|
|
padding:2px;
|
|
width:100%;
|
|
border-width:1px;
|
|
border-style:solid;
|
|
}
|
|
|
|
.mycalendar .cal_filters thead td {
|
|
margin:0;
|
|
padding:2px;
|
|
border-bottom:2px solid;
|
|
}
|
|
|
|
.mycalendar .event_table {
|
|
margin:0;
|
|
padding:2px;
|
|
width:100%;
|
|
border-width:1px;
|
|
border-style:solid;
|
|
}
|
|
|
|
.mycalendar hr {
|
|
border:none;
|
|
border-top:1px solid;
|
|
margin-top:4px;
|
|
margin-bottom:4px;
|
|
height:1px;
|
|
}
|
|
|
|
td.event_description {
|
|
width:80%;
|
|
border-left:2px solid;
|
|
padding:5px;
|
|
vertical-align:top;
|
|
}
|
|
|
|
#calendar .today,
|
|
.minicalendar .today {
|
|
border:1px solid !important;
|
|
}
|
|
|
|
.cal_popup_bg {
|
|
padding:0;
|
|
margin:0;
|
|
border-top:2px solid;
|
|
border-left:2px solid;
|
|
border-right:2px solid;
|
|
border-bottom:2px solid;
|
|
}
|
|
|
|
.cal_popup_close {
|
|
margin-right:5px;
|
|
}
|
|
|
|
.eventfull {
|
|
border-width:1px;
|
|
border-style:solid;
|
|
}
|
|
|
|
.eventfullpicture {
|
|
padding:8px;
|
|
}
|
|
|
|
table.calendar-controls {
|
|
width:100%;
|
|
text-align:center;
|
|
}
|
|
|
|
table.calendar-controls .previous,
|
|
table.calendar-controls .next {
|
|
width:12%;
|
|
}
|
|
|
|
#calendar .maincalendar .calendar-controls .previous,
|
|
#calendar .maincalendar .calendar-controls .next {
|
|
width:30%;
|
|
}
|
|
|
|
/*****************************
|
|
***
|
|
*** Blocks
|
|
***
|
|
******************************/
|
|
/* sideblock */
|
|
.sideblock {
|
|
width:100%;
|
|
border:0 none;
|
|
}
|
|
|
|
.sideblock .header {
|
|
padding:0 5px;
|
|
border:0 none;
|
|
background-image:none;
|
|
}
|
|
|
|
#right-column .sideblock {
|
|
border:1px solid;
|
|
}
|
|
|
|
.sideblock .header .hide-show {
|
|
float:right;
|
|
}
|
|
|
|
.sideblock .header .hide-show img.hide-show-image {
|
|
width:11px;
|
|
padding-top:0.35em;
|
|
height:11px;
|
|
}
|
|
|
|
.sideblock .header .hide-show img.hide-show-image {
|
|
background:url('../../pix/t/switch_minus.gif') no-repeat bottom;
|
|
}
|
|
|
|
.sideblock.hidden .header .hide-show img.hide-show-image {
|
|
background:url('../../pix/t/switch_plus.gif') no-repeat bottom;
|
|
}
|
|
|
|
.sideblock .header .title {
|
|
float:left;
|
|
width:auto;
|
|
}
|
|
|
|
.sideblock.hidden .content {
|
|
display:none;
|
|
}
|
|
|
|
.sideblock .header .commands {
|
|
float:right;
|
|
padding-left:0.2em;
|
|
}
|
|
|
|
.sideblock .header .commands a {
|
|
border-bottom:none;
|
|
cursor:pointer;
|
|
}
|
|
|
|
.sideblock .header .commands a img {
|
|
padding-top:0.5em;
|
|
}
|
|
|
|
.sideblock .list {
|
|
width:100%;
|
|
}
|
|
|
|
.sideblockmain hr {
|
|
border:none;
|
|
border-top:1px solid;
|
|
margin-top:4px;
|
|
margin-bottom:4px;
|
|
height:1px;
|
|
}
|
|
|
|
#left-column .sideblock {
|
|
margin-bottom:0;
|
|
}
|
|
|
|
#left-column .sideblockmain {
|
|
padding:1px 0;
|
|
}
|
|
|
|
#left-column .sideblock .header,
|
|
#left-column .sideblock {
|
|
border-width:0 0 0 1px;
|
|
}
|
|
|
|
#left-column .sideblock .list {
|
|
padding-left:5px;
|
|
}
|
|
|
|
#right-column .sideblock {
|
|
margin:1em 0 0.5em;
|
|
}
|
|
|
|
/* glossary random */
|
|
.block_glossary_random .sideblockheading,
|
|
.block_glossary_random .sideblockmain br,
|
|
.block_glossary_random .sideblockmain b {
|
|
display:none;
|
|
}
|
|
|
|
.block_glossary_random .sideblockmain {
|
|
text-align:center;
|
|
}
|
|
|
|
/* course summary */
|
|
.block_course_summary .sideblockmain {
|
|
padding:10px;
|
|
}
|
|
|