Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

Commit 90fbf9b

Browse files
committed
Kompatibilita s pluginem Simple Calendar - nastylování widgetů; refaktoring
1 parent 3cd83b4 commit 90fbf9b

22 files changed

+2023
-2862
lines changed

app/Front/Front.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function loadAllStyles() {
4040
}
4141

4242
wp_enqueue_style( 'crdm-main',
43-
CRDM_BASIC_TEMPLATE_URL . 'assets/css/main.css',
43+
CRDM_BASIC_TEMPLATE_URL . 'assets/css/app.css',
4444
[ 'generate-style' ],
4545
CRDM_BASIC_APP_VERSION
4646
);

assets/css-dev/admin/admin.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import '../mixins';

assets/css-dev/main.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
@import 'navigation';
44
@import 'sidebar';
55
@import 'content';
6-
@import 'footer';
6+
@import 'footer';
7+
@import 'widgets';

assets/css-dev/widgets.scss

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// Simple Calendar - START
2+
table.simcal-calendar-grid {
3+
border: 0;
4+
5+
thead.simcal-calendar-head {
6+
7+
th {
8+
border: 0;
9+
}
10+
11+
tr:first-child th {
12+
border-bottom: 1px solid var(--listPrimaryColor);
13+
}
14+
15+
th.simcal-current {
16+
color: var(--listPrimaryColor) !important;
17+
}
18+
19+
th.simcal-week-day {
20+
color: var(--listPrimaryColor) !important;
21+
font-weight: 400 !important;
22+
}
23+
}
24+
25+
tbody.simcal-month {
26+
27+
td {
28+
border: 0;
29+
border-left: 1px solid var(--listPrimaryColor);
30+
}
31+
32+
td:first-child {
33+
border-left: 0;
34+
}
35+
36+
.simcal-day-label.simcal-day-number {
37+
background-color: transparent !important;
38+
color: var(--listPrimaryColor) !important;
39+
font-weight: bold;
40+
}
41+
42+
.simcal-day:hover:not(.simcal-day-void) {
43+
background-color: var(--listSecondaryColor);
44+
}
45+
46+
.simcal-day-void {
47+
background-color: transparent;
48+
}
49+
50+
.simcal-today {
51+
background-color: var(--listSecondaryColor);
52+
53+
> div {
54+
border: 0 !important;
55+
}
56+
}
57+
58+
.simcal-events-dots {
59+
60+
b {
61+
color: var(--listPrimaryColor) !important;
62+
}
63+
}
64+
65+
}
66+
67+
}
68+
69+
.simcal-calendar-list-compact {
70+
71+
.simcal-calendar-head h3 {
72+
color: var(--listPrimaryColor);
73+
font-weight: bold;
74+
}
75+
}
76+
77+
// Simple Calendar - END

assets/css/admin.css

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/app.css

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)