mensa 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/components/mensa/view/component.css +7 -39
- data/app/components/mensa/view/paging.css +44 -0
- data/config/locales/en.yml +6 -3
- data/config/locales/nl.yml +3 -3
- data/lib/mensa/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 634ad0de9f00f79f1816d056b5e1fb7fe3dd8e4a7e95ebcef185232e0ef88ec1
|
4
|
+
data.tar.gz: c75ef7aa672a95ca7834444bd22744b0050f84a57c610e828b0c094f76af17f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91ca7610801cba98694d4f50fb3b6a5c02a865417e8c3c8561f6e37e5fdb7b90232be38b2a5bd81332453307b1d18453d82e9b970a2a8406bf575ad10979909a
|
7
|
+
data.tar.gz: 287f9f0cc3602ed54d44b8f75ee8fc0359b0c2337d6c634f443342bb323114891d79c3f7137ba76df991d1592e261a0df95dee4c7769fba595326fe26ff6b564
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@import 'paging.css';
|
2
|
+
|
1
3
|
.mensa-table {
|
2
4
|
@apply bg-white dark:bg-gray-500 dark:border-gray-700;
|
3
5
|
|
@@ -32,45 +34,11 @@
|
|
32
34
|
}
|
33
35
|
}
|
34
36
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
@apply flex space-x-1 text-sm text-gray-500;
|
41
|
-
|
42
|
-
a:not(.gap) {
|
43
|
-
@apply block rounded-lg px-3 py-1 bg-gray-200 no-underline;
|
44
|
-
|
45
|
-
&:hover {
|
46
|
-
@apply bg-gray-300;
|
47
|
-
}
|
48
|
-
|
49
|
-
&:not([href]) {
|
50
|
-
/* disabled links */
|
51
|
-
@apply text-gray-300 bg-gray-100 cursor-default;
|
52
|
-
}
|
53
|
-
|
54
|
-
&.current {
|
55
|
-
@apply text-white bg-primary-600;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
label {
|
60
|
-
@apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;
|
61
|
-
|
62
|
-
input {
|
63
|
-
@apply bg-gray-100 border-none rounded-md;
|
64
|
-
}
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
&__condensed {
|
69
|
-
table {
|
70
|
-
tbody {
|
71
|
-
td {
|
72
|
-
@apply pl-4 py-2;
|
73
|
-
}
|
37
|
+
&__condensed {
|
38
|
+
table {
|
39
|
+
tbody {
|
40
|
+
td {
|
41
|
+
@apply pl-4 py-2;
|
74
42
|
}
|
75
43
|
}
|
76
44
|
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
.mensa-table {
|
2
|
+
.paging {
|
3
|
+
@apply flex items-center justify-between border-t border-gray-100 dark:border-gray-600 bg-white dark:bg-gray-800 px-4 py-3 sm:px-6;
|
4
|
+
|
5
|
+
.pagy {
|
6
|
+
@apply isolate inline-flex -space-x-px shadow-sm;
|
7
|
+
|
8
|
+
a:not(.gap) {
|
9
|
+
@apply relative inline-flex items-center px-4 py-1.5 text-sm bg-gray-50 dark:bg-gray-800 font-semibold text-opacity-75 text-gray-700 dark:text-gray-400 ring-1 ring-inset ring-gray-300 dark:ring-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 focus:z-20 focus:outline-offset-0 rounded-none;
|
10
|
+
|
11
|
+
&:first-child {
|
12
|
+
border-top-left-radius: 4px;
|
13
|
+
border-bottom-left-radius: 4px;
|
14
|
+
}
|
15
|
+
|
16
|
+
&:last-child {
|
17
|
+
border-top-right-radius: 4px;
|
18
|
+
border-bottom-right-radius: 4px;
|
19
|
+
}
|
20
|
+
|
21
|
+
&:hover {
|
22
|
+
@apply bg-gray-300 dark:bg-gray-600;
|
23
|
+
}
|
24
|
+
|
25
|
+
&:not([href]) {
|
26
|
+
/* disabled links */
|
27
|
+
@apply relative inline-flex items-center border border-gray-100 dark:border-gray-600 bg-white dark:bg-gray-800 dark:bg-opacity-75 px-4 py-1.5 text-sm font-medium text-gray-700 dark:text-gray-100 text-opacity-25 dark:text-opacity-50 hover:bg-gray-50 dark:hover:bg-gray-600;
|
28
|
+
}
|
29
|
+
|
30
|
+
&.current {
|
31
|
+
@apply z-10 bg-indigo-600 dark:bg-indigo-500 text-white border dark:text-white border-gray-100 dark:border-gray-600 focus-visible:outline hover:bg-indigo-500 dark:hover:bg-indigo-400 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:focus-visible:outline-indigo-500;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
label {
|
36
|
+
@apply inline-block whitespace-nowrap bg-gray-200 dark:bg-gray-600 rounded-lg px-4 py-1.5;
|
37
|
+
|
38
|
+
input {
|
39
|
+
@apply bg-gray-100 dark:bg-gray-700 border-none rounded-md;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
data/config/locales/en.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/lib/mensa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mensa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom de Grunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caxlsx_rails
|
@@ -190,6 +190,7 @@ files:
|
|
190
190
|
- app/components/mensa/view/component.css
|
191
191
|
- app/components/mensa/view/component.html.slim
|
192
192
|
- app/components/mensa/view/component.rb
|
193
|
+
- app/components/mensa/view/paging.css
|
193
194
|
- app/components/mensa/views/component.css
|
194
195
|
- app/components/mensa/views/component.html.slim
|
195
196
|
- app/components/mensa/views/component.rb
|