Skip to content

Commit 1359e77

Browse files
committed
add button's
1 parent 4c1ab97 commit 1359e77

File tree

2 files changed

+46
-7
lines changed

2 files changed

+46
-7
lines changed

index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
<div id="title">
1818
<p class="title">Web Activity Time Tracker</p>
1919
</div>
20-
<div id="chart"></div>
20+
<div id="buttons">
21+
<input type="button" value="Today" class="active"/>
22+
<input type="button" value="All"/>
23+
<input type="button" value="By days"/>
24+
</div>
25+
<div id="chart" class="margin-top-7"></div>
2126
<hr>
2227
<div class="list-of-site" id="resultTable"></div>
2328
<hr>

style/webact.css

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ body {
33
color: #262626;
44
}
55

6+
.margin-top-7{
7+
margin-top: 7px;
8+
}
9+
610
.list-of-site{
711
overflow-y: auto;
812
}
@@ -11,6 +15,11 @@ body {
1115
display: inline-flex;
1216
}
1317

18+
.inline-flex:hover{
19+
font-size: 13px;
20+
font-weight: 650;
21+
}
22+
1423
.span-url{
1524
width: 320px;
1625
text-decoration: none;
@@ -23,15 +32,11 @@ body {
2332
font-weight: 700;
2433
}
2534

26-
.span-url:hover{
27-
color: rgb(107, 107, 107);
28-
}
29-
3035
.span-total{
31-
width: 395px;
36+
width: 405px;
3237
text-decoration: none;
3338
color: rgb(0, 0, 0);
34-
margin-left: 15px;
39+
margin-left: 5px;
3540
font-size: 12px;
3641
font-weight: 700;
3742
cursor: pointer;
@@ -84,4 +89,33 @@ hr {
8489
font-weight: 650;
8590
margin: 5px;
8691
text-align: center;
92+
}
93+
94+
input[type="button"]{
95+
border: none;
96+
color: white;
97+
padding: 6px 10px;
98+
text-align: center;
99+
display: inline-block;
100+
font-size: 12px;
101+
margin: 4px 2px;
102+
transition-duration: 0.4s;
103+
cursor: pointer;
104+
text-decoration: none;
105+
text-transform: uppercase;
106+
107+
border-radius: 6px;
108+
border: 1px solid #0099CC;
109+
background: transparent;
110+
color: #0099CC;
111+
}
112+
113+
input[type="button"]:hover {
114+
background-color: #008CBA;
115+
color: white;
116+
}
117+
118+
input[type="button"].active {
119+
background-color: #008CBA;
120+
color: white;
87121
}

0 commit comments

Comments
 (0)