Ticket #1497 - CSS changes for form fields

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44106 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2007-11-01 21:31:26 +00:00
parent a0798d8622
commit 482646ec56
4 changed files with 140 additions and 129 deletions

View File

@ -4,38 +4,51 @@
.right form { .right form {
margin: 1em; margin: 1em;
position: relative; position: relative;
/*top: 70px;*/
}
html>body .right from {
/*top: 50px;*/
} }
.right form .field { .right form .field {
font-size: 1.2em; margin: 3px !important;
} }
.right form .text,
.right form textarea { .right form .field span.readonly {
width: 98%; font-size: 14px;
}
.right form .dropdown {
font-size: 12px;
}
.right form .field span.middleColumn {
display: block;
background: #e9e9e9;
padding: 2px;
}
.right form .checkbox input,
.right form .optionset input {
border: none;
} }
.right form input { .right form .field label.left {
float: none;
display: block;
margin-left: 0;
color: #666;
margin-bottom: 3px;
font-size: 11px;
width: 96%; width: 96%;
} }
.right form textarea,
.right form input,
.right form textarea.htmleditor { .right form textarea.htmleditor {
width: 90%; border: 1px solid #a7a7a7;
display : none; padding: 3px;
} width: 96%;
html>body .right form textarea.htmleditor {
width: 98%;
} }
.right form textarea.htmleditor {
display: none;
}
.right form .creditCardfield input { .right form input.checkbox,
width: 4.415em;
}
.right form input.checkbox,
.right form .optionset input, .right form .optionset input,
.right form .htmleditor select, .right form .htmleditor select,
.right form input.action { .right form input.action {
@ -70,7 +83,7 @@ html>body .right form textarea.htmleditor {
.ajaxActions { .ajaxActions {
position: absolute; position: absolute;
bottom: 3px; bottom: 3px;
right: 10px; right: 15px;
padding: 0; padding: 0;
margin: 0; margin: 0;
text-align: right; text-align: right;
@ -78,19 +91,20 @@ html>body .right form textarea.htmleditor {
.ajaxActions input { .ajaxActions input {
cursor: pointer; cursor: pointer;
float : left; float: left;
height : 25px; height: 25px;
background-image: url(../images/textures/ToolBar.png); background-image: url(../images/textures/ToolBar.png);
padding-left: 10px; padding-left: 10px;
padding-right : 10px; padding-right: 10px;
margin : 0px; color: #333333;
color : #333333;
overflow: visible; overflow: visible;
width: auto; width: auto;
border-color: #CCCCCC rgb(153, 153, 153) rgb(153, 153, 153) rgb(204, 204, 204); border-color: #CCCCCC rgb(153, 153, 153) rgb(153, 153, 153) rgb(204, 204, 204);
border-style: double; border-style: double;
border-width: 3px; border-width: 3px;
margin: 1px; margin: 1px;
font-weight: bold;
font-size: 11px;
} }
.ajaxActions input:active { .ajaxActions input:active {
@ -121,10 +135,10 @@ input.loading {
.right form div.tab { .right form div.tab {
clear: left; clear: left;
overflow: auto; overflow: auto;
border: 1px #AAA solid; border: 1px solid #aaa;
border-top: none; border-top: none;
position: relative; position: relative;
top: 0px; top: 0;
margin: 0; margin: 0;
padding: 10px; padding: 10px;
} }
@ -139,10 +153,10 @@ input.loading {
* Bottom-right * Bottom-right
*/ */
#rightbottom { #rightbottom {
border : none; border: none;
margin-top : 4px; margin-top: 4px;
margin-left : 1px; margin-left: 1px;
border : 1px solid #808080; border: 1px solid #808080;
} }
#rightbottom form { #rightbottom form {
@ -150,14 +164,14 @@ input.loading {
} }
#rightbottom form div { #rightbottom form div {
margin-top : 3px; margin-top: 3px;
} }
#rightbottom form div.field { #rightbottom form div.field {
clear: both; clear: both;
margin-left: 10em; margin-left: 10em;
font-size: 1.2em; font-size: 12px;
border : none; border: none;
} }
#rightbottom form label.left { #rightbottom form label.left {
@ -198,8 +212,8 @@ input.loading {
* RHS Action Parameters boxes * RHS Action Parameters boxes
*/ */
#right form.actionparams { #right form.actionparams {
border: 1px #777 solid; border: 1px solid #777;
background-color: #CCC; background: #ccc;
position: absolute; position: absolute;
bottom: 32px; bottom: 32px;
right: 11px; right: 11px;
@ -241,10 +255,10 @@ input.loading {
width: 100%; width: 100%;
padding: 10% 0 0 0; padding: 10% 0 0 0;
height: 60%; height: 60%;
background-color: #CCC; background: #ccc;
font-size: 25px; font-size: 25px;
font-weight: bold; font-weight: bold;
color: white; color: #fff;
text-align: center; text-align: center;
} }
@ -265,22 +279,22 @@ input.loading {
* Autocomplete * Autocomplete
*/ */
.autocomplete { .autocomplete {
background-color: #EEEEEE; background: #eee;
margin : 0px; margin: 0;
padding : 0px; padding: 0;
} }
.autocomplete ul { .autocomplete ul {
border: 1px #AAA solid; border: 1px solid #aaa;
margin : 0px; margin: 0;
padding : 0px; padding: 0;
} }
.autocomplete li { .autocomplete li {
list-style-type: none; list-style-type: none;
cursor: pointer; cursor: pointer;
margin: 0px; margin: 0;
font-size : 12px; font-size: 12px;
padding : 3px; padding: 3px;
white-space : nowrap; white-space: nowrap;
} }
.autocomplete .data { .autocomplete .data {
display: none; display: none;
@ -289,43 +303,48 @@ input.loading {
font-style: italic; font-style: italic;
} }
/* /*
* Status * Status
*/ */
#statusMessage { #statusMessage {
position: absolute;
z-index: 500;
bottom: 3px;
left: 3px;
text-align: left;
padding: 1px 1px 1px 40px;
font-size: 16px;
font-weight: bold;
color: #660;
margin: 2px;
}
#statusMessage.good {
border-color: #9c9;
color: #060;
background: url(../images/alert-good.gif) /*#E2F9E3*/ 7px no-repeat;
}
#statusMessage.bad {
border-color: #c99;
color: #c00;
background: url(../images/alert-bad.gif) #fff 7px no-repeat;
max-height: 300px;
overflow: auto;
}
.pageStatusMessage {
position: absolute; position: absolute;
top: 0; z-index: 500;
right: 0; bottom: 3px;
background-color: #F9F9E3; left: 3px;
font-weight: bold; text-align: left;
font-size: 1.2em; padding: 2px 20px 2px 20px;
padding: 5px; font-size: 14px;
border: 1px solid #cc9; font-weight: bold;
color: #660;
background: #f4f3eb;
border: 1px solid #a9a67d;
margin: 0 2px 1px 7px;
line-height: 1.5;
} }
#statusMessage.good {
padding: 2px 20px 2px 40px;
color: #060;
background: #E2F9E3 url(../images/alert-good.gif) 7px 50% no-repeat;
border: 1px solid #8dd38d;
}
#statusMessage.bad {
padding: 2px 20px 2px 40px;
border-color: #c80700;
color: #c80700;
background: #ffe3e2 url(../images/alert-bad.gif) 7px 50% no-repeat;
max-height: 300px;
overflow: auto;
}
.pageStatusMessage {
position: absolute;
top: 0;
right: 0;
background-color: #F9F9E3;
font-weight: bold;
font-size: 12px;
padding: 5px;
border: 1px solid #cc9;
}
/** /**
* TableField Subclasses * TableField Subclasses
@ -395,14 +414,9 @@ div.originallang_holder.field.CompositeField.nolabel {
font-style: italic; font-style: italic;
} }
.originallang span.readonly{
font-size: 0.9em;
}
#Form_EditForm_URLSegment_original { #Form_EditForm_URLSegment_original {
color: #666666; color: #666;
font-style: italic; font-style: italic;
font-size: 0.9em;
} }
.right form div.languageDropdown { .right form div.languageDropdown {
@ -416,12 +430,25 @@ div.originallang_holder.field.CompositeField.nolabel {
} }
.translatingMessage { .translatingMessage {
background-color: #F9F9E3; background: #F9F9E3;
border: 1px solid #CCCC99; border: 1px solid #CCCC99;
font-size: 1.2em; font-size: 12px;
padding: 3px; padding: 3px;
} }
.nonTranslating { .nonTranslating {
display: none; display: none;
} }
/* Access tab styling */
#Viewers,
#Editors {
margin: 0;
}
#Viewers .middleColumn,
#Editors .middleColumn {
display: block;
background: none;
padding: 0;
}

View File

@ -1,50 +1,34 @@
body {
font-size: 62.5%;
}
* { * {
font-family: Arial; font-family: Arial, Helvetica, sans-serif;
font-size: 1em; }
}
p, ul, td, th { p, ul, td, th {
font-size: 1.2em; font-size: 12px;
} }
/* overrides (to avoid larger font-sizing) */ p {
ul ul, color: #666;
th p,
td p,
div ul.optionset {
font-size: 1em;
} }
ul ul { h1, h2 {
font-size: 1em; color: #0074c6;
} }
h1 { h1 {
font-size: 2em; font-size: 20px;
color: #0074C6; }
} h2 {
h2 { font-size: 18px;
font-size: 1.8em; }
color: #0074C6;
a {
color: #162f42;
text-decoration: underline;
} }
a {
color: #162F42;
text-decoration: underline;
}
a:hover { a:hover {
color: #0074C6; color: #0074c6;
text-decoration: underline; text-decoration: underline;
} }
a img { a img {
border-style: none; border-style: none;
} }
#Header a, #ProductGroups a, #Products a {
color: white;
}
#Header h1 {
color: white;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB