forked from dptoot/react-event-calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
88 lines (76 loc) · 1.56 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
$borderRadius: .3rem;
$margin: .5rem ;
$padding: .25rem .5rem;
$eventColor: #3b91ad;
$eventFontSize: 14px;
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
.flexContainer {
max-width: 100%;
width: 100%;
border-top: 1px solid $eventColor;
border-left: 1px solid $eventColor;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.flexColumn {
display: flex;
width: 14.2857142857%;
border-bottom: 1px solid $eventColor;
border-right: 1px solid $eventColor;
flex: 0 1 auto;
justify-content: center;
}
.day.inactive {
background-color: #f8f8f8;
color: #ccc;
}
.day.today {
background-color: #fcf8e3;
}
.day .inner-grid {
width: 100%;
position:relative;
}
.day .event-slot {
position: relative;
margin: $margin 0;
min-height: 28px;
font-size: $eventFontSize;
}
.day .event-slot.event {
background: #3b91ad;
color: #3b91ad;
white-space: nowrap;
text-indent: -10000px;
cursor: pointer;
}
.day .event-slot .event-title {
position: absolute;
top:($eventFontSize/2)/2;
left:$margin;
z-index: 100;
color: #fff;
z-index:1;
overflow:visible;
text-indent: 0;
}
.day .event.event-first-day {
margin-left: $margin;
border-top-left-radius: $borderRadius;
border-bottom-left-radius: $borderRadius;
}
.day .event.event-last-day {
margin-right: $margin;
border-top-right-radius: $borderRadius;
border-bottom-right-radius: $borderRadius;
}
.day .date {
padding: $padding;
text-align: right;
}