Commit f983b451 authored by Andrew Smith's avatar Andrew Smith Committed by Felix Schäfer

Reformat CSS to use the coding standard. #947

Formatting was done mostly by hand using the following as a guide
http://gnuvince.wordpress.com/2007/02/26/reformatting-a-css-file-with-vim/

" Replace all sequences of white spaces with one space
:%s/[ \t\n]\+/ /g

" Go to the end of the command, then forward one character and insert
" a newline
]/lr^M

" Make sure there is a semi-colon before each closing bracket
:%s/\([^; ]\) *}/\1;}/g

" Add a newline after every semi-colon
:%s/;/;^M/g

" Add a newline after every opening brace and make put one space
" between it and the preceeding text
:%s/\([^ ]*\) *{/\1 {^M/g

" Add two newlines after every closing brace
:%s/}/}^M^M/g

" Remove 'trailing' spaces in front of the semi-colons
:%s/ *;/;/g

" Make sure there is only one space after a colon
:%s/: */: /g

" Make the text before the colon lowercase
:%s/\(.\{-}\):/\L\1:/g

" Remove all trailing spaces at the beginning of lines
:%s/^ \+/g

" Indent the whole file
gg=G

" Split each rule onto its own line (This also matched some
" property/value combos so needed confirming
:%s/\([a-z0-9]\+\), \+/\1,^M/gc
parent 61c00779
.icon-example-works { background-image: url(../images/it_works.png); }
.icon-example-works {
background-image: url(../images/it_works.png);
}
This diff is collapsed.
/* The main calendar widget. DIV containing a table. */
/* The main calendar widget. DIV containing a table. */
img.calendar-trigger {
cursor: pointer;
vertical-align: middle;
margin-left: 4px;
cursor: pointer;
vertical-align: middle;
margin-left: 4px;
}
div.calendar { position: relative; z-index: 30;}
div.calendar {
position: relative;
z-index: 30;
}
div.calendar, div.calendar table {
div.calendar,
div.calendar table {
border: 1px solid #556;
font-size: 11px;
color: #000;
......@@ -18,10 +21,9 @@ div.calendar, div.calendar table {
}
/* Header part -- contains navigation buttons and day names. */
div.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
text-align: center; /* They are the navigation buttons */
padding: 2px; /* Make the buttons seem like they're pressing */
text-align: center; /* They are the navigation buttons */
padding: 2px; /* Make the buttons seem like they're pressing */
}
div.calendar .nav {
......@@ -29,7 +31,7 @@ div.calendar .nav {
}
div.calendar thead .title { /* This holds the current "month, year" */
font-weight: bold; /* Pressing it will take you to the current date */
font-weight: bold; /* Pressing it will take you to the current date */
text-align: center;
background: #fff;
color: #000;
......@@ -68,17 +70,18 @@ div.calendar thead .active { /* Active (pressed) buttons in header */
}
/* The body part -- contains all the days in month. */
div.calendar tbody .day { /* Cells <TD> containing month days dates */
width: 2em;
color: #456;
text-align: right;
padding: 2px 4px 2px 2px;
}
div.calendar tbody .day.othermonth {
font-size: 80%;
color: #bbb;
}
div.calendar tbody .day.othermonth.oweekend {
color: #fbb;
}
......@@ -125,7 +128,9 @@ div.calendar tbody td.today { /* Cell showing selected date */
color: #f00;
}
div.calendar tbody .disabled { color: #999; }
div.calendar tbody .disabled {
color: #999;
}
div.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
visibility: hidden;
......@@ -136,7 +141,6 @@ div.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows)
}
/* The footer part -- status bar and "Close" button */
div.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
text-align: center;
background: #556;
......@@ -163,7 +167,6 @@ div.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
}
/* Combo boxes (menus that display months/years for direct selection) */
div.calendar .combo {
position: absolute;
display: none;
......
#context-menu { position: absolute; z-index: 40; }
#context-menu {
position: absolute;
z-index: 40;
}
#context-menu ul, #context-menu li, #context-menu a {
display:block;
margin:0;
padding:0;
border:0;
#context-menu ul,
#context-menu li,
#context-menu a {
display: block;
margin: 0;
padding: 0;
border: 0;
}
#context-menu ul {
width:150px;
border-top:1px solid #ddd;
border-left:1px solid #ddd;
border-bottom:1px solid #777;
border-right:1px solid #777;
background:white;
list-style:none;
width: 150px;
border-top: 1px solid #ddd;
border-left: 1px solid #ddd;
border-bottom: 1px solid #777;
border-right: 1px solid #777;
background: white;
list-style: none;
}
#context-menu li {
position:relative;
padding:1px;
z-index:39;
border:1px solid white;
position: relative;
padding: 1px;
z-index: 39;
border: 1px solid white;
}
#context-menu li.folder ul {
position: absolute;
left: 168px; /* ie6 */
top: -2px;
max-height: 300px;
overflow: hidden;
overflow-y: auto;
}
#context-menu li.folder > ul {
left: 148px;
}
#context-menu li.folder ul { position:absolute; left:168px; /* IE6 */ top:-2px; max-height:300px; overflow:hidden; overflow-y: auto; }
#context-menu li.folder>ul { left:148px; }
#context-menu.reverse-y li.folder>ul { top:auto; bottom:0; }
#context-menu.reverse-x li.folder ul { left:auto; right:168px; /* IE6 */ }
#context-menu.reverse-x li.folder>ul { right:148px; }
#context-menu.reverse-y li.folder > ul {
top: auto;
bottom: 0;
}
#context-menu.reverse-x li.folder ul {
left: auto;
right: 168px; /* IE6 */
}
#context-menu.reverse-x li.folder > ul {
right: 148px;
}
#context-menu a {
text-decoration:none !important;
background-repeat: no-repeat;
background-position: 1px 50%;
padding: 1px 0px 1px 20px;
width:100%; /* IE */
}
#context-menu li>a { width:auto; } /* others */
#context-menu a.disabled, #context-menu a.disabled:hover {color: #ccc;}
#context-menu li:hover { border:1px solid gray; background-color:#eee; }
#context-menu a:hover {color:#2A5685;}
#context-menu li.folder:hover { z-index:40; }
#context-menu ul ul, #context-menu li:hover ul ul { display:none; }
#context-menu li:hover ul, #context-menu li:hover li:hover ul { display:block; }
text-decoration: none !important;
background-repeat: no-repeat;
background-position: 1px 50%;
padding: 1px 0px 1px 20px;
width: 100%; /* IE */
}
#context-menu li > a {
width: auto;
}
/* others */
#context-menu a.disabled,
#context-menu a.disabled:hover {
color: #ccc;
}
#context-menu li:hover {
border: 1px solid gray;
background-color: #eee;
}
#context-menu a:hover {
color: #2A5685;
}
#context-menu li.folder:hover {
z-index: 40;
}
#context-menu ul ul,
#context-menu li:hover ul ul {
display: none;
}
#context-menu li:hover ul,
#context-menu li:hover li:hover ul {
display: block;
}
/* selected element */
.context-menu-selection { background-color:#507AAA !important; color:#000 !important; }
.context-menu-selection:hover { background-color:#507AAA !important; color:#000 !important; }
.context-menu-selection {
background-color: #507AAA !important;
color: #000 !important;
}
.context-menu-selection:hover {
background-color: #507AAA !important;
color: #000 !important;
}
#context-menu .submenu {
border: transparent solid 5px;
......
#context-menu li.folder ul { left:auto; right:168px; }
#context-menu li.folder>ul { left:auto; right:148px; }
#context-menu li a.submenu { background:url("../images/bullet_arrow_left.png") left no-repeat; }
#context-menu li.folder ul {
left: auto;
right: 168px;
}
#context-menu li.folder > ul {
left: auto;
right: 148px;
}
#context-menu li a.submenu {
background: url("../images/bullet_arrow_left.png") left no-repeat;
}
#context-menu a {
background-position: 100% 40%;
......
/* IE6 how i love to hate thee */
#account-nav li a {
width:45px;
width: 45px;
}
#account-nav li li a {
width:150px;
width: 150px;
}
.title-bar {
zoom:1;
zoom: 1;
}
.title-bar-extras label {
float:none;
display:inline;
padding-right:10px;
float: none;
display: inline;
padding-right: 10px;
}
.issue-dropdown li.hover {
background-color:#fff;
background-color: #fff;
}
.issue-dropdown li.hover ul {
display:block;
left:112px;
display: block;
left: 112px;
}
body .file-thumbs a {
width:150px;
width: 150px;
}
#history .journal {
zoom:1;
zoom: 1;
}
body #history .wiki {
overflow:hidden;
zoom:1;
overflow: hidden;
zoom: 1;
}
#main-menu li li {
height:30px;
height: 30px;
}
#main-menu li li li {
height:auto;
height: auto;
}
a.has-thumb.active {
background:none;
background: none;
}
.title-bar-extras ul {
background-image:none;
border-top:1px solid #154E5D;
}
\ No newline at end of file
background-image: none;
border-top: 1px solid #154E5D;
}
/* These will be included for IE6 & IE7 */
.title-bar h2 {
height:21px;
height: 21px;
}
td.dropdown {
z-index:50;
position:relative;
z-index: 50;
position: relative;
}
body .title-bar-extras {
overflow:hidden;
overflow: hidden;
}
#main-menu, .title-bar {
z-index:4;
#main-menu,
.title-bar {
z-index: 4;
}
.title-bar .button-large ul {
z-index:15;
z-index: 15;
}
form.tooltip-active {
z-index:14;
z-index: 14;
}
#main-menu li li a span {
position:absolute;
right:0;
top:0;
display:block;
position: absolute;
right: 0;
top: 0;
display: block;
}
#main-menu li li li a span {
right:10px;
right: 10px;
}
body .file-thumbs a {
max-width:150px;
max-width: 150px;
}
#watchers {
position:relative;
z-index:5;
position: relative;
z-index: 5;
}
div.attachments {
position:relative;
z-index:4;
position: relative;
z-index: 4;
}
fieldset.collapsible.header_collapsible legend {
margin-left:-15px;
margin-left: -15px;
}
.jstEditor {
padding-left: 0px;
padding-left: 0px;
}
.jstEditor textarea, .jstEditor iframe {
margin: 0;
}
.jstHandle {
height: 10px;
font-size: 0.1em;
cursor: s-resize;
/*background: transparent url(img/resizer.png) no-repeat 45% 50%;*/
height: 10px;
font-size: 0.1em;
cursor: s-resize;
/*background: transparent url(img/resizer.png) no-repeat 45% 50%;*/
}
.jstElements {
padding: 3px 3px;
padding: 3px 3px;
}
.jstElements button {
margin-right : 6px;
width : 24px;
height: 24px;
padding: 4px;
border-style: solid;
border-width: 1px;
border-color: #ddd;
background-color : #f7f7f7;
background-position : 50% 50%;
background-repeat: no-repeat;
margin-right: 6px;
width: 24px;
height: 24px;
padding: 4px;
border-style: solid;
border-width: 1px;
border-color: #ddd;
background-color: #f7f7f7;
background-position: 50% 50%;
background-repeat: no-repeat;
}
.jstElements button:hover {
border-color : #000;
border-color: #000;
}
.jstElements button span {
display : none;
display: none;
}
.jstElements span {
display : inline;
display: inline;
}
.jstSpacer {
width : 0px;
font-size: 1px;
margin-right: 4px;
width: 0px;
font-size: 1px;
margin-right: 4px;
}
.jstElements .help { float: right; margin-right: 0.5em; padding-top: 8px; font-size: 0.9em; }
.jstElements .help a {padding: 2px 0 2px 20px; background: url(../images/help.png) no-repeat 0 50%;}
.jstElements .help {
float: right;
margin-right: 0.5em;
padding-top: 8px;
font-size: 0.9em;
}
.jstElements .help a {
padding: 2px 0 2px 20px;
background: url(../images/help.png) no-repeat 0 50%;
}
/* Buttons
-------------------------------------------------------- */
.jstb_strong {
background-image: url(../images/jstoolbar/bt_strong.png);
background-image: url(../images/jstoolbar/bt_strong.png);
}
.jstb_em {
background-image: url(../images/jstoolbar/bt_em.png);
background-image: url(../images/jstoolbar/bt_em.png);
}
.jstb_ins {
background-image: url(../images/jstoolbar/bt_ins.png);
background-image: url(../images/jstoolbar/bt_ins.png);
}
.jstb_del {
background-image: url(../images/jstoolbar/bt_del.png);
background-image: url(../images/jstoolbar/bt_del.png);
}
.jstb_code {
background-image: url(../images/jstoolbar/bt_code.png);
background-image: url(../images/jstoolbar/bt_code.png);
}
.jstb_h1 {
background-image: url(../images/jstoolbar/bt_h1.png);
background-image: url(../images/jstoolbar/bt_h1.png);
}
.jstb_h2 {
background-image: url(../images/jstoolbar/bt_h2.png);
background-image: url(../images/jstoolbar/bt_h2.png);
}
.jstb_h3 {
background-image: url(../images/jstoolbar/bt_h3.png);
background-image: url(../images/jstoolbar/bt_h3.png);
}
.jstb_ul {
background-image: url(../images/jstoolbar/bt_ul.png);
background-image: url(../images/jstoolbar/bt_ul.png);
}
.jstb_ol {
background-image: url(../images/jstoolbar/bt_ol.png);
background-image: url(../images/jstoolbar/bt_ol.png);
}
.jstb_bq {
background-image: url(../images/jstoolbar/bt_bq.png);
background-image: url(../images/jstoolbar/bt_bq.png);
}
.jstb_unbq {
background-image: url(../images/jstoolbar/bt_bq_remove.png);
background-image: url(../images/jstoolbar/bt_bq_remove.png);
}
.jstb_pre {
background-image: url(../images/jstoolbar/bt_pre.png);
background-image: url(../images/jstoolbar/bt_pre.png);
}
.jstb_link {
background-image: url(../images/jstoolbar/bt_link.png);
background-image: url(../images/jstoolbar/bt_link.png);
}
.jstb_img {
background-image: url(../images/jstoolbar/bt_img.png);
background-image: url(../images/jstoolbar/bt_img.png);
}
/***** Media print specific styles *****/
@media print {
#top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; }
#main { background: #fff; }
#content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
#wiki_add_attachment { display:none; }
.hide-when-print { display: none; }
.autoscroll {overflow-x: visible;}
table.list {margin-top:0.5em;}
table.list th, table.list td {border: 1px solid #aaa;}
#top-menu,
#header,
#main-menu,
#sidebar,
#footer,
.contextual,
.other-formats {
display:none;
}
#main {
background: #fff;
}
#content {
width: 99%;
margin: 0;
padding: 0;
border: 0;
background: #fff;
overflow: visible !important;
}
#wiki_add_attachment {
display:none;
}
.hide-when-print {
display: none;
}
.autoscroll {
overflow-x: visible;
}
table.list {
margin-top:0.5em;
}
table.list th,
table.list td {
border: 1px solid #aaa;
}
}
......@@ -2,37 +2,101 @@
* CSS Reset
* Based on http://meyerweb.com/eric/tools/css/reset/
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
line-height: 1;
line-height: 1;
}
ol, ul {
list-style: none;
ol,
ul {
list-style: none;
}
ins {
text-decoration: underline;
text-decoration: underline;
}
del {
text-decoration: line-through;
text-decoration: line-through;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
border-collapse: collapse;
border-spacing: 0;
}
/* Helper classes */
.clearfix {
clear:both;
}
\ No newline at end of file
clear: both;
}
body, #wrapper { direction: rtl;}
#quick-search { float: left; }
#main-menu { margin-left: -500px; left: auto; right: 6px; margin-right: 0px;}
#main-menu li { float: right; }
#top-menu ul { float: right; }
#account { float: left; }
#top-menu #loggedas { float: left; }
#top-menu li { float: right; }
.tabular label.floating
{
margin-right: 0;
margin-left: auto;
text-align: right;
}
.tabular label
{
float: right;
margin-left: auto;
}
.tabular p
{
clear: right;
}
.tabular label.block { text-align: right; }
.icon
{
background-position: 100% 40%;
padding-right: 20px;
padding-left: 0px;
}
div#activity dt, #search-results dt
{
background-position: 100% 50%;
padding-right: 20px;
padding-left: 0px;
}
#content .tabs ul li { float: right; }
#content .tabs ul { padding-left: auto; padding-right: 1em; }
table.progress { float: right; }
.contextual { float: left; }
.icon22 { background-position: 100% 40%; padding-right: 26px; padding-left: auto; }
h3, .wiki h2 { padding: 10px 2px 1px 0; }
.tooltip span.tip { text-align: right; }
tr.issue td.subject { text-align: right; }
tr.time-entry td.subject, tr.time-entry td.comments { text-align: right; }
#sidebar { float: left; }
#main.nosidebar #content { border-width: 1px; border-style: solid; border-color: #D7D7D7 #BBBBBB #BBBBBB #D7D7D7;}
.tabular.settings label { margin-left: auto; }
.splitcontentleft { float: right; }
.splitcontentright { float: left; }
p.progress-info { clear: right; }
table.list td.buttons a { padding-right: 20px; }
.filecontent { direction: ltr; }
.entries { direction: ltr; }
.changeset-changes { direction: ltr; padding-left: 2em }
.changesets { direction: ltr; }
div#issue-changesets { float: left; margin-right: 1em; margin-left: 0 }
div#issue-changesets div.wiki { direction: ltr; padding-left: 2em }
#activity dt, .journal { clear: right; }
.journal-link { float: left; }
div.wiki pre { direction: ltr; }
body,
#wrapper {
direction: rtl;
}
#quick-search {
float: left;
}
#main-menu {
margin-left: -500px;
left: auto;
right: 6px;
margin-right: 0px;
}
#main-menu li {
float: right;
}
#top-menu ul {
float: right;
}
#account {
float: left;
}
#top-menu #loggedas {
float: left;
}
#top-menu li {
float: right;
}
.tabular label.floating {
margin-right: 0;
margin-left: auto;
text-align: right;
}
.tabular label {
float: right;
margin-left: auto;
}
.tabular p {
clear: right;
}
.tabular label.block {
text-align: right;
}
.icon {
background-position: 100% 40%;
padding-right: 20px;
padding-left: 0px;
}
div#activity dt,
#search-results dt {
background-position: 100% 50%;
padding-right: 20px;
padding-left: 0px;
}
#content .tabs ul li {
float: right;
}
#content .tabs ul {
padding-left: auto;
padding-right: 1em;
}
table.progress {
float: right;
}
.contextual {
float: left;
}
.icon22 {
background-position: 100% 40%;
padding-right: 26px;
padding-left: auto;
}
h3,
.wiki h2 {
padding: 10px 2px 1px 0;
}
.tooltip span.tip {
text-align: right;
}
tr.issue td.subject {
text-align: right;
}
tr.time-entry td.subject,
tr.time-entry td.comments {
text-align: right;
}
#sidebar {
float: left;
}
#main.nosidebar #content {
border-width: 1px;
border-style: solid;
border-color: #D7D7D7 #BBBBBB #BBBBBB #D7D7D7;
}
.tabular.settings label {
margin-left: auto;
}
.splitcontentleft {
float: right;
}
.splitcontentright {
float: left;
}
p.progress-info {
clear: right;
}
table.list td.buttons a {
padding-right: 20px;
}
.filecontent {
direction: ltr;
}
.entries {
direction: ltr;
}
.changeset-changes {
direction: ltr;
padding-left: 2em;
}
.changesets {
direction: ltr;
}
div#issue-changesets {
float: left;
margin-right: 1em;
margin-left: 0;
}
div#issue-changesets div.wiki {
direction: ltr;
padding-left: 2em;
}
#activity dt,
.journal {
clear: right;
}
.journal-link {
float: left;
}
div.wiki pre {
direction: ltr;
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment