-
Notifications
You must be signed in to change notification settings - Fork 2
/
mobile.css
206 lines (188 loc) · 5.03 KB
/
mobile.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
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
.block-news-message h2 {
white-space: normal;
}
.block-news-message-image {
height: auto;
}
.block-news-attachment-icon {
display: inline;
width: 24px;
vertical-align: bottom;
}
.block-news-message-extlink ion-icon {
padding-right: 4px;
vertical-align: bottom;
}
.block_news_event_date {
text-align: center;
width: 56px;
display: inline-block;
float: left;
margin-right: 17px;
}
.block_news_event_date span {
display: block;
}
.block_news_event_date_month {
background-color: #002158;
font-size: 1.6rem;
color: #fff;
text-transform: uppercase;
font-weight: 700;
padding: 1px 0;
}
.block_news_event_date_day {
background-color: #fff;
border: 1px solid #002158;
color: #000;
font-size: 2.4rem;
padding-bottom: 9px;
}
.block_news_group_indication {
font-style: italic;
font-size: 1.2rem;
}
.block-news-events-heading {
font-size: 1.8rem;
}
.block-news-message ion-label.label-md,
.block-news-message ion-label.label-ios {
margin-bottom: 7px;
}
.block-news-message-text {
line-height: 1.5;
}
ion-card.block-news-message h2 {
margin-top: 1em;
font-size: 1.6rem;
font-weight: bold;
color: #002158;
}
ion-card.block-news-message core-format-text h3 {
font-size: 1.6rem;
font-weight: 500;
}
ion-card.block-news-message core-format-text h4 {
font-size: 1.4rem;
font-weight: 700;
}
ion-card.block-news-message core-format-text h5 {
font-size: 1.4rem;
font-weight: 500;
}
[dir="ltr"] .block-news-message.card-md core-format-text p {
margin-bottom: 1em;
}
[dir="ltr"] .block-news-message.card-md core-format-text p:last-of-type {
margin-bottom: 3px;
}
.block_news .content {
background-color: white;
}
.block-news-message .card-content .col {
padding: 5px 0;
}
.block-news-message .card-content .block_news_event_date {
margin-right: 13px;
margin-bottom: 8px;
}
/* Align the attachments title */
.block-news-message .row .col h3 {
padding-left: 11px;
}
/* CSS Ionic 5 */
body.ionic5 .block-news-message .card-content-ios ion-row.ios {
display: flex;
flex-wrap: wrap;
}
body.ionic5 .block-news-message .card-content-md ion-col.md:first-child,
body.ionic5 .block-news-message .card-content-ios ion-col.ios:first-child {
padding: 5px 0;
flex: 0 0 auto;
width: auto;
}
body.ionic5 .block-news-message .card-content-ios ion-col.ios {
width: 100%;
flex-grow: 1;
flex-basis: 0;
max-width: 100%;
}
body.ionic5 .block-news-message .card-content-md .block_news_event_date,
body.ionic5 .block-news-message .card-content-ios .block_news_event_date {
margin-right: 13px;
margin-bottom: 8px;
text-align: center;
width: 56px;
float: left;
}
body.ionic5 .block_news_event_date span {
display: block;
}
body.ionic5 .block_news_event_date_month {
background-color: #002158;
font-size: 1.6rem;
color: #fff;
text-transform: uppercase;
font-weight: 700;
padding: 1px 0;
}
body.ionic5 .block_news_event_date_day {
border: 1px solid #002158;
font-size: 2.4rem;
padding-bottom: 9px;
}
body.ionic5 ion-card.block-news-message h2 {
margin: 2px 0;
}
body.ionic5.moodleapp-4 .block-news-message .item-label ion-label {
margin: 13px 0 7px;
}
body.ionic5.moodleapp-4 .block-news-message .item-label ion-label > p {
color: #000000;
}
body.ionic5.moodleapp-4.dark .block-news-message .item-label ion-label > p,
body.ionic5.moodleapp-4.dark .block-news-message .block-news-message-text .collapsible-toggle-text {
color: #ffffff;
}
body.ionic5.moodleapp-4 .block-news-message .block-news-message-text {
padding-top: 0;
font-size: 14px;
}
body.ionic5.moodleapp-4 .block-news-message .block-news-message-text .collapsible-item:before {
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) calc(100% - 50px), white calc(100% - 15px));
}
body.ionic5.moodleapp-4.dark .block-news-message .block-news-message-text .collapsible-item:before {
background: linear-gradient(to bottom,rgba(255,255,255,0) calc(100% - 50px),#626262 calc(100% - 15px));
}
body.ionic5.moodleapp-4 .block-news-message .block-news-message-text .collapsible-toggle {
width: 100px;
}
body.ionic5.moodleapp-4 .block-news-message .block-news-message-text .collapsible-toggle-text {
font-size: 14px;
font-weight: 400;
color: #002158;
clip: auto;
width: auto;
height: auto;
}
body.ionic5.moodleapp-4 .block-news-message .block-news-message-text .collapsible-toggle-arrow {
display: none;
}
body.ionic5.moodleapp-4 .block-news-message ion-icon[name="open-outline"] {
color: #1d2125;
}
body.ionic5.moodleapp-4.dark .block-news-message ion-icon[name="open-outline"] {
color: #ffffff;
}
body.ionic5.moodleapp-4 ion-item-divider.block-news-events-heading {
border-bottom: 1px solid #dedede;
background-color: #f5f5f5;
margin: auto;
width: calc(100% - 22px);
border-radius: 10px;
min-height: 43px;
}
body.ionic5.moodleapp-4.dark ion-item-divider.block-news-events-heading {
background-color: #414141;
border-bottom: 1px solid #333333
}