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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
// Color tags according to assigned background color.
.o_wevent_index, .o_wevent_event {
// Simple colored tags according to assigned background color
@for $size from 1 through length($o-colors) {
.o_tag_color_#{$size - 1} {
@if $size == 1 {
& {
background-color: white;
color: nth($o-colors, $size);
box-shadow: inset 0 0 0 2px nth($o-colors, $size);
}
&::after {
background-color: nth($o-colors, $size);
}
} @else {
&, &::after {
background-color: nth($o-colors, $size);
color: $white;
}
}
}
}
// Complex colored tags according to assigned background color with hover effect
@for $size from 1 through length($o-colors) {
.o_tag_color_hovered_#{$size - 1} {
$background-color: white;
// no color selected
@if $size == 1 {
& {
color: black;
background-color: $background-color;
box-shadow: inset 0 0 0 1px nth($o-colors, $size);
}
} @else {
$background-color: nth($o-colors, $size);
& {
color: white;
background-color: $background-color;
}
}
@at-root a#{&} {
&:hover {
background-color: darken($background-color, 20%);
}
}
}
}
/*
* COMMON TO ALL ONLINE-* PAGES
*/
.o_wevent_online {
// unpublished badge: put opacity to distinguish form other badges
.o_wevent_online_badge_unpublished{
opacity: 0.4;
}
&.o_wevent_online_bg {
@if (color('body') == $o-portal-default-body-bg) {
@extend .bg-100;
}
}
// background color-based for new styling
.event_color_0 {
// bg-100 background but DO NOT extend bg-100 as it messes with text-muted colors
background-color: #F8F9FA;
}
.event_color_1 {
background-color: rgba(240, 96, 80, 0.2);
}
.event_color_2 {
background-color: rgba(244, 164, 96, 0.2);
}
.event_color_3 {
background-color: rgba(247, 205, 31, 0.2);
}
.event_color_4 {
background-color: rgba(108,193,237,0.2);
}
.event_color_5 {
background-color: rgba(129,73,104,0.2);
}
.event_color_6 {
background-color: rgba(235,126,127,0.2);
}
.event_color_7 {
background-color: rgba(44,131,151,0.2);
}
.event_color_8 {
background-color: rgba(71,85,119,0.2);
}
.event_color_9 {
background-color: rgba(214,20,95,0.2);
}
.event_color_10 {
background-color: rgba(48,195,129,0.2);
}
.event_color_11 {
background-color: rgba(147,101,184,0.2);
}
.o_wevent_online_page_container {
// Widescreen mode
@include media-breakpoint-up(md) {
&:not(.container) {
padding-left: 0.5rem;
padding-right: 0.5rem;
}
}
// Main panel
.o_wevent_online_page_main {
border: 1px solid $border-color;
@include media-breakpoint-up(md) {
border-top-width: 0;
}
.o_wevent_online_page_avatar {
min-width: 64px;
img {
max-width: 96px;
}
}
}
// Left panel
.o_wevent_online_page_aside {
// Left panel: content display
.o_wevent_online_page_aside_content {
border: 1px solid $border-color;
@include media-breakpoint-up(md) {
border-top-width: 0;
}
li:not(.nav-item) {
border-bottom: 1px solid $border-color;
&:first-child {
border-top: 1px solid $border-color;
}
&:last-child {
border-bottom: 0px;
}
}
.o_wevent_online_page_aside_collapse:not(.collapsed) {
transform: rotate(180deg);
}
}
}
}
}
}
|