Skip to content

Commit 947a374

Browse files
committed
(refactor): Optimize and refactor Events styles
1 parent fe226b9 commit 947a374

File tree

2 files changed

+68
-82
lines changed

2 files changed

+68
-82
lines changed

styles/events.styl

Lines changed: 64 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import 'settings/*'
2+
13
/*calendar map events*/
24
#calendar * { -webkit-box-sizing: border-box; }
35

@@ -6,93 +8,68 @@
68
width: 100%;
79
padding: 5px;
810
position: relative;
9-
}
10-
.month-table-wrapper{
11-
overflow: auto;
12-
}
13-
14-
/*.month-table:before, .month-table:after {
15-
content: "";
16-
border: 10px solid transparent;
17-
position: absolute;
18-
display: block;
19-
}*/
20-
21-
/*.month-table:before {
22-
border-top-color: rgb(88,20,94);
23-
border-right-color: rgb(88,20,94);
24-
top: 0;
25-
right: 0;
26-
}
27-
28-
.month-table:after {
29-
border-left-color: rgb(88,20,94);
30-
border-bottom-color: rgb(88,20,94);
31-
bottom: 0;
32-
left: 0;
33-
}*/
3411

35-
.month-table td {
36-
width: 160px;
37-
vertical-align: top;
12+
&-menuitem {
13+
font-size: 12px;
14+
display: inline-block;
15+
border: 0;
16+
font-weight: bold;
17+
text-transform: uppercase;
18+
margin: 0 10px 10px;
19+
background: $mineshaftGray;
20+
padding: 7px 15px;
21+
color: $galleryGray;
22+
position: relative;
23+
border-radius: 3px;
24+
25+
&.active {
26+
background: $schoolbusYellow;
27+
color: $mineshaftGray;
28+
}
29+
30+
&:hover {
31+
color: $mineshaftGray;
32+
background-color: $schoolbusYellow;
33+
}
34+
}
35+
36+
&-wrapper{
37+
overflow: auto;
38+
}
39+
40+
td {
41+
width: 160px;
42+
vertical-align: top;
43+
}
44+
45+
.empty {
46+
background: repeating-linear-gradient(0, $nobelGray 0, $nobelGray 1px, transparent 1px, transparent 5px);
47+
background-size: 1px 5px;
48+
}
3849
}
3950

4051
.header td {
4152
padding: 10px;
42-
border-bottom: 1px solid #333;
53+
border-bottom: 1px solid $mineshaftGray;
4354
}
4455

4556
.days td {
4657
padding-top: 2px;
4758
height: 100px;
48-
border-bottom: 1px solid #333;
49-
}
50-
51-
.days:last-child td {
52-
/*border-bottom: 0;*/
53-
}
54-
55-
.month-table .empty {
56-
background: repeating-linear-gradient(0, #B4B4B4 0, #B4B4B4 1px, transparent 1px, transparent 5px);
57-
background-size: 1px 5px;
58-
}
59-
60-
.month-menuitem {
61-
font-size: 12px;
62-
display: inline-block;
63-
border: 0;
64-
font-weight: bold;
65-
text-transform: uppercase;
66-
margin: 0 10px 10px;
67-
background: #333;
68-
padding: 7px 15px;
69-
color: #eaeaea;
70-
position: relative;
71-
border-radius: 3px;
72-
73-
}
74-
75-
.month-menuitem:hover {
76-
color: #333;
77-
background-color: #F7DA03;
78-
}
79-
80-
.month-menuitem.active {
81-
background: #F7DA03 ;
82-
color: #333;
59+
border-bottom: 1px solid $mineshaftGray;
8360
}
8461

8562
a {
86-
color: #333;
87-
}
63+
color: $mineshaftGray;
8864

89-
a:hover {
90-
color: #EDE55D;
65+
&:hover {
66+
color: $confettiYellow;
67+
}
9168
}
9269

9370
.today .day {
94-
background: #F7DA03;
95-
color: #333;
71+
background: $schoolbusYellow;
72+
color: $mineshaftGray;
9673
border-radius: 3px;
9774
}
9875

@@ -104,6 +81,15 @@ a:hover {
10481
overflow: hidden;
10582
text-overflow: ellipsis;
10683

84+
a {
85+
color: $mineshaftGray;
86+
border-color: $schoolbusYellow;
87+
border-bottom-width: 2px;
88+
89+
&:hover {
90+
color: $schoolbusYellow;
91+
}
92+
}
10793
}
10894

10995
.day {
@@ -118,21 +104,17 @@ a:hover {
118104
background: #000;
119105
margin-left: -2px;
120106
margin-right: -2px;
107+
108+
a {
109+
color: $galleryGray;
110+
}
121111
}
122112

123-
.no-event { color: #B4B4B4; }
113+
.no-event { color: $nobelGray; }
124114

125-
.event a {
126-
color: #333;
127-
border-color: #F7DA03;
128-
border-bottom-width: 2px;
129-
}
130-
.multi-days a {
131-
color: #EEE;
132-
}
133-
.event a:hover {
134-
color: #F7DA03;
115+
.past .event a {
116+
color: $nobelGray;
117+
border-color: $nobelGray;
135118
}
136-
.past .event a { color: #B4B4B4; border-color: #B4B4B4; }
137119

138120
/* Map */

styles/settings/colors.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44

55
$black = rgb( 0, 0, 0); // #000
66
$mineshaftGray = rgb( 51, 51, 51); // #333
7+
$nobelGray = rgb(180, 180, 180); // #b4b4b4
8+
$galleryGray = rgb(234, 234, 234); // #eaeaea
9+
$confettiYellow = rgb(237, 229, 93); // #ede55d
10+
$schoolbusYellow = rgb(247, 218, 3); // #f7da03
711
$broomYellow = rgb(255, 229, 31); // #ffe51f

0 commit comments

Comments
 (0)