Created
July 26, 2014 08:40
-
-
Save Fannon/dc6a8e9cb58ae7cd6249 to your computer and use it in GitHub Desktop.
SemanticForms.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The main CSS file for the Semantic Forms extension. | |
*/ | |
/* Override "width: 100%" setting in standard MediaWiki skins */ | |
textarea.createboxInput { | |
/* width: auto;*/ | |
} | |
textarea.mandatoryField { | |
width: auto; | |
} | |
/* Used in 'create template' page */ | |
.fieldBox { | |
border: 1px black solid; | |
background: #dddddd; | |
padding: 10px 20px 10px 20px; | |
margin: 0 20px 20px 20px; | |
} | |
/* Used in 'create form' page */ | |
.templateForm { | |
border: 1px black solid; | |
background: #dddddd; | |
padding: 0 20px 10px 20px; | |
margin-bottom: 20px; | |
} | |
/* Used in 'create form' page */ | |
.sectionForm { | |
border: 1px black solid; | |
background: #d0dae6; | |
padding: 0 20px 10px 20px; | |
margin-bottom: 20px; | |
} | |
/* Used in form pages */ | |
table.formtable { | |
/* width: 100%; */ | |
} | |
table.formtable th { | |
text-align: left; | |
vertical-align: top; | |
/* max-width: 150px; */ | |
} | |
/* another possible layout */ | |
table.formtable2 { | |
width: 100%; | |
margin: 5px 0 0; | |
padding: 0.3em 0.2em 0.2em 0.2em; | |
background: transparent; | |
border-collapse: collapse; | |
} | |
table.formtable2 th, table.formtable2 td { | |
vertical-align: top; | |
} | |
/* this makes sure that in long lists with checkboxes the checkbox and the | |
corresponding label are not torn apart by a line break */ | |
span.checkboxSpan { | |
/* 'nowrap' doesn't work in IE, unfortunately */ | |
/* white-space: nowrap; */ | |
float: left; | |
padding-right: 9px; | |
} | |
/* the "remove" and "add another" buttons used for multiple templates */ | |
input.remove, input.addanother { | |
} | |
/* this selects text and dropdown list inputs that have been set to | |
mandatory */ | |
input.mandatoryField, select.mandatoryField { | |
/* (suggested formatting) */ | |
/* border: 1px #d72227 solid; */ | |
} | |
/* a span around radiobuttons and checkboxes that are set to mandatory, | |
since some browsers don't support formatting of these elements, and a | |
span around a set of them looks nicer anyway */ | |
span.mandatoryFieldsSpan { | |
/* (suggested formatting) */ | |
/* border: 1px #d72227 solid; | |
padding: 4px; */ | |
} | |
div.infoMessage { | |
border: 1px solid #777777; | |
padding: 12px; | |
margin: 25px; | |
width: auto; | |
background: #eeeeee; | |
} | |
span.errorMessage { | |
color: red; | |
} | |
.multipleTemplateInstance { | |
background-color: #F2F2F2; | |
border: 1px solid #BBBBBB; | |
padding: 5px; | |
margin: 10px 0 10px 0; | |
border-radius: 3px; | |
} | |
.multipleTemplateInstance table { | |
width: 100%; | |
padding: 0; | |
margin: 0; | |
color: inherit; | |
background-color: inherit; | |
} | |
a.addAboveButton { | |
display: block; | |
width: 34px; | |
height: 34px; | |
background-image: url('SF_add_above.png'); | |
} | |
a.addAboveButton:hover { | |
background-image: url('SF_add_above_hover.png'); | |
} | |
a.addAboveButton:active { | |
background-image: url('SF_add_above_active.png'); | |
} | |
a.removeButton { | |
display: block; | |
width: 34px; | |
height: 34px; | |
background-image: url('SF_remove.png'); | |
} | |
a.removeButton:hover { | |
background-image: url('SF_remove_hover.png'); | |
} | |
a.removeButton:active { | |
background-image: url('SF_remove_active.png'); | |
} | |
td.instanceRearranger { | |
max-width: 15px; | |
} | |
img.rearrangerImage { | |
cursor: move; | |
} | |
.autoGrow { | |
overflow: hidden; | |
height: auto; | |
/* width: 326px;*/ | |
} | |
#sfForm td { | |
margin: 0; | |
padding: 2px 4px | |
} | |
#sfForm .createboxInput, | |
#sfForm .mandatoryField, | |
#sfForm textarea { | |
margin-left: 0; | |
border-radius: 3px; | |
border: 1px solid #BBB; | |
padding: 4px 8px; | |
} | |
#sfForm fieldset { | |
border: 1px dotted #BBB; | |
} | |
#sfForm textarea { | |
border-radius: 3px; | |
border: 1px solid #BBB; | |
padding: 4px 8px; | |
} | |
#sfForm input#wpSummary, | |
#sfForminput#wpSummary:hover { | |
border-radius: 3px; | |
border: 1px solid #BBB; | |
padding: 4px 8px; | |
} | |
#sfForm .mandatoryField { | |
border: 1px solid #FFB93D; | |
} | |
/* Override some jQuery UI settings */ | |
.ui-button { | |
margin-left: -1px; | |
} | |
.ui-button-icon-only .ui-button-text { | |
padding: 0.35em; | |
} | |
button.ui-button-icon-only { | |
width: 1.7em; | |
height: 1.5em; | |
vertical-align: bottom; | |
margin-top: 0.2em; | |
} /* button elements seem to need a little more width */ | |
input.hasDatepicker, | |
input.hasDatepicker:hover { | |
border-radius: 3px; | |
border: 1px solid #BBB; | |
padding: 4px 8px; | |
} | |
button.ui-datepicker-trigger { | |
border-radius: 3px; | |
border: 1px solid #BBB; | |
padding: 4px 8px; | |
margin-left: 4px; | |
} | |
/* Override CSS from Header Tabs extension, if tabs are used in the form */ | |
input.sfComboBoxActual { | |
border: 1px solid #a6a6a6; | |
} | |
/* Override Select2 Style */ | |
.select2-drop-active { | |
border: 1px solid #999; | |
} | |
.select2-container-active .select2-choices, | |
.select2-container-active .select2-choice { | |
border: 1px solid #999 !important; | |
box-shadow: none !important; | |
} | |
.select2-container-multi .select2-choices { | |
padding: 2px 0; | |
} | |
.select2-container-multi .select2-choices .select2-search-choice { | |
padding: 4px 5px 4px 18px; | |
background: #EEE; | |
} | |
.select2-container .select2-choice .select2-arrow { | |
border-radius: 0; | |
} | |
.select2-container .select2-choice > .select2-chosen { | |
color: #000; | |
} | |
.sf-select2-dropdown .select2-results .select2-highlighted { | |
background-color: #555; | |
} | |
.select2-choices, | |
.select2-choice { | |
border-radius: 3px 3px 0 0; | |
border: 1px solid #BBB; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment