lesli_assets 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/config/lesli_assets_manifest.js +4 -0
- data/app/assets/javascripts/lesli_assets/calendar.js +12 -1
- data/app/assets/stylesheets/lesli_assets/templates/application.css +1 -1
- data/app/assets/stylesheets/lesli_assets/templates/public.css +1 -1
- data/app/assets/stylesheets/lesli_assets/templates/start.css +1 -1
- data/lib/lesli_assets/version.rb +2 -2
- data/lib/lesli_assets_js/calendar.js +14 -1
- data/lib/lesli_assets_styles/fonts/families.scss +2 -2
- data/lib/lesli_assets_styles/fonts/mdsymbols.scss +8 -3
- data/lib/lesli_assets_styles/fonts/remixicons.scss +3039 -3040
- data/lib/lesli_assets_styles/layouts/application-container.scss +16 -0
- data/lib/lesli_assets_styles/settings/variables.scss +12 -9
- metadata +2 -2
data/lib/lesli_assets/version.rb
CHANGED
@@ -35,6 +35,12 @@ import { Calendar } from "@fullcalendar/core";
|
|
35
35
|
import dayGridPlugin from "@fullcalendar/daygrid";
|
36
36
|
|
37
37
|
|
38
|
+
function getCalendarInitialView() {
|
39
|
+
if (window.innerWidth < 768) return "dayGridDay";
|
40
|
+
if (window.innerWidth < 1024) return "dayGridWeek";
|
41
|
+
return "dayGridMonth";
|
42
|
+
};
|
43
|
+
|
38
44
|
|
39
45
|
// ·
|
40
46
|
function buildCalendar() {
|
@@ -47,7 +53,7 @@ function buildCalendar() {
|
|
47
53
|
plugins: [ dayGridPlugin ],
|
48
54
|
firstDay: 1,
|
49
55
|
headerToolbar: false,
|
50
|
-
initialView:
|
56
|
+
initialView: getCalendarInitialView(),
|
51
57
|
showNonCurrentDates: true,
|
52
58
|
dayMaxEvents: true,
|
53
59
|
editable: true,
|
@@ -67,6 +73,13 @@ function buildCalendar() {
|
|
67
73
|
|
68
74
|
console.log("renderCalendar")
|
69
75
|
calendar.render();
|
76
|
+
|
77
|
+
window.addEventListener('resize', () => {
|
78
|
+
const newView = getCalendarInitialView();
|
79
|
+
if (calendar.view.type !== newView) {
|
80
|
+
calendar.changeView(newView);
|
81
|
+
}
|
82
|
+
});
|
70
83
|
}
|
71
84
|
|
72
85
|
|
@@ -34,7 +34,7 @@ Building a better future, one line of code at a time.
|
|
34
34
|
// · Font family for titles
|
35
35
|
@font-face {
|
36
36
|
font-family: "Domine";
|
37
|
-
src: url("lesli_assets/Domine/Domine-Variable.ttf") format("truetype");
|
37
|
+
src: url("/lesli_assets/Domine/Domine-Variable.ttf") format("truetype");
|
38
38
|
font-display: swap;
|
39
39
|
}
|
40
40
|
|
@@ -42,6 +42,6 @@ Building a better future, one line of code at a time.
|
|
42
42
|
// · Font family for the body
|
43
43
|
@font-face {
|
44
44
|
font-family: "OpenSans";
|
45
|
-
src: url("lesli_assets/OpenSans/OpenSans-Variable.ttf") format("truetype");
|
45
|
+
src: url("/lesli_assets/OpenSans/OpenSans-Variable.ttf") format("truetype");
|
46
46
|
font-display: swap;
|
47
47
|
}
|
@@ -29,16 +29,20 @@ Building a better future, one line of code at a time.
|
|
29
29
|
// ·
|
30
30
|
*/
|
31
31
|
|
32
|
+
|
33
|
+
// ·
|
32
34
|
@font-face {
|
33
|
-
font-family:
|
35
|
+
font-family: "MaterialSymbols";
|
36
|
+
src: url("/lesli_assets/MaterialDesign/symbols.woff") format('woff');
|
34
37
|
font-style: normal;
|
35
38
|
font-weight: 400;
|
36
|
-
src: url("lesli_assets/MaterialDesign/symbols.woff") format('woff');
|
37
39
|
}
|
38
40
|
|
41
|
+
|
42
|
+
// ·
|
39
43
|
.material-symbols,
|
40
44
|
.material-symbols-outlined {
|
41
|
-
font-family:
|
45
|
+
font-family: "MaterialSymbols";
|
42
46
|
font-weight: normal;
|
43
47
|
font-style: normal;
|
44
48
|
font-size: 24px;
|
@@ -54,6 +58,7 @@ Building a better future, one line of code at a time.
|
|
54
58
|
}
|
55
59
|
|
56
60
|
|
61
|
+
// ·
|
57
62
|
.material-symbols.md-18 { font-size: 18px; }
|
58
63
|
.material-symbols.md-24 { font-size: 24px; }
|
59
64
|
.material-symbols.md-36 { font-size: 36px; }
|