Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions form-sass.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<html>
<head>
<title>CSS skin</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="skin.min.css">
</head>
<body>
<div class="container">
<ul>
<li>First Name</li>
<li><input type="text" class="form_element--text"/></li>
<li>Last Name</li>
<li><input type="text" class="form_element--text"/></li>
<li>Country</li>
<li><select id="form_element--country" name="country">
<option value="australia" class="dropdown-elem">Australia</option>
<option value="canada" class="dropdown-elem">Canada</option>
<option value="usa" class="dropdown-elem">USA</option>
</select>
</li>
<li>Subject</li>
<li>
<textarea id="form_element--subject" name="subject" placeholder="Write somthing.."></textarea>
</li>
<li>
<input type="submit" class="form_element--submit">
</li>
</ul>
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<title>CSS skin</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="skin.css">
<link type="text/css" rel="stylesheet" href="skin.min.css">
</head>
<body>
<div>
Expand Down
179 changes: 166 additions & 13 deletions skin.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,166 @@
.highlight {
background-color: #ddd;
}

button.btn {
border-radius: 3px;
border-style: solid;
border-width: 1px;
font-weight: normal;
line-height: 1.15;
text-align: center;
vertical-align: middle;
}
html {
text-align: center;
}

.btn {
color: #134fd7;
background-color: white;
border: #c9c9cc 1px solid;
border-radius: 3pt;
font-size: 1rem;
font-stretch: narrower;
font-weight: lighter;
padding: 1.5% 5%;
margin-left: 0.7%;
}

.btn:hover {
background-color: #134fd7;
color: white;
}

.btn--primary {
color: white;
background-color: #134fd7;
border: #c9c9cc 1px solid;
border-radius: 3pt;
font-size: 1rem;
font-stretch: narrower;
font-weight: lighter;
padding: 1.5% 5%;
margin-left: 0.7%;
}

.btn--primary:hover {
background-color: white;
color: #134fd7;
}

.btn--secondary {
color: #696a6b;
background-color: #eeeef0;
border: #696a6b 1px solid;
border-radius: 3pt;
font-size: 1rem;
font-stretch: narrower;
font-weight: lighter;
padding: 1.5% 5%;
margin-left: 0.7%;
}

.btn--secondary:hover {
background-color: #696a6b;
color: #eeeef0;
}

.btn--large {
color: #134fd7;
background-color: white;
border: #c9c9cc 1px solid;
border-radius: 3pt;
font-size: 1rem;
font-stretch: narrower;
font-weight: lighter;
padding: 1.5% 8%;
margin-left: 0.7%;
font-size: 1.2rem;
}

.btn--large:hover {
background-color: #134fd7;
color: white;
}

.btn--extra-large {
color: #134fd7;
background-color: white;
border: #c9c9cc 1px solid;
border-radius: 3pt;
font-size: 1rem;
font-stretch: narrower;
font-weight: lighter;
padding: 1.5% 11%;
margin-left: 0.7%;
font-size: 1.3rem;
}

.btn--extra-large:hover {
background-color: #134fd7;
color: white;
}

.container {
width: 80%;
margin: auto;
background: #bebcb9;
text-align: left;
}

ul {
list-style: none;
}

ul li {
align-items: center;
justify-content: center;
}

.form_element--text {
width: 90%;
height: 6%;
margin-bottom: 1%;
border: inset 2px #c1c585;
border-radius: 10pt;
background-color: #728eaa;
}

.form_element--text:focus {
background-color: #c9c9cc;
border: solid 3px #728eaa;
outline: none;
}

#form_element--subject {
width: 90%;
height: 15%;
margin-bottom: 1%;
border: inset 2px #c1c585;
border-radius: 10pt;
background-color: white;
}

#form_element--subject:focus {
background-color: #c9c9cc;
border: solid 3px white;
outline: none;
}

#form_element--country {
width: 90%;
height: 6%;
margin-bottom: 1%;
border: inset 2px #c1c585;
border-radius: 10pt;
background-color: pink;
}

#form_element--country:focus {
background-color: #c9c9cc;
border: solid 3px pink;
outline: none;
}

.form_element--submit {
width: 90%;
height: 6%;
margin-bottom: 1%;
border: outset 2pt #b5bb5b;
border-radius: 10pt;
background-color: #134fd7;
}

.form_element--submit:focus {
background-color: #c9c9cc;
border: solid 3px #134fd7;
outline: none;
}
1 change: 1 addition & 0 deletions skin.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 91 additions & 0 deletions skin.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@

html{
text-align: center;
}
$pink:pink;
$white:white;
$blue: #134fd7;
$grey:#c9c9cc;
$light-grey:#eeeef0;
$slim:1px;
$dark-grey:#696a6b;
$normal-size:1.5% 5%;
$large-size:1.5% 8%;
$extra-large: 1.5% 11%;
$form-element-color:#728eaa;
$height:6%;
$border: inset 2px #c1c585;
$larg-height: 15%;
$btn-border: outset 2pt #b5bb5b;
@mixin button($color, $background-color, $border-color, $thickness, $padding){
color: $color;
background-color: $background-color;
border: $border-color $thickness solid;
border-radius: 3pt;
font-size:1rem;
font-stretch: narrower;
font-weight: lighter;
padding:$padding;
margin-left: 0.7%;
&:hover{
background-color:$color;
color:$background-color;
}
}
.btn{
@include button($blue, $white, $grey, $slim, $normal-size);
}
.btn--primary {
@include button($white, $blue, $grey, $slim, $normal-size);
}
.btn--secondary{
@include button($dark-grey, $light-grey, $dark-grey, $slim, $normal-size);
}
.btn--large{
@include button($blue, $white, $grey, $slim, $large-size);
font-size: 1.2rem;
}
.btn--extra-large{
@include button($blue, $white, $grey, $slim, $extra-large);
font-size: 1.3rem;

}
.container{
width:80%;
margin: auto;
background: rgb(190, 188, 185);
text-align: left;
}
ul{
list-style: none;
}
ul li{
align-items: center;
justify-content: center;
}
@mixin form-element ($color, $border, $height){
width: 90%;
height: $height;
margin-bottom: 1%;
border: $border;
border-radius: 10pt;
background-color: $color;
&:focus{
background-color:#c9c9cc;
border: solid 3px $color;
outline:none;
}

}
.form_element--text{
@include form-element($form-element-color,$border,$height);
}
#form_element--subject{
@include form-element($white, $border, $larg-height);
}
#form_element--country{
@include form-element($pink, $border, $height);
}
.form_element--submit{
@include form-element($blue,$btn-border, $height);
}