コピペでできる!cssとhtmlのみで作るいい感じのメールフォーム 4選

CSS HTML
 
 

フォームはサイトにはかならず必要になってくるアイテムですが、わかりやすく間違えにくいものにしたいですよね。
cssとhtmlのみで作るいい感じのメールフォームセットをご用意しました。
メールフォームのデザインベースなどにお使いください。

browser:  65 11 20 10 

いい感じのメールフォーム[4種]

シンプルなメールフォーム

ニャン易度
<div class="cp_form">
<form>
<h1>Contact Form Sample</h1>
<div class="cp_group">
	<input type="text" required="required" />
	<label class="cp_label" for="input">Textfield</label>
	<i class="bar"></i>
</div>
<div class="cp_group">
	<textarea required="required"></textarea>
	<label class="cp_label" for="textarea">Textarea</label>
	<i class="bar"></i>
</div>
<div class="cp_group cp_ipselect">
	<select class="cp_sl" required>
	<option value="" hidden disabled selected></option>
	<option value="1">cat</option>
	<option value="2">dog</option>
	<option value="3">rabbit</option>
	<option value="4">squirrel</option>
	</select>
	<label class="cp_sl_selectlabel">Select</label>
	<i class="bar"></i>
</div>
<div class="checkbox">
	<label>
	<input type="checkbox" checked="checked"/>
	<i class="ch_bar"></i>checkbox1
	</label>
</div>
<div class="checkbox">
	<label>
	<input type="checkbox"/>
	<i class="ch_bar"></i>checkbox2
	</label>
</div>
<div class="cp_radio">
	<div class="radio">
		<label>
		<input type="radio" name="radio" checked="checked"/>
		<i class="ch_bar"></i>radiobutton1
		</label>
	</div>
	<div class="radio">
		<label>
		<input type="radio" name="radio"/>
		<i class="ch_bar"></i>radiobutton2
		</label>
	</div>
</div>
<div class="cp_group">
	<div class="cp_file">
		<label>
			<div class="button">Choose File</div>
			<input type="file" class="file_input" name="file" />
			<div class="file_text">No file selected</div>
		</label>
	</div>
</div>
</form>
<div class="btn_cont">
	<button class="btn" type="button"><span>Submit</span></button>
</div>
</div>
.cp_form {
	position: relative;
	width: 600px;
	margin: 40px auto;
	padding: 1em 2em;
	box-shadow:0px 0px 3px 2px #ededed;
}
.cp_form .cp_radio, .cp_group {
	position: relative;
	margin-top: 2.25rem;
	margin-bottom: 2.25rem;
}
.cp_form .cp_group input[type=button],
.cp_form .cp_group input[type=submit],
.cp_form .cp_group input[type=checkbox],
.cp_form .cp_group input[type=radio],
.cp_form .cp_group input[type=text],
.cp_form .cp_group input[type=tel],
.cp_form .cp_group input[type=password],
.cp_form .cp_group input[type=email],
.cp_form .cp_group input[type=url],
.cp_form .cp_group input[type=date],
.cp_form .cp_group input[type=number],
.cp_form .cp_group textarea,
.cp_form .cp_group .cp_file .file_text,
.cp_form .cp_group select {
	font-family: inherit;
}
.cp_form .cp_group input {
	height: 1.9rem;
}
.cp_form .cp_group textarea {
	resize: vertical;
}
.cp_form .cp_group select::-ms-expand {
	display: none;
}
.cp_form .cp_ipselect {
	position: relative;
	width: 100%;
	margin: 2em auto;
}
.cp_form .cp_sl {
	position: relative;
	font-size: 1rem;
	font-family: inherit;
	background-color: transparent;
	width: 100%;
	padding: 10px 10px 10px 0;
	border-radius: 0;
	border: none;
}
.cp_form .cp_sl:focus {
	outline: none;
	border-bottom: 1px solid rgba(0,0,0, 0);
}
.cp_form .cp_ipselect .cp_sl {
	-webkit-appearance: none;
	        appearance: none;
}
.cp_form .cp_ipselect:after {
	position: absolute;
	top: 18px;
	right: 10px;
	width: 0;
	height: 0;
	padding: 0;
	content: '';
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid rgba(0, 0, 0, 0.3);
	pointer-events: none;
}
.cp_form .cp_sl_selectlabel {
	color: #b3b3b3;
	position: absolute;
	pointer-events: none;
	left: 0;
	top: 10px;
	transition: 0.2s ease all;
}
.cp_form .cp_sl:focus ~ .cp_sl_selectlabel,
.cp_form .cp_sl:valid ~ .cp_sl_selectlabel {
	font-size: 0.8rem;
	color: #da3c41;
	top: -20px;
	transition: 0.2s ease all;
}
.cp_form .cp_sl_selectbar {
	position: relative;
	display: block;
	width: 100%;
}
.cp_form .cp_sl_selectbar:before,
.cp_form .cp_sl_selectbar:after {
	content: '';
	height: 2px;
	width: 0;
	bottom: 1px;
	position: absolute;
	background: #da3c41;
	transition: 0.2s ease all;
}
.cp_form .cp_sl_selectbar:before {
	left: 50%;
}
.cp_form .cp_sl_selectbar:after {
	right: 50%;
}
.cp_form .cp_sl:focus ~ .cp_sl_selectbar:before,
.cp_form .cp_sl:focus ~ .cp_sl_selectbar:after {
	width: 50%;
}
.cp_form .cp_sl_highlight {
	position: absolute;
	top: 25%;
	left: 0;
	pointer-events: none;
	opacity: 0.5;
}
.cp_form .cp_group .cp_label {
	position: absolute;
	top: 0.25rem;
	pointer-events: none;
	padding-left: 0.125rem;
	z-index: 1;
	color: #b3b3b3;
	font-size: 1rem;
	font-weight: normal;
	-webkit-transition: all 0.28s ease;
	        transition: all 0.28s ease;
}
.cp_form .cp_group .bar {
	position: relative;
	border-bottom: 0.0625rem solid #999999;
	display: block;
}
.cp_form .cp_group .bar::before {
	content: '';
	height: 0.125rem;
	width: 0;
	left: 50%;
	bottom: -0.0625rem;
	position: absolute;
	background: #da3c41;
	-webkit-transition: left 0.28s ease, width 0.28s ease;
	        transition: left 0.28s ease, width 0.28s ease;
	z-index: 2;
}
.cp_form .cp_group input[type=button],
.cp_form .cp_group input[type=submit],
.cp_form .cp_group input[type=checkbox],
.cp_form .cp_group input[type=radio],
.cp_form .cp_group input[type=text],
.cp_form .cp_group input[type=tel],
.cp_form .cp_group input[type=password],
.cp_form .cp_group input[type=email],
.cp_form .cp_group input[type=url],
.cp_form .cp_group input[type=date],
.cp_form .cp_group input[type=number],
.cp_form .cp_group textarea {
	display: block;
	background: none;
	padding: 0.125rem 0.125rem 0.0625rem;
	font-size: 1rem;
	border-width: 0;
	border-color: transparent;
	line-height: 1.9;
	width: 100%;
	color: transparent;
	-webkit-transition: all 0.28s ease;
	        transition: all 0.28s ease;
	-webkit-box-shadow: none;
	        box-shadow: none;
}
.cp_form .cp_group select,
.cp_form .cp_group input:focus,
.cp_form .cp_group input:valid,
.cp_form .cp_group textarea:focus,
.cp_form .cp_group textarea:valid {
	color: #333333;
}
.cp_form .cp_group select ~ .cp_label,
.cp_form .cp_group input:focus ~ .cp_label,
.cp_form .cp_group input:valid ~ .cp_label,
.cp_form .cp_group textarea:focus ~ .cp_label,
.cp_form .cp_group textarea:valid ~ .cp_label {
	font-size: 0.8rem;
	color: #da3c41;
	top: -1rem;
	left: 0;
}
.cp_form .cp_group select:hover,
.cp_form .cp_group input:focus,
.cp_form .cp_group textarea:focus {
	outline: none;
}
.cp_form .cp_group select:hover ~ .cp_label,
.cp_form .cp_group input:focus ~ .cp_label,
.cp_form .cp_group textarea:focus ~ .cp_label {
	color: #da3c41;
}
.cp_form .cp_group select:hover ~ .bar::before,
.cp_form .cp_group input:focus ~ .bar::before,
.cp_form .cp_group textarea:focus ~ .bar::before {
	width: 100%;
	left: 0;
}
.cp_form .checkbox label,
.cp_form .cp_radio label {
	position: relative;
	cursor: pointer;
	padding-left: 2rem;
	text-align: left;
	color: #333333;
	display: block;
}
.cp_form .checkbox input,
.cp_form .cp_radio input {
	width: auto;
	opacity: 0.00000001;
	position: absolute;
	left: 0;
}
.cp_form .radio {
	margin-bottom: 1rem;
}
.cp_form .radio .ch_bar {
	position: absolute;
	top: -0.25rem;
	left: -0.25rem;
	cursor: pointer;
	display: block;
	font-size: 1rem;
	-webkit-user-select: none;
	        user-select: none;
	color: #999999;
}
.cp_form .radio .ch_bar::before,
.cp_form .radio .ch_bar::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	margin: 0.25rem;
	width: 1rem;
	height: 1rem;
	-webkit-transition: -webkit-transform 0.28s ease;
	        transition:         transform 0.28s ease;
	border-radius: 50%;
	border: 0.125rem solid currentColor;
}
.cp_form .radio .ch_bar::after {
	-webkit-transform: scale(0);
	        transform: scale(0);
	background-color: #da3c41;
	border-color: #da3c41;
}
.cp_form .radio label:hover .ch_bar {
	color: #da3c41;
}
.cp_form .radio input:checked ~ .ch_bar::after {
	-webkit-transform: scale(0.5);
	        transform: scale(0.5);
}
.cp_form .radio input:checked ~ .ch_bar::before {
	color: #da3c41;
}
.cp_form .checkbox {
	margin-top: 3rem;
	margin-bottom: 1rem;
}
.cp_form .checkbox .ch_bar {
	color: #999999;
	position: absolute;
	top: 0;
	left: 0;
	width: 1rem;
	height: 1rem;
	z-index: 0;
	border: 0.125rem solid currentColor;
	border-radius: 0.0625rem;
	-webkit-transition: border-color 0.28s ease;
	        transition: border-color 0.28s ease;
}
.cp_form .checkbox .ch_bar::before,
.cp_form .checkbox .ch_bar::after {
	position: absolute;
	height: 0;
	width: 0.2rem;
	background-color: #da3c41;
	display: block;
	-webkit-transform-origin: left top;
	        transform-origin: left top;
	border-radius: 0.25rem;
	content: '';
	-webkit-transition: opacity 0.28s ease, height 0s linear 0.28s;
	        transition: opacity 0.28s ease, height 0s linear 0.28s;
	opacity: 0;
}
.cp_form .checkbox .ch_bar::before {
	top: 0.65rem;
	left: 0.38rem;
	-webkit-transform: rotate(-135deg);
	        transform: rotate(-135deg);
	-webkit-box-shadow: 0 0 0 0.0625rem #ffffff;
	        box-shadow: 0 0 0 0.0625rem #ffffff;
}
.cp_form .checkbox .ch_bar::after {
	top: 0.3rem;
	left: 0;
	-webkit-transform: rotate(-45deg);
	        transform: rotate(-45deg);
}
.cp_form .checkbox label:hover .ch_bar {
	color: #da3c41;
}
.cp_form .checkbox input:checked ~ .ch_bar {
	color: #da3c41;
}
.cp_form .checkbox input:checked ~ .ch_bar::after,
.cp_form .checkbox input:checked ~ .ch_bar::before {
	opacity: 1;
	-webkit-transition: height 0.28s ease;
	        transition: height 0.28s ease;
}
.cp_form .checkbox input:checked ~ .ch_bar::after {
	height: 0.5rem;
}
.cp_form .checkbox input:checked ~ .ch_bar::before {
	height: 1.2rem;
	-webkit-transition-delay: 0.28s;
	        transition-delay: 0.28s;
}
.cp_form .radio + .radio,
.cp_form .checkbox + .checkbox {
	margin-top: 1rem;
}
/* File input */
.cp_form .cp_group .cp_file {
	position: relative;
}
.cp_form .cp_group .cp_file .title {
	position: static;
}
.cp_form .cp_group .cp_file .button {
	font-size: 1em;
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	bottom: 0;
	padding: .5rem 1.2em 0 1.2em;
	cursor: pointer;
	-webkit-transition: background-color 0.25s;
	        transition: background-color 0.25s;
	color: #ffffff;
	border-radius: 0;
	background-color: #999999;
}
.cp_form .cp_group .cp_file .file_input {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	padding: 0;
	cursor: pointer;
	opacity: 0;
	filter: alpha(opacity=0);
	-webkit-appearance: none;
					appearance: none;
}
.cp_form .cp_group .cp_file .file_text {
	position: relative;
	box-sizing: border-box;
	padding: 6px 10px;
	-webkit-transition: border-color 0.6s;
	        transition: border-color 0.6s;
	border-bottom: 0.0625rem solid #999999;
	outline: none;
}
.cp_form .cp_group .cp_file .file_text::before {
	content: '';
	height: 2px;
	width: 0;
	left: 50%;
	bottom: -1px;
	position: absolute;
	background: #da3c41;
	-webkit-transition: left 0.28s ease, width 0.28s ease;
	        transition: left 0.28s ease, width 0.28s ease;
	z-index: 2;
}
.cp_form .cp_group .cp_file .file_input:hover ~ .file_text::before {
	width: 100%;
	left: 0;
}
.cp_form .cp_group .cp_file label:hover .button {
	background-color: #da3c3c;
}
.cp_form .cp_group .cp_file label:active .button {
	background-color: #b02f2f;
}
.cp_form .btn_cont {
	text-align: center;
}
.cp_form .btn {
	position: relative;
	background: currentColor;
	border: 1px solid currentColor;
	font-size: 1.1rem;
	color: #da3c41;
	margin: 3rem 0;
	padding: 0.75rem 3rem;
	cursor: pointer;
	-webkit-transition: background-color 0.28s ease, color 0.28s ease, -webkit-box-shadow 0.28s ease;
	        transition: background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
	overflow: hidden;
	-webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.3);
	        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.3);
}
.cp_form .btn span {
	color: #ffffff;
	position: relative;
	z-index: 1;
}
.cp_form .btn::before {
	content: '';
	position: absolute;
	background: #071017;
	border: 50vh solid #1d4567;
	width: 30vh;
	height: 30vh;
	border-radius: 50%;
	display: block;
	top: 50%;
	left: 50%;
	z-index: 0;
	opacity: 1;
	-webkit-transform: translate(-50%, -50%) scale(0);
	        transform: translate(-50%, -50%) scale(0);
}
.cp_form .btn:hover {
	color: #3f51b5;
	-webkit-box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3);
	        box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3);
}
.cp_form .btn:focus {
	outline: none;
}

フィールド内に下から項目が出てくる

ニャン易度
 <div class="cp_form">
 <form class="go-bottom">
 <h2>Contact Form Sample</h2>
 <div class="cp_tx">
 	<input id="name" name="name" type="text" required>
 	<label for="name">Textfield</label>
 </div>
 <div class="cp_tx">
 	<input id="phone" name="phone" type="tel" required>
 	<label for="phone">Phone</label>
 </div>
 <div class="cp_tx">
 	<textarea id="message" name="message" required></textarea>
 	<label for="message">Message</label>
 </div>
 <div class="cp_ipselect cp_sl01">
 <select required>
 	<option value="" hidden>Choose</option>
 	<option value="1">cat</option>
 	<option value="2">dog</option>
 	<option value="3">rabbit</option>
 	<option value="4">squirrel</option>
 </select>
 </div>
 <div class="cp_input">
 <div class="cp_ipcheck">
 	Checkbox
 	<input type="checkbox" id="c_ch1" checked />
 	<label for="c_ch1">cat</label>
 	<input type="checkbox" id="c_ch2" />
 	<label for="c_ch2">dog</label>
 	<input type="checkbox" id="c_ch3" />
 	<label for="c_ch3">rabbit</label>
 </div>
 </div>
 <div class="cp_input">
 <div class="cp_ipradio">
 	RadioButton
 	<input type="radio" name="cpipr04" id="b_rb1" value="1">
 	<label for="b_rb1">cat</label>
 	<input type="radio" name="cpipr04" id="b_rb2" value="2">
 	<label for="b_rb2">dog</label>
 	<input type="radio" name="cpipr04" id="b_rb3" value="3" checked>
 	<label for="b_rb3">rabbit</label>
 </div>
 </div>
 <div class="cp_ipfile">
 	<label>
 		<div class="button">Choose File</div>
 		<input type="file" class="file_input" name="file" />
 		<div class="file_text">No file selected</div>
 	</label>
 </div>
 <div class="cp_btn">
 <div class="btn_cont">
 	<button class="btn" type="button"><span>Submit</span></button>
 </div>
 </div>
.cp_form {
	position: relative;
	width: 600px;
	margin: 40px auto;
	padding: 1em 2em;
	box-shadow:0px 0px 3px 2px #ededed;
}
.cp_form form.go-bottom > .cp_tx {
	position: relative;
	width: 100%;
	margin: 1em 0;
}
.cp_form form.go-bottom input[type=button],
.cp_form form.go-bottom input[type=submit],
.cp_form form.go-bottom input[type=checkbox],
.cp_form form.go-bottom input[type=radio],
.cp_form form.go-bottom input[type='text'],
.cp_form form.go-bottom input[type='tel'],
.cp_form form.go-bottom input[type=password],
.cp_form form.go-bottom input[type=email],
.cp_form form.go-bottom input[type=url],
.cp_form form.go-bottom input[type=date],
.cp_form form.go-bottom input[type=number],
.cp_form form.go-bottom .cp_ipfile .file_text,
.cp_form form.go-bottom textarea {
	font-family: inherit;
	font-size: 1rem;
	position: relative;
	z-index: 1;
	top: 0;
	left: 0;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #cccccc;
	outline: 0;
	background: none;
}
.cp_form form.go-bottom input[type=password]:valid,
.cp_form form.go-bottom input[type=email]:valid,
.cp_form form.go-bottom input[type=url]:valid,
.cp_form form.go-bottom input[type=date]:valid,
.cp_form form.go-bottom input[type=number]:valid,
.cp_form form.go-bottom input[type='text']:valid,
.cp_form form.go-bottom input[type='tel']:valid,
.cp_form form.go-bottom textarea:valid {
	background: #e7fcff;/*背景色*/
}
.cp_form form.go-bottom input[type=password]:focus,
.cp_form form.go-bottom input[type=email]:focus,
.cp_form form.go-bottom input[type=url]:focus,
.cp_form form.go-bottom input[type=date]:focus,
.cp_form form.go-bottom input[type=number]:focus,
.cp_form form.go-bottom input[type='text']:focus,
.cp_form form.go-bottom input[type='tel']:focus,
.cp_form form.go-bottom textarea:focus {
	border-color: #da3c41;
}
.cp_form form.go-bottom input[type=password]:focus + label,
.cp_form form.go-bottom input[type=email]:focus + label,
.cp_form form.go-bottom input[type=url]:focus + label,
.cp_form form.go-bottom input[type=date]:focus + label,
.cp_form form.go-bottom input[type=number]:focus + label,
.cp_form form.go-bottom input[type='text']:focus + label,
.cp_form form.go-bottom input[type='tel']:focus + label,
.cp_form form.go-bottom textarea:focus + label {
	font-size: 0.7em;
	line-height: 1.2;
	z-index: 2;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	width: 100%;
	padding: 1px 6px 2px 6px;
	text-transform: uppercase;
	color: #ffffff;
	background: #da3c41;
}
.cp_form form.go-bottom .cp_tx label {
	position: absolute;
	padding: 7px 6px;
	transition: background 0.2s, color 0.2s, top 0.2s, bottom 0.2s, right 0.2s, left 0.2s;
	color: #999999;
}
.cp_form form.go-bottom textarea {
	display: block;
	resize: vertical;
}
.cp_form form.go-bottom input[type=password],
.cp_form form.go-bottom input[type=email],
.cp_form form.go-bottom input[type=url],
.cp_form form.go-bottom input[type=date],
.cp_form form.go-bottom input[type=number],
.cp_form form.go-bottom input[type='text'],
.cp_form form.go-bottom input[type='tel'],
.cp_form form.go-bottom textarea {
	padding: 12px 12px 12px 12px;
}
.cp_form form.go-bottom label {
	top: 0;
	bottom: 0;
	left: 0;
}
.cp_form form.go-bottom input[type=password]:focus + label,
.cp_form form.go-bottom input[type=email]:focus + label,
.cp_form form.go-bottom input[type=url]:focus + label,
.cp_form form.go-bottom input[type=date]:focus + label,
.cp_form form.go-bottom input[type=number]:focus + label,
.cp_form form.go-bottom input[type='text']:focus + label,
.cp_form form.go-bottom input[type='tel']:focus + label,
.cp_form form.go-bottom textarea:focus + label {
	top: 100%;
	margin-top: -16px;
}
.cp_ipselect {
	overflow: hidden;
	width: 100%;
	margin: 1em auto;
	text-align: center;
}
.cp_ipselect select {
	font-family: inherit;
	font-size: 1rem;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	width: 100%;
	padding-right: 1em;
	cursor: pointer;
	text-indent: 0.01px;
	text-overflow: ellipsis;
	border: none;
	border-radius: 0;
	outline: none;
	background: transparent;
	background-image: none;
	box-shadow: none;
	-webkit-appearance: none;
	        appearance: none;
}
.cp_ipselect select::-ms-expand {
	display: none;
}
.cp_ipselect.cp_sl01 {
	position: relative;
	border: 1px solid #cccccc;
	border-radius: 2px;
}
.cp_ipselect.cp_sl01::before {
	position: absolute;
	top: 1em;
	right: 0.9em;
	width: 0;
	height: 0;
	padding: 0;
	content: '';
	pointer-events: none;
	border-top: 6px solid #da3c41;
	border-right: 6px solid transparent;
	border-left: 6px solid transparent;
}
.cp_ipselect.cp_sl01 select {
	padding: 8px 38px 8px 8px;
	color: #999999;
}
.cp_ipselect.cp_sl01 select:valid {
	color: #333333;
}
.cp_input {
	display: inline-block;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	width: 49%;
	padding: 8px 12px;
	color: #999999;
}
.cp_ipcheck, .cp_ipradio {
	position: relative;
	text-align: left;
}
.cp_ipcheck input, .cp_ipradio input {
	display: none;
}
.cp_ipcheck label, .cp_ipradio label {
	position: relative;
	display: block;
	padding: 0.5em 0;
	padding-right: 35px;
	cursor: pointer;
	color: #333333;
	border-bottom: 1px solid #cccccc;
}
.cp_ipcheck input[type='checkbox'],
.cp_ipradio input[type='radio'] {
	position: absolute;
	visibility: hidden !important;
}
.cp_ipcheck input[type='checkbox'] + label:before,
.cp_ipcheck input[type='checkbox'] + label:after,
.cp_ipradio input[type='radio'] + label:before,
.cp_ipradio input[type='radio'] + label:after {
	position: absolute;
	top: 50%;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	margin-top: -7.5px;
	content: '';
}
.cp_ipcheck input[type='checkbox'] + label:before,
.cp_ipradio input[type='radio'] + label:before {
	right: 0;
	width: 30px;
	height: 15px;
	border: 1px solid #cccccc;
	border-radius: 15px;
	background: #ffffff;
}
.cp_ipcheck input[type='checkbox'] + label:after,
.cp_ipradio input[type='radio'] + label:after {
	right: 15px;
	width: 15px;
	height: 15px;
	-webkit-transition: all 200ms ease-out;
	        transition: all 200ms ease-out;
	border-radius: 50%;
	background: #cccccc;
}
.cp_ipcheck input[type='checkbox']:checked + label:after,
.cp_ipradio input[type='radio']:checked + label:after {
	right: 0;
	background: #da3c41;
}
/* File input */
.cp_form .cp_ipfile {
	position: relative;
	margin: 1em auto;
}
.cp_form .cp_ipfile .title {
	position: static;
}
.cp_form .cp_ipfile .button {
	font-size: .6em;
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	bottom: 0;
	padding: .5rem 1.2em 0 1.2em;
	cursor: pointer;
	-webkit-transition: background-color 0.25s;
	        transition: background-color 0.25s;
	color: #ffffff;
	border-radius: 0;
	background-color: #999999;
}
.cp_form .cp_ipfile .file_input {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	padding: 0;
	cursor: pointer;
	opacity: 0;
	filter: alpha(opacity=0);
	-webkit-appearance: none;
					appearance: none;
}
.cp_form .cp_ipfile .file_text {
	position: relative;
	box-sizing: border-box;
	padding: 0em 10px 0.5em 10px;
	-webkit-transition: border-color 0.6s;
	        transition: border-color 0.6s;
	border-bottom: 0.0625rem solid #999999;
	outline: none;
}
.cp_form .cp_ipfile .file_text::before {
	content: '';
	height: 2px;
	width: 0;
	right: 0%;
	bottom: -1px;
	position: absolute;
	background: #da3c41;
	-webkit-transition: left 0.28s ease, width 0.28s ease;
	        transition: left 0.28s ease, width 0.28s ease;
	z-index: 2;
}
.cp_form .cp_ipfile .file_input:hover ~ .file_text::before {
	width: 100%;
	right: 0;
}
.cp_form .cp_ipfile label:hover .button {
	background-color: #da3c3c;
}
.cp_form .cp_ipfile label:active .button {
	background-color: #b02f2f;
}
/*btn*/
.cp_form .cp_btn {
	width: 100%;
	margin: 2em auto;
	text-align: center;
}
.cp_form .btn_cont {
	text-align: center;
}
.cp_form .btn {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 0 auto;
	padding: 0.75rem 3em;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	color: #ffffff;
	border: solid 1px #ffffff;
	background: #da3c41;
	font-size: 1rem;
}
.cp_form .btn:before {
	position: absolute;
	top: -25px;
	left: -20px;
	width: 20px;
	height: 90px;
	content: '';
	transition: 0.3s;
	transform: rotate(40deg);
	opacity: 0.3;
	background: #ffffff;
}
.cp_form .btn:hover:before {
	left: 95%;
}

フィールド内に右から項目が出てくる

ニャン易度
<div class="cp_form03">
<form class="go-right">
<h2>Contact Form Sample</h2>
<div class="cp_tx">
	<input id="name" name="name" type="text" required>
	<label for="name">Textfield</label>
</div>
<div class="cp_tx">
	<input id="phone" name="phone" type="tel" required>
	<label for="phone">Phone</label>
</div>
<div class="cp_tx">
	<textarea id="message" name="message" required></textarea>
	<label for="message">Message</label>
</div>
<div class="cp_ipselect cp_sl01">
<select required>
	<option value="" hidden>Choose</option>
	<option value="1">cat</option>
	<option value="2">dog</option>
	<option value="3">rabbit</option>
	<option value="4">squirrel</option>
</select>
</div>
<div class="cp_input">
<div class="cp_ipcheck">
	Checkbox
	<input type="checkbox" id="c_ch1" checked />
	<label for="c_ch1">cat</label>
	<input type="checkbox" id="c_ch2" />
	<label for="c_ch2">dog</label>
	<input type="checkbox" id="c_ch3" />
	<label for="c_ch3">rabbit</label>
</div>
</div>
<div class="cp_input">
<div class="cp_ipradio">
	RadioButton
	<input type="radio" name="cpipr04" id="b_rb1" value="1">
	<label for="b_rb1">cat</label>
	<input type="radio" name="cpipr04" id="b_rb2" value="2">
	<label for="b_rb2">dog</label>
	<input type="radio" name="cpipr04" id="b_rb3" value="3" checked>
	<label for="b_rb3">rabbit</label>
</div>
</div>
<div class="cp_ipfile">
	<label>
		<div class="button">Choose File</div>
		<input type="file" class="file_input" name="file" />
		<div class="file_text">No file selected</div>
	</label>
</div>
<div class="cp_btn">
<div class="btn_cont">
	<button class="btn" type="button"><span>Submit</span></button>
</div>
</div>

</form>
</div>
.cp_form {
	position: relative;
	width: 600px;
	margin: 40px auto;
	padding: 1em 2em;
	box-shadow:0px 0px 3px 2px #ededed;
}
.cp_form form.go-right > .cp_tx {
	position: relative;
	width: 100%;
	margin: 1em 0;
}
.cp_form form.go-right input[type=password],
.cp_form form.go-right input[type=email],
.cp_form form.go-right input[type=url],
.cp_form form.go-right input[type=date],
.cp_form form.go-right input[type=number],
.cp_form form.go-right input[type='text'],
.cp_form form.go-right input[type='tel'],
.cp_form form.go-right .cp_ipfile .file_text,
.cp_form form.go-right textarea {
	font-family: inherit;
	font-size: 1rem;
	position: relative;
	z-index: 1;
	top: 0;
	left: 0;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #cccccc;
	outline: 0;
	background: none;
}
.cp_form form.go-right input[type=password]:valid,
.cp_form form.go-right input[type=email]:valid,
.cp_form form.go-right input[type=url]:valid,
.cp_form form.go-right input[type=date]:valid,
.cp_form form.go-right input[type=number]:valid,
.cp_form form.go-right input[type='text']:valid,
.cp_form form.go-right input[type='tel']:valid,
.cp_form form.go-right textarea:valid {
	background: #e7fcff;/*背景色*/
}
.cp_form form.go-right input[type=password]:focus,
.cp_form form.go-right input[type=email]:focus,
.cp_form form.go-right input[type=url]:focus,
.cp_form form.go-right input[type=date]:focus,
.cp_form form.go-right input[type=number]:focus,
.cp_form form.go-right input[type='text']:focus,
.cp_form form.go-right input[type='tel']:focus,
.cp_form form.go-right textarea:focus {
	border-color: #da3c41;
}
.cp_form form.go-right input[type=password]:focus + label,
.cp_form form.go-right input[type=email]:focus + label,
.cp_form form.go-right input[type=url]:focus + label,
.cp_form form.go-right input[type=date]:focus + label,
.cp_form form.go-right input[type=number]:focus + label,
.cp_form form.go-right input[type='text']:focus + label,
.cp_form form.go-right input[type='tel']:focus + label,
.cp_form form.go-right textarea:focus + label {
	font-size: 0.7em;
	line-height: 1.2;
	z-index: 2;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	width: 100%;
	padding: 1px 6px 2px 6px;
	text-transform: uppercase;
	color: #ffffff;
	background: #da3c41;
}
.cp_form form.go-right .cp_tx label {
	position: absolute;
	padding: 7px 6px;
	transition: background 0.2s, color 0.2s, top 0.2s, bottom 0.2s, right 0.2s, left 0.2s;
	color: #999999;
}
.cp_form form.go-right textarea {
	display: block;
	resize: vertical;
}
.cp_form form.go-right input[type=password],
.cp_form form.go-right input[type=email],
.cp_form form.go-right input[type=url],
.cp_form form.go-right input[type=date],
.cp_form form.go-right input[type=number],
.cp_form form.go-right input[type='text'],
.cp_form form.go-right input[type='tel'],
.cp_form form.go-right textarea {
	padding: 12px 10% 12px 12px;
}
.cp_form form.go-right .cp_tx label {
	top: 2px;
	right: 100%;
	bottom: 2px;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	width: 100%;
	margin-right: -100%;
}
.cp_form form.go-right input[type=password]:focus + label,
.cp_form form.go-right input[type=email]:focus + label,
.cp_form form.go-right input[type=url]:focus + label,
.cp_form form.go-right input[type=date]:focus + label,
.cp_form form.go-right input[type=number]:focus + label,
.cp_form form.go-right input[type='text']:focus + label,
.cp_form form.go-right input[type='tel']:focus + label,
.cp_form form.go-right textarea:focus + label {
	right: 0;
	width: 10%;
	margin-right: 0;
	padding-top: 5px;
}
.cp_form .cp_ipselect {
	overflow: hidden;
	width: 100%;
	margin: 1em auto;
	text-align: center;
}
.cp_form .cp_ipselect select {
	font-family: inherit;
	font-size: 1rem;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	width: 100%;
	padding-right: 1em;
	cursor: pointer;
	text-indent: 0.01px;
	text-overflow: ellipsis;
	border: none;
	border-radius: 0;
	outline: none;
	background: transparent;
	background-image: none;
	box-shadow: none;
	-webkit-appearance: none;
	        appearance: none;
}
.cp_form .cp_ipselect select::-ms-expand {
	display: none;
}
.cp_form .cp_ipselect.cp_sl01 {
	position: relative;
	border: 1px solid #cccccc;
	border-radius: 2px;
}
.cp_form .cp_ipselect.cp_sl01::before {
	position: absolute;
	top: 1em;
	right: 0.9em;
	width: 0;
	height: 0;
	padding: 0;
	content: '';
	pointer-events: none;
	border-top: 6px solid #da3c41;
	border-right: 6px solid transparent;
	border-left: 6px solid transparent;
}
.cp_form .cp_ipselect.cp_sl01 select {
	padding: 8px 38px 8px 8px;
	color: #999999;
}
.cp_form .cp_ipselect.cp_sl01 select:valid {
	color: #333333;
}
.cp_form .cp_input {
	display: inline-block;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	width: 49%;
	padding: 8px 12px;
	color: #999999;
}
.cp_form .cp_ipcheck,
.cp_form .cp_ipradio {
	position: relative;
	text-align: left;
}
.cp_form .cp_ipcheck input,
.cp_form .cp_ipradio input {
	display: none;
}
.cp_form .cp_ipcheck label,
.cp_form .cp_ipradio label {
	position: relative;
	display: block;
	padding: 0.5em 0;
	padding-right: 35px;
	cursor: pointer;
	color: #333333;
	border-bottom: 1px solid #cccccc;
}
.cp_form .cp_ipcheck input[type='checkbox'],
.cp_form .cp_ipradio input[type='radio'] {
	position: absolute;
	visibility: hidden !important;
}
.cp_form .cp_ipcheck input[type='checkbox'] + label:before,
.cp_form .cp_ipcheck input[type='checkbox'] + label:after,
.cp_form .cp_ipradio input[type='radio'] + label:before,
.cp_form .cp_ipradio input[type='radio'] + label:after {
	position: absolute;
	top: 50%;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	margin-top: -7.5px;
	content: '';
}
.cp_form .cp_ipcheck input[type='checkbox'] + label:before,
.cp_form .cp_ipradio input[type='radio'] + label:before {
	right: 0;
	width: 30px;
	height: 15px;
	border: 1px solid #cccccc;
	border-radius: 15px;
	background: #ffffff;
}
.cp_form .cp_ipcheck input[type='checkbox'] + label:after,
.cp_form .cp_ipradio input[type='radio'] + label:after {
	right: 15px;
	width: 15px;
	height: 15px;
	-webkit-transition: all 200ms ease-out;
	        transition: all 200ms ease-out;
	border-radius: 50%;
	background: #cccccc;
}
.cp_form .cp_ipcheck input[type='checkbox']:checked + label:after,
.cp_form .cp_ipradio input[type='radio']:checked + label:after {
	right: 0;
	background: #da3c41;
}
/* File input */
.cp_form .cp_ipfile {
	position: relative;
	margin: 1em auto;
}
.cp_form .cp_ipfile .title {
	position: static;
}
.cp_form .cp_ipfile .button {
	font-size: .8em;
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	bottom: 0;
	padding: .7rem 1.2em 0 1.2em;
	cursor: pointer;
	-webkit-transition: background-color 0.25s;
	        transition: background-color 0.25s;
	color: #ffffff;
	border-radius: 0;
	background-color: #999999;
}
.cp_form .cp_ipfile .file_input {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	padding: 0;
	cursor: pointer;
	opacity: 0;
	filter: alpha(opacity=0);
	-webkit-appearance: none;
					appearance: none;
}
.cp_form .cp_ipfile .file_text {
	position: relative;
	box-sizing: border-box;
	padding: 0em 10px 0.5em 10px;
	-webkit-transition: border-color 0.6s;
	        transition: border-color 0.6s;
	border-bottom: 0.0625rem solid #999999;
	outline: none;
}
.cp_form .cp_ipfile label:hover .button {
	background-color: #da3c3c;
}
.cp_form .cp_ipfile label:active .button {
	background-color: #b02f2f;
}
/*btn*/
.cp_form .cp_btn {
	width: 100%;
	margin: 2em auto;
	text-align: center;
}
.cp_form .btn_cont {
	text-align: center;
}
.cp_form .btn {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 0 auto;
	padding: 0.75rem 3em;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	color: #ffffff;
	border: solid 1px #ffffff;
	background: #da3c41;
	font-size: 1rem;
}
.cp_form .btn:before {
	position: absolute;
	top: -25px;
	left: -10px;
	width: 20px;
	height: 90px;
	content: '';
	transition: 0.3s;
	opacity: 0.3;
	background: #ffffff;
}
.cp_form .btn:hover:before {
	left: 90%;
}

フラットなメールフォーム

ニャン易度
<div class="cp_form">
<form class="cp_group">
	<div class="title">
		<h2>Contact Form Sample</h2></div>
	<div class="cp_tx">
		<label class="title">Textfield:</label>
		<input class="large" type="text" name="input" />
	</div>
	<div class="cp_textarea">
		<label class="title">Textarea:</label>
		<textarea class="small" name="textarea" cols="20" rows="5" ></textarea>
	</div>
	<div class="cp_select">
		<label class="title">Select:</label>
		<span>
			<select name="select" >
			<option value="" hidden disabled selected></option>
			<option value="1">cat</option>
			<option value="2">dog</option>
			<option value="3">rabbit</option>
			<option value="4">squirrel</option>
			</select>
			<i></i>
		</span>
	</div>
	<div class="cp_ipradio">
		<label class="title">radiobutton:</label>
		<div class="column column2">
			<label>
				<input type="radio" name="radio" value="radiobutton1" />
				<span>radiobutton1</span>
			</label>
		</div>
		<span class="clearfix"></span>
		<div class="column column2">
			<label>
				<input type="radio" name="radio" value="radiobutton2" />
				<span>radiobutton2</span>
			</label>
		</div>
		<span class="clearfix"></span>
	</div>
	<div class="cp_ipcheck">
		<label class="title">checkbox:</label>
		<div class="column column2">
			<label>
				<input type="checkbox" name="checkbox1" value="checkbox1" />
				<span>checkbox1</span>
			</label>
		</div>
		<span class="clearfix"></span>
		<div class="column column2">
			<label>
				<input type="checkbox" name="checkbox2" value="checkbox2" />
				<span>checkbox2</span>
			</label>
		</div>
		<span class="clearfix"></span>
	</div>
	<div class="cp_file">
		<label class="title">File:</label>
		<label class="large">
			<div class="button">Choose File</div>
			<input type="file" class="file_input" name="file" />
			<div class="file_text">No file selected</div>
		</label>
	</div>
	<div class="submit">
		<input type="submit" value="Send" />
	</div>
</form>
</div>
.cp_form .cp_group {
	position: relative;
	width: 600px;
	margin: 40px auto;
	box-shadow:0px 0px 3px 2px #ededed;
}
.cp_form .cp_group > div, .cp_group > .title {
	margin: 8px;
}
.cp_form .cp_group .column {float: left;}
.cp_form .cp_group .column1 {width: 100%;}
.cp_form .cp_group .column2 {width: 50%;}
.cp_form .cp_group .column3 {width: 33%;}
.cp_form .cp_group .column4 {width: 25%;}
.cp_form .cp_group .column5 {width: 20%;}
.cp_form .cp_group .large {width: 100%;}
.cp_form .cp_group .medium {width: 50%;}
.cp_form .cp_group .small {width: 25%;}
.cp_form .cp_group textarea.large {
	width: 100%;
	height: 20em;
}
.cp_form .cp_group textarea.medium {
	width: 100%;
	height: 10em;
}
.cp_form .cp_group textarea.small {
	width: 100%;
	height: 5.5em;
}
.cp_form .clearfix {
	*zoom: 1;
}
.cp_form .clearfix:before, .cp_form .clearfix:after {
	display: table;
	line-height: 0;
	content: '';
}
.cp_form .cp_group {
	font-size: 1em;
	line-height: 1.231;
	border: 2px solid #7f8c8d;
	border-radius: 6px;
}
.cp_form .cp_group label.title {
	font-size: 1em;
	font-weight: 500;
	width: auto;
}
.cp_form .cp_group input[type=button] {
	font-size: 1em;
	color: #666666;
	outline: none;
}
.cp_form .cp_group input[type=submit] {
	font-size: 1.2em;
	color: #666666;
	outline: none;
}
.cp_form .cp_group > div {
	position: relative;
	margin-right: 25px;
	margin-left: 25px;
}
.cp_form .cp_group h2 {
	font-size: 1.7em;
	margin: 0.2em 0;
	color: #ffffff;
}
.cp_form .cp_group h3.title {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}
.cp_form .cp_group label {
	display: block;
	clear: both;
	margin-bottom: 3px;
}
.cp_form .cp_group div, .cp_form .cp_group span,
.cp_form .cp_group label, .cp_form .cp_group input,
.cp_form .cp_group textarea, .cp_form .cp_group select,
.cp_form .cp_group button, .cp_form .cp_group ul,
.cp_form .cp_group li, .cp_form .cp_group a {
	font-family: inherit;
	color: inherit;
}
/* submit + title */
.cp_form .cp_group div.submit,
.cp_form .cp_group div.title {
	margin: 0;
	padding-top: 1em;
	padding-bottom: 1em;
}
.cp_form .cp_group div.submit {
	text-align: right;
	vertical-align: middle;
	border-top: 2px solid #bdc3c7;
	border-radius: 0 0 6px 6px;
}
.cp_form .cp_group div.title {
	background-color: #7f8c8d;
}
.cp_form .cp_group div.title h2 {
	margin-left: 27px;
}
/* element-submit + element-text */
.cp_form .cp_group > .submit,
.cp_form .cp_group > .title {
	background-color: #bcc3ca;
}
.cp_form .cp_group > .submit {
	background-color: #ecf0f1;
}
/* Button & submit*/
.cp_form .cp_group input[type=button],
.cp_form .cp_group input[type=submit] {
	display: inline-block;
	margin-bottom: 1px;
	padding: 4px 12px;
	cursor: pointer;
	-webkit-transition: border-color 0.6s;
	        transition: border-color 0.6s;
	text-align: left;
	vertical-align: middle;
	color: #666666;
	border: 2px solid #bdc3c7;
	border-radius: 6px;
	background: #ffffff;
	-webkit-appearance: none;
	        appearance: normal;
}
.cp_form .cp_group input[type=button][disabled] {
	cursor: default;
	opacity: 0.65;
}
.cp_form .cp_group input[type=submit] {
	right: 20px;
	margin-right: 27px;
	padding: 7px 15px;
	-webkit-transition: background-color 0.25s;
	        transition: background-color 0.25s;
	text-align: center;
	opacity: 1;
	color: #ffffff;
	border: none;
}
.cp_form .cp_group input[type=submit]:hover {
	text-decoration: none;
}
/* File input */
.cp_form .cp_group .cp_file label {
	position: relative;
}
.cp_form .cp_group .cp_file .title {
	position: static;
}
.cp_form .cp_group .cp_file .button {
	font-size: 1em;
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	bottom: 0;
	float: none;
	padding: 1.8% 1.2em 0 1.2em;
	cursor: pointer;
	-webkit-transition: background-color 0.25s;
	        transition: background-color 0.25s;
	color: #ffffff;
	border-radius: 0 6px 6px 0;
}
.cp_form .cp_group .cp_file .file_text {
	overflow: hidden;
	-webkit-transition: border-color 0.25s;
	        transition: border-color 0.25s;
}
.cp_form .cp_group .cp_file .file_input {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	padding: 0;
	cursor: pointer;
	opacity: 0;
	filter: alpha(opacity=0);
}
/* Radio & checkbox */
.cp_form .cp_group div.cp_ipcheck,
.cp_form .cp_group div.cp_ipradio {
	overflow: hidden;
}
.cp_form .cp_group input[type=checkbox],
.cp_form .cp_group input[type=radio] {
	font-size: 1em;
	position: absolute;
	z-index: 1;
	float: left;
	width: 1em;
	height: 1em;
	margin: 0;
	cursor: pointer;
	opacity: 0.01;
}
.cp_form .cp_group input[type=radio] + span,
.cp_form .cp_group input[type=checkbox] + span {
	height: 19px;
	margin-right: -19px;
	padding-top: 0;
	z-index: 0;
	position: relative;
	left: 0;
	top: 0;
	vertical-align: top;
	font-size: 1em;
	line-height: 0.8;
	cursor: pointer;
}
.cp_form .cp_group input[type=radio] + span:before,
.cp_form .cp_group input[type=checkbox] + span:before {
	font-family: 'FontAwesome';
	font-size: 1em;
	line-height: 1;
	position: relative;
	display: inline-block;
	width: 1em;
	margin: 0 0.2em;
	vertical-align: top;
}
/* checkbox */
.cp_form .cp_group input[type=checkbox] + span:before {
	content: '\f096';
	-webkit-transition: color 0.5s;
	        transition: color 0.5s;
}
.cp_form .cp_group input[type=checkbox]:hover + span:before {
	content: '\f046';
}
.cp_form .cp_group input[type=checkbox]:checked + span:before {
	content: '\f046';
}
/* radio */
.cp_form .cp_group input[type=radio] + span:before {
	content: '\f096';
	-webkit-transition: color 0.5s;
	        transition: color 0.5s;
}
.cp_form .cp_group input[type=radio]:hover + span:before {
	content: '\f0c8';
}
.cp_form .cp_group input[type=radio]:checked + span:before {
	content: '\f0c8';
}
.cp_form .cp_group input[type=text],
.cp_form .cp_group input[type=tel],
.cp_form .cp_group input[type=password],
.cp_form .cp_group input[type=email],
.cp_form .cp_group input[type=url],
.cp_form .cp_group input[type=date],
.cp_form .cp_group input[type=number],
.cp_form .cp_group textarea,
.cp_form .cp_group .cp_file .file_text,
.cp_form .cp_group select {
	font-size: 1em;
	box-sizing: border-box;
	padding: 6px 10px;
	-webkit-transition: border-color 0.6s;
	        transition: border-color 0.6s;
	border-width: 2px;
	border-style: solid;
	border-color: #bdc3c7;
	border-radius: 6px;
	outline: none;
	-webkit-appearance: none;
	        appearance: normal;
}
.cp_form .cp_group select::-ms-expand {
	display: none;
}
.cp_form .cp_group input[type=text],
.cp_form .cp_group .cp_file .file_text,
.cp_form .cp_group textarea {
	width: 100%;
}
.cp_form .cp_group textarea {
	height: auto;
}
.cp_form .cp_group select {
	width: 100%;
	cursor: pointer;
	text-align: left;
}
/* type number */
.cp_form .cp_group input[type=number]::-webkit-inner-spin-button,
.cp_form .cp_group input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none;
}
@media all and (max-width:400px) {
	.cp_form .cp_group .cp_ipradio .column,
	.cp_form .cp_group .cp_ipcheck .column {
		display: block;
		width: 100%;
		margin-right: 0;
	}
}
/* .cp_group color scheme begin */
.cp_form .cp_group input[type=button]:focus,
.cp_form .cp_group input[type=button]:active,
.cp_form .cp_group input[type=button][disabled] {
	border-color: #da3c3c;
}
.cp_form .cp_group input[type=submit] {
	background-color: #da3c3c;
}
.cp_form .cp_group input[type=submit]:hover {
	background-color: #ff4b4b;
}
.cp_form .cp_group input[type=submit]:active {
	background-color: #b02f2f;
}
/* File input */
.cp_form .cp_group .cp_file .button {
	background-color: #bdc3c7;
}
.cp_form .cp_group .cp_file .file_text {
	border-color: #bdc3c7;
}
.cp_form .cp_group .cp_file label:hover .button {
	background-color: #da3c3c;
}
.cp_form .cp_group .cp_file label:active .button {
	background-color: #b02f2f;
}
.cp_form .cp_group .cp_file label:hover .file_text {
	border-color: #da3c3c;
}
.cp_form .cp_group .cp_file label:active .file_text {
	border-color: #b02f2f;
}

/* Radio & checkbox */
.cp_form .cp_group input[type=radio]+span:before,
.cp_form .cp_group input[type=checkbox] + span:before {
	color: #bdc3c7;
}
/* checkbox */
.cp_form .cp_group input[type=checkbox]:checked + span:before {
	color: #da3c3c;
}
/* radio */
.cp_form .cp_group input[type=radio]:checked + span:before {
	color: #da3c3c;
}
.cp_form .cp_group input[type=text]:focus,
.cp_form .cp_group input[type=tel]:focus,
.cp_form .cp_group input[type=password]:focus,
.cp_form .cp_group input[type=email]:focus,
.cp_form .cp_group input[type=url]:focus,
.cp_form .cp_group input[type=date]:focus,
.cp_form .cp_group input[type=number]:focus,
.cp_form .cp_group textarea:focus,
.cp_form .cp_group .cp_file .file_text:active,
.cp_form .cp_group  select:focus {
	border-color: #da3c3c;
}
/*select*/
.cp_form .cp_group .cp_select span {
	position: relative;
}
.cp_form .cp_group .cp_select i::before {
	position: absolute;
	top: 0.4em;
	right: 0.9em;
	width: 0;
	height: 0;
	padding: 0;
	content: '';
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #666666;
	pointer-events: none;
}
.cp_form .cp_group select:focus + i::before {
	border-top: 6px solid #da3c3c;
}

copypet.jp

CSS3などで新たに追加された要素・装飾方法など、日々コードを書いていないと忘れてしまったり、ささっとプロトタイプを作る時などちょっとしたことに時間をかけている暇はない。そんな時に「あ〜、あれストックしときゃよかったなぁ」って困った自分用のストックブログです。カスタマイズなどがしやすいよう、昨今のweb制作に取り入れられる一般的なコードを中心に掲載しています。

More Info

こんな記事はいかがですか?