Last active
December 11, 2015 12:18
-
-
Save CameronGilroy/4599956 to your computer and use it in GitHub Desktop.
This is the style file for the form on the tpcode.com site
This file contains hidden or 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
/** | |
* SilverStripe Black Candy Theme | |
* http://www.silverstripe.com | |
* | |
* Form Styling | |
*/ | |
/* FIELDSETS | |
---------------------------------------- */ | |
fieldset { | |
border: 0; | |
} | |
/* ACTION BUTTONS | |
---------------------------------------- */ | |
input.action { | |
padding: 5px 10px; | |
font-size: 12px ; | |
color: #fff; | |
background: url('../images/btn-bg.png') repeat 0 0; | |
border: none; | |
-webkit-border-radius: 3px; | |
-moz-border-radius: 3px; | |
border-radius: 3px; | |
margin-top: 5px; | |
min-width: 100px; | |
} | |
input.action:hover, | |
input.action:focus { | |
cursor: pointer; | |
background: #59453a; | |
} | |
/* FIELD FORMATING | |
---------------------------------------- */ | |
form ul { | |
list-style: none; | |
} | |
.middleColumn { | |
display: block; | |
width: 430px; | |
clear: left; | |
margin-bottom: 5px; | |
} | |
#Sidebar .middleColumn { | |
margin: 0 0 0 8px; | |
display: inline; | |
} | |
div.tab .field .middleColumn { | |
clear: none !important; | |
margin: 0 !important; | |
width: auto; | |
} | |
.middleColumn .middleColumn { | |
margin-left: 0; | |
margin-right: 0; | |
padding: 0; | |
} | |
.middleColumn .message { | |
margin: 5px 0; | |
} | |
/* INPUT BOXS | |
---------------------------------------- */ | |
input.text, input[type="text"], inputtext, textarea, select { | |
padding: 5px; | |
border: none; | |
color: #302f2f; | |
font-size: 12px; | |
font-weight: bold; | |
width: 420px; | |
background: url('../images/section-bg.png') rgba(255, 255, 255, .4) repeat 0 0!important; | |
} | |
textarea { | |
font-family: Verdana, Tahoma, sans-serif; | |
font-size: 12px; | |
} | |
input:focus span, textarea:focus span { | |
border: 3px solid #000; | |
} | |
/* SELECT DROPDOWN | |
---------------------------------------- */ | |
select { | |
width: auto; | |
} | |
/* LABELS | |
---------------------------------------- */ | |
.typography label { | |
display: block; | |
font-size: 14px; | |
text-transform: uppercase; | |
padding-top: 15px; | |
padding-bottom: 2px; | |
} | |
.typography label+br { | |
display: none; | |
} | |
label.right { | |
display:inline; | |
} | |
/* SEARCH BOX | |
---------------------------------------- */ | |
#Search { | |
width: 105px; | |
} | |
input#Search_Form_SearchForm_Search { | |
width: 110px; | |
padding: 3px; | |
margin-left: -4px; | |
font-size: 12px; | |
} | |
#Sidebar input.action { | |
font-size: 12px; | |
float: right; | |
padding: 1px; | |
margin: -22px 10px 0 0; | |
} | |
/* CHECKBOXES | |
---------------------------------------- */ | |
ul.optionset { | |
margin: 0; | |
overflow: hidden; | |
} | |
ul.optionset li { | |
margin: 6px 0; | |
clear: both; | |
} | |
ul.optionset li input { | |
float: left; | |
margin: 0 6px; | |
} | |
ul.optionset li label { | |
margin: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment