Skip to content
This repository was archived by the owner on Sep 5, 2019. It is now read-only.

Commit e315431

Browse files
committed
Separation of styles
1 parent 0ab2c3c commit e315431

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

src/css/style.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
/*
3+
import css styles
4+
*/
5+
@import url(css.ui.min.css);
6+
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);
7+
@import url(style.dropdown.css);
8+
9+
/*
10+
elements
11+
*/
12+
body {
13+
background-color: #f4f4f4;
14+
font-family: 'Segoe UI', Frutiger, 'Frutiger Linotype', 'Dejavu Sans', 'Helvetica Neue', Arial, sans-serif;
15+
}

src/css/style.dropdown.css

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11

2-
/*
3-
import css styles
4-
*/
5-
@import url(css.ui.min.css);
6-
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);
7-
8-
/*
9-
elements
10-
*/
11-
body {
12-
background-color: #f4f4f4;
13-
font-family: 'Segoe UI', Frutiger, 'Frutiger Linotype', 'Dejavu Sans', 'Helvetica Neue', Arial, sans-serif;
14-
}
15-
162
/*
173
dropdown menu
184
*/
195
.dropdown {
20-
position: relative;
6+
margin-left: 12px;
7+
margin-top: 8px;
8+
position: relative;
219
}
2210

2311
.dropdown p { margin: 0; }
@@ -58,14 +46,14 @@ body {
5846
}
5947

6048
.dropdown ul.expand-dropdown li a {
61-
background-color: #484848;
49+
background-color: rgba(72, 72, 72, 1);
6250
text-decoration: none;
6351
display: block;
6452
padding: 5px 10px;
6553
color: white;
6654
}
6755

6856
.dropdown ul.expand-dropdown li a:hover {
69-
background-color: #333;
57+
background-color: rgba(54, 54, 54, 1);
7058
color: white;
7159
}

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>CSS UI - Dropdown menu</title>
99

1010
<!-- CSS styles -->
11-
<link rel="stylesheet" href="css/style.dropdown.css">
11+
<link rel="stylesheet" href="css/style.css">
1212
</head>
1313
<body>
1414
<div class="wrapping" style="padding: 25px; width: 200px;">

0 commit comments

Comments
 (0)