MDL-43822 theme_bootstrapbase: blocks less tidied and reorganised

This commit is contained in:
Sam Hemelryk 2014-01-23 15:30:25 +13:00
parent 692d247a3a
commit 496e46b1ee
3 changed files with 154 additions and 113 deletions

View file

@ -14,7 +14,6 @@
.block .content .list .c0 {display:inline;} .block .content .list .c0 {display:inline;}
.block .content .list .c1 {margin-left:5px;display:inline;} .block .content .list .c1 {margin-left:5px;display:inline;}
.block .footer {margin-bottom: 4px;} .block .footer {margin-bottom: 4px;}
.block .blockannotation {font-size:0.75em;margin: -1em 0 1em;}
.block_navigation .block_tree li {overflow:hidden;} .block_navigation .block_tree li {overflow:hidden;}
.block_calendar_upcoming .footer { margin-top: .5em; } .block_calendar_upcoming .footer { margin-top: .5em; }

View file

@ -1,145 +1,161 @@
// General block styles.
.block { .block {
.well; .well;
padding: 8px 0; padding: 8px 0;
}
.block .header .title h2, .header {
.block h3 { h2 {
.nav-header; .nav-header;
font-size: 1.1em; font-size: 1.1em;
word-wrap: break-word;
margin: 0;
} }
.block_action {
.block .header .title .commands, padding: 3px 15px;
.block_adminblock .content,
.block .footer {
display: block;
padding: 3px 5px;
}
.block .header .block_action {
padding:4px;
float: right; float: right;
> * {
margin-left:3px;
} }
.block .header .commands { .block-hider-show,
.block-hider-hide {
cursor: pointer;
}
.block-hider-show {
display: none;
}
}
.commands {
clear: both; clear: both;
text-align: right; text-align: right;
} display: block;
.block .header .commands > a { padding: 3px 15px;
> a {
margin: 0 3px; margin: 0 3px;
} }
.block .header .commands .icon img { .icon img {
width: 12px; width: 12px;
height: 12px; height: 12px;
} }
img.actionmenu {
.block .header .commands img.actionmenu {
width:auto; width:auto;
} }
}
.block {
.header h2 {
word-wrap: break-word;
padding: .2em 0 0 .2em;
margin: 0;
} }
.content { .content {
padding: 4px 14px; padding: 4px 14px;
word-wrap: break-word; word-wrap: break-word;
h3 {
.nav-header;
font-size: 1.1em;
}
hr { hr {
margin: 5px 0; margin: 5px 0;
} }
} .userpicture {
}
.jsenabled .block.hidden .content {
display: none;
}
.block .content .userpicture {
width: 16px; width: 16px;
height: 16px; height: 16px;
margin-right: 6px; margin-right: 6px;
} }
.block .content .list li.listentry { .list {
li.listentry {
clear: both; clear: both;
} }
.block .content .list .c0 { .c0 {
display: inline; display: inline;
} }
.block .content .list .c1 { .c1 {
margin-left: 5px; margin-left: 5px;
display: inline; display: inline;
} }
}
.block .footer { }
.footer {
margin-bottom: 4px; margin-bottom: 4px;
display: block;
padding: 3px 5px;
} }
&.beingmoved {
.block .blockannotation {
font-size: 0.75em;
margin: -1em 0 1em;
}
.block.list_block .unlist > li > .column {
display: inline-block;
.ie7-inline-block();
}
.blockmovetarget,
.block.beingmoved {
border-width: 2px; border-width: 2px;
border-style: dashed; border-style: dashed;
} }
.blockmovetarget { &.invisible {
display: block;
height: 1em;
margin-bottom: 1em;
}
.block.invisible {
.opacity(50); .opacity(50);
} }
.block .block-hider-show, &.hidden .header .block_action {
.block .block-hider-hide { .block-hider-hide {
cursor: pointer;
padding-right: 5px;
padding-left: 5px;
}
.block .block-hider-show,
.block.hidden .block-hider-hide {
display: none; display: none;
} }
.block.hidden .block-hider-show { .block-hider-show {
display: inline; display: inline;
} }
.block_calendar_upcoming {
.footer {
margin-top: .5em;
} }
&.list_block .unlist > li > .column {
display: inline-block;
.ie7-inline-block();
}
}
// Hide the block content when the block has been minimised.
.jsenabled .block.hidden .content {
display: none;
}
// Style the div used as a move target for non-drag+drop block moves.
.blockmovetarget {
border-width: 2px;
border-style: dashed;
display: block;
height: 1em;
margin-bottom: 20px;
}
// Style the div that contains the cancel link for moving a block with JS disabled.
.blockannotation {
// Blocks have a bottom margin of 20px, to associate this link with the block being moved
// we move it up 10px, and then give it a bottom margin of 10px giving it a better visual association
position: relative;
top: -10px;
margin-bottom: 10px;
}
// Styles for the blog menu block.
.block_blog_menu #blogsearchquery {
max-width: 92%;
}
// Styles for the admin block.
.block_settings {
#adminsearchquery {
max-width: 92%;
}
}
// Styles for the search forums block.
.block_search_forums {
#searchform_search {
width: auto;
max-width: 92%;
}
}
// Styles for the Calendar Upcoming block.
.block_calendar_upcoming {
.content { .content {
.date { .date {
padding-left: 22px; padding-left: 22px;
} }
.footer { .footer {
margin-top: .5em;
padding-top: 10px; padding-top: 10px;
padding-left: 0px; padding-left: 0px;
} }
} }
} }
#adminsearchquery, // Styles for the RSS client block.
#blogsearchquery,
#searchform_search,
.block_adminblock select {
max-width: 92%;
}
.block_adminblock .singleselect {
display: block;
}
#searchform_search {
width: auto;
}
.block_rss_client { .block_rss_client {
.content li { .content li {
margin-bottom: 10px; margin-bottom: 10px;
@ -155,6 +171,7 @@
} }
} }
// Styles for the news items block.
.block_news_items .content { .block_news_items .content {
.newlink { .newlink {
padding-bottom: 10px; padding-bottom: 10px;
@ -199,18 +216,41 @@
} }
} }
// Overide for RTL layout. // Styles for the special "Add block" block shown while editing.
.block_adminblock {
.content {
display: block;
padding: 3px 5px;
}
select {
max-width: 92%;
}
}
// RTL styles for blocks.
.dir-rtl { .dir-rtl {
.block .header,
.block h2.header { // RTL styles for blocks in general.
.block {
.header {
text-align:right;
h2 {
text-align:right; text-align:right;
} }
.block .header .commands { .commands {
text-align: left; text-align: left;
> * {
margin-left:0;
margin-right:3px;
} }
.block .header .block_action { }
.block_action {
float: left; float: left;
} }
}
}
// LTR styles for the calendar upcoming block.
.block_calendar_upcoming { .block_calendar_upcoming {
.content { .content {
.date { .date {
@ -221,6 +261,8 @@
} }
} }
} }
// RTL styles for the news items block.
.block_news_items .content { .block_news_items .content {
ul li { ul li {
.name { .name {

File diff suppressed because one or more lines are too long