engine/app/assets/stylesheets/locomotive/formtastic_changes.scss

382 lines
7.9 KiB
SCSS
Raw Normal View History

@import "compass/css3";
@import "compass/css3/border-radius";
@import "compass/css3/images";
@import "compass/css3/text-shadow";
@import "helpers";
@import "buttons";
form.formtastic {
fieldset {
margin-bottom: 20px;
padding-bottom: 1px;
legend {
display: block;
width: 918px;
padding: 5px 0px;
background: #ebedf4;
border: 1px solid #ccced7;
border-bottom-width: 0px;
@include border-top-radius(8px);
@include background-image(linear-gradient(#ebedf4, #d7dbe7));
span {
padding-left: 20px;
2011-11-25 11:31:18 +00:00
line-height: 20px;
font-size: 13px;
font-weight: bold;
@include single-text-shadow(#fff, 1px, 1px, 1px);
}
} // legend
&.foldable {
2011-11-25 11:31:18 +00:00
legend span {
cursor: pointer;
2011-11-25 11:31:18 +00:00
padding-right: 15px;
background: transparent image-url("locomotive/form/folded-arrow-on.png") no-repeat right center;
}
&.folded legend {
@include border-bottom-radius(8px);
@include box-shadow(rgba(0, 0, 0, 0.4) 0px 1px 0px 0px);
border-bottom-width: 1px;
2011-11-25 11:31:18 +00:00
span {
background-image: image-url("locomotive/form/folded-arrow-off.png");
}
}
} // .foldable
.list {
.empty {
text-align: left;
}
li, .entry, .new-entry {
position: relative;
margin-bottom: 10px;
height: 30px;
line-height: 30px;
padding: 0 10px;
background: #fff;
@include border-radius(16px);
@include box-shadow(rgba(0, 0, 0, 0.2) 0px 1px 0px 0px);
em {
color: #757575;
font-size: 11px;
font-weight: normal;
}
strong {
color: #17171D;
font-size: 14px;
font-weight: bold;
}
.editable {
@include editable;
padding-right: 6px;
&:hover {
background-image: none;
}
}
span.inline-errors {
margin-left: 10px;
padding: 2px 3px;
background: #FFE5E5;
color: #CE2525;
font-size: 13px;
}
span.actions {
position: absolute;
top: 0px;
right: 10px;
a.add {
@include gray-button;
padding-left: 10px;
}
a.remove {
display: inline-block;
width: 16px;
height: 16px;
position: relative;
top: 4px;
outline: none;
background: transparent image-url("locomotive/list/icons/trash_off.png") repeat 0 0;
text-indent: -9999px;
&:hover {
background-image: image-url("locomotive/list/icons/trash.png");
}
}
}
&:last-child {
margin-bottom: 0px;
}
} // li
> hr {
margin: 10px 0px;
height: 1px;
line-height: 1px;
border: 0px;
border-top: 1px solid rgba(0, 0, 0, 0.2);
background: transparent;
}
.new-entry {
}
} // div.list
ol {
margin-bottom: 0px;
padding: 0px;
width: 918px;
border: 1px solid #ccced7;
@include border-bottom-radius(8px);
@include box-shadow(rgba(0, 0, 0, 0.4) 0px 1px 0px 0px, rgba(255, 255, 255, 0.5) 0 1px 0 0 inset);
background: #ebedf4;
> li.input {
margin: 0;
padding: 10px 20px 16px 20px;
background: transparent image-url("locomotive/form/input-sep.png") repeat-x 0 bottom;
&:last-child, &.last {
background: none;
margin-bottom: 0px;
}
label, .label {
float: left;
width: 160px;
padding: 0px 0 0 0px;
font-size: 13px;
text-align: left;
color: #585A69;
@include single-text-shadow(#fff, 1px, 1px, 1px);
}
p.inline-hints {
margin: 5px 0 0 160px;
a {
color: #1f82bc;
}
.code {
background-color: #c8cad0;
color: #5E5F64;
@include single-text-shadow(rgba(255, 255, 255, 0.8), 0px, 1px, 1px);
}
} // p.inline-hints
div.list {
margin-left: 160px;
}
div.inline-errors {
margin: 2px 0 0 160px;
padding: 8px 0 0 0;
background: transparent image-url("locomotive/form/error-arrow.png") no-repeat 17px 0;
p {
display: inline-block;
width: auto;
margin: 0px;
padding: 3px 12px 4px 30px;
background: #cd0f19 image-url("locomotive//form/icons/error.png") no-repeat 10px 6px;
color: #fff !important;
@include single-text-shadow(#000, 0px, 1px, 1px);
}
} // div.inline-errors
&.string, &.password {
label {
padding-top: 2px;
}
input[type=text], input[type=password] {
@include default-input-style;
width: 700px;
}
&.highlighted {
label {
padding-top: 7px;
}
input[type=text] {
font-size: 20px;
}
}
&.em-inline-hints {
p.inline-hints {
color: #1F82BC !important;
}
}
} // li.string
&.code {
textarea, .CodeMirror-scroll {
height: 400px;
}
textarea {
@include default-input-style;
width: 868px;
}
&.small {
textarea, .CodeMirror-scroll {
height: 60px;
}
}
div.inline-errors, p.inline-hints {
margin-left: 0px;
}
.more {
text-align: right;
width: auto;
margin: 10px 0px 0 0;
line-height: 0.6em;
a {
@include hover-link;
color: #787A89;
&.picture {
padding-left: 23px;
background: transparent image-url("locomotive/icons/asset_add.png") no-repeat left 1px;
}
}
}
} // li.code
&.subdomain {
em {
color: #222;
}
input[type=text] {
@include path-input-style;
}
} // li.subdomain
&.empty {
.list {
em.editable {
font-size: 14px;
color: #17171D;
font-weight: bold;
}
input[type=text].path {
@include path-input-style;
}
}
} // li.empty
&.no-label {
padding-top: 6px;
.list {
margin-left: 0;
.entry {
margin-top: 10px;
margin-bottom: 0px;
}
}
} // li.no-label
&#site_memberships_input {
.entry {
em.email {
margin-left: 10px;
}
.role {
position: absolute;
top: 0px;
right: 30px;
width: 170px;
line-height: 30px;
em {
padding-left: 17px;
margin-left: 0px;
background-repeat: no-repeat;
color: #757575;
font-size: 13px;
font-weight: normal;
&.locked {
background-image: image-url("locomotive/icons/membership_lock.png");
background-position: 1px 0px;
}
&.editable {
background-image: image-url("locomotive//icons/membership_edit.png");
background-position: 0px 3px;
}
}
}
}
} // > li#site_memberships_input
} // > li
} //ol
} // fieldset
}