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
Binary file added .DS_Store
Binary file not shown.
55 changes: 54 additions & 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 Expand Up @@ -73,8 +73,61 @@ <h3>Extra-Large Button</h3>
<p>It should eventually look like this: </p>
<img src="./img/extra-large-button.png" />
</div>
<div class="demo">
<p>Animated button </p>
<button class="btn btn--animated">Button</button>
</div>




<div class=" ">
<p>Navigation</p>
</div>

<nav calss="main">
<ul>
<li>
<a href="#" class="nav-item">Home</a>
</li>
<li>
<a href="#" class="nav-item">News</a>
<ul>
<li>
<a href="#" class="nav-item">item-1</a>
</li>
<li>

<a href="#" class="nav-item">item-2</a>

</li>
</ul>
</li>
<li>
<a href="www.codeyourfeauture.com" class="nav-item">About</a>
</li>
</ul>

</nav>
<br>
<br>
<div class="demo-form">

<p>input field:</p>

<form >
<label for="fname">First Name</label>
<input type="text" id="fname" name="fname" placeholder="Your name..">

<label for="lname">Last Name</label>
<input type="text" id="lname" name="lname" placeholder="Your last name..">

</form>

</div>

</section>
</div>

</body>
</html>
110 changes: 97 additions & 13 deletions skin.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,97 @@
.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;
}
.highlight {
background-color: #ddd;
}

.btn {
color: #2B59C3;
background-color: transparent;
border-radius: 4px;
width: 170px;
line-height: 2.5;
font-size: 18px;
font-weight: lighter;
border-style: solid;
border-width: 1px;
text-align: center;
vertical-align: middle;
}

.btn--primary {
color: white;
background-color: #2B59C3;
}

.btn--secondary {
background-color: whitesmoke;
color: #696969;
border-color: darkgrey;
}

.btn--large {
width: 260px;
font-size: 20px;
font-weight: 300;
line-height: 2.7;
}

.btn--extra-large {
width: 350px;
font-weight: 300;
line-height: 2.8;
font-size: 23px;
}

.btn--animated:active {
background-color: #FFEECF;
box-shadow: 0 5px #666;
transform: translateY(4px);
}

.main {
width: 100%;
}

ul {
margin: 0px;
padding: 0px;
list-style: none;
}

ul li {
float: left;
background-color: black;
height: 40px;
width: 200px;
text-align: center;
line-height: 40px;
font-size: 20px;
margin-right: 2px;
}

ul li a {
text-decoration: none;
color: white;
display: block;
}

ul li a:hover {
background-color: green;
}

ul li ul li {
display: none;
}

ul li:hover ul li {
display: block;
}

input {
background-color: #FBCAEF;
padding: 12px 20px;
margin: 8px 0;
width: 20%;
border: 1px solid #555;
font-size: 14px;
display: block;
}
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.

143 changes: 143 additions & 0 deletions skin.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
.highlight {
background-color: #ddd;
}
//...............the main button with mixin....................
$color:#2B59C3;
$radius:4px;
$width:170px;
$line-height:2.5;
$font-size:18px;
$font-weight:lighter;

@mixin btn ( $color, $background-color, $radius, $width, $line-height,$font-size, $font-weight) {
color:$color;
background-color: $background-color;
border-radius:$radius;
width:$width;
line-height: $line-height;
font-size: $font-size;
font-weight:$font-weight;
}


.btn {
@include btn($color,transparent, $radius,$width,$line-height,$font-size,$font-weight);

border-style: solid;
border-width: 1px;

text-align:center;
vertical-align:middle;

//..............primary button (modifier)..............

&--primary{
color:white;
background-color:$color;

}
//..............secondary button (modifier)..............

&--secondary{
background-color:whitesmoke;
color: #696969;
border-color: darkgrey;

}
//..............large button (modifier).....................

&--large{
width:260px;
font-size: 20px;
font-weight:300;
line-height: 2.7;
}

//................extra large button (modifier)...............

&--extra-large{
width:350px;
font-weight:300;
line-height: 2.8;
font-size: 23px;

}

//.................active button

&--animated:active{
background-color: #FFEECF;
box-shadow: 0 5px #666;
transform: translateY(4px);


}

}
//................Navigation......................
.main{
width:100%;

}

ul{
margin:0px;
padding: 0px;
list-style: none;
}

ul li{
float: left;
background-color:black;
height: 40px;
width: 200px;
text-align: center;
line-height: 40px;
font-size: 20px;
margin-right:2px;
}

ul li a{
text-decoration: none;
color:white;
display:block;
}

ul li a:hover{
background-color: green;
}

ul li ul li{
display:none;
}

ul li:hover ul li{
display: block;
}
//...............input..................


$padding:12px 20px;
$width:20%;
$margin: 8px 0;
$border: 1px solid #555;
$background-color:#FBCAEF;
$font-size:14px;


@mixin input ( $background-color, $width,$padding, $margin,$border,$font-size) {

background-color: $background-color;
padding: $padding;
margin:$margin;
width:$width;
border:$border;
font-size:$font-size;

}
input {
@include input( $background-color, $width,$padding, $margin,$border,$font-size);

display:block;
}