aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-10 04:33:48 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-10 04:33:48 +0000
commitab46ce110bb3e42f1ea28c30c20d90f23821c752 (patch)
treed74a3a60c54b30ecdb7ba43f0d734c1515034fd7
parent052420c5045fb9241793e1f85c21eb6f196b6225 (diff)
Working on side menu, need pull
-rw-r--r--assets/css/style.css41
-rw-r--r--index.html17
2 files changed, 50 insertions, 8 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index 2dc5b78..8ca5b9a 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -105,10 +105,16 @@ h1{
}
.drop-down:hover .drop-menu {
- display: block;
+ display: block;
+
+ }
+
+ .side-menu {
+ display
}
+
main {
background-image: url("../images/main.jpg");
@@ -135,7 +141,7 @@ main .search {
flex: 1;
width: 60%;
height: 100%;
- background-color: rgba(235,235,235, 0.7);
+ background-color: rgba(235,235,235, 0.6);
}
@@ -149,24 +155,47 @@ main .search h2{
padding-top: 200px; /* Change to move search bar content. Keep as pixel*/
}
+main #search-select {
+ display: inline-block;
+}
+
+main #search-select select {
+ color: black;
+ width: 100px;
+ padding: 5px;
+ font-size: 16px;
+ box-sizing: border-box;
+ -webkit-appearance: none;
+ background: url(../images/down.png) no-repeat lightgray;
+ background-size: 20px 20px;
+ background-position: 72px 9px;
+ border-top-left-radius: 10px;
+ border-bottom-left-radius: 10px;
+ margin-right: -5px;
+}
+
main .search input[type=text] {
display: inline;
width: 250px;
- height: 40px;
text-align: center;
box-sizing: border-box;
- border: 2px solid #ccc;
font-size: 16px;
- border-radius: 10px;
background-color: white;
background-image: url('../images/search_icon.png');
background-size: 20px 20px;
background-position: 9px 9px;
background-repeat: no-repeat;
padding: 12px 20px 12px 40px;
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
-webkit-transition: width 0.4s ease-in-out;
transition: width 0.4s ease-in-out;
+ border-top-right-radius: 10px;
+ border-bottom-right-radius: 10px;
+}
+
+main .search input[type=text], main #search-select select {
+ height: 40px;
+ border: 2px solid #ccc;
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
main .search input[type=text]:focus {
diff --git a/index.html b/index.html
index 01c626e..ad8f373 100644
--- a/index.html
+++ b/index.html
@@ -19,8 +19,15 @@
<a href="#">Courses</a>
<nav class="drop-menu">
<ul>
- <li><a href="#">First Year</a></li>
- <li><a href="#">Second Year</a></li>
+ <li class="side-drop"><a href="#">First Year</a>
+ <div class="side-menu">
+ <a href="">CSC108</a>
+ <a href="">CSC148</a>
+ <a href="">CSC165</a>
+ </div>
+ </li>
+ <li>
+ <a href="#">Second Year</a></li>
<li><a href="#">Third Year</a></li>
<li><a href="#">Fourth Year</a></li>
</ul>
@@ -36,6 +43,12 @@
<div class='search'>
<h2>The solutions to all your problems.</h2>
<!--<img src="assets/images/down.png">-->
+ <div id="search-select">
+ <select>
+ <option value="courses">Courses</option>
+ <option value="users">Users</option>
+ </select>
+ </div>
<input type="text" name="search" placeholder="Enter course name">
</div>