tina4ruby 0.4.0
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 +7 -0
- data/CHANGELOG.md +80 -0
- data/LICENSE.txt +21 -0
- data/README.md +768 -0
- data/exe/tina4 +4 -0
- data/lib/tina4/api.rb +152 -0
- data/lib/tina4/auth.rb +139 -0
- data/lib/tina4/cli.rb +349 -0
- data/lib/tina4/crud.rb +124 -0
- data/lib/tina4/database.rb +135 -0
- data/lib/tina4/database_result.rb +89 -0
- data/lib/tina4/debug.rb +83 -0
- data/lib/tina4/dev.rb +15 -0
- data/lib/tina4/dev_reload.rb +68 -0
- data/lib/tina4/drivers/firebird_driver.rb +94 -0
- data/lib/tina4/drivers/mssql_driver.rb +112 -0
- data/lib/tina4/drivers/mysql_driver.rb +90 -0
- data/lib/tina4/drivers/postgres_driver.rb +99 -0
- data/lib/tina4/drivers/sqlite_driver.rb +85 -0
- data/lib/tina4/env.rb +55 -0
- data/lib/tina4/field_types.rb +84 -0
- data/lib/tina4/graphql.rb +837 -0
- data/lib/tina4/localization.rb +100 -0
- data/lib/tina4/middleware.rb +59 -0
- data/lib/tina4/migration.rb +124 -0
- data/lib/tina4/orm.rb +168 -0
- data/lib/tina4/public/css/tina4.css +2286 -0
- data/lib/tina4/public/css/tina4.min.css +2 -0
- data/lib/tina4/public/js/tina4.js +134 -0
- data/lib/tina4/public/js/tina4helper.js +387 -0
- data/lib/tina4/queue.rb +117 -0
- data/lib/tina4/queue_backends/kafka_backend.rb +80 -0
- data/lib/tina4/queue_backends/lite_backend.rb +79 -0
- data/lib/tina4/queue_backends/rabbitmq_backend.rb +73 -0
- data/lib/tina4/rack_app.rb +150 -0
- data/lib/tina4/request.rb +158 -0
- data/lib/tina4/response.rb +172 -0
- data/lib/tina4/router.rb +148 -0
- data/lib/tina4/scss/tina4css/_alerts.scss +34 -0
- data/lib/tina4/scss/tina4css/_badges.scss +22 -0
- data/lib/tina4/scss/tina4css/_buttons.scss +69 -0
- data/lib/tina4/scss/tina4css/_cards.scss +49 -0
- data/lib/tina4/scss/tina4css/_forms.scss +156 -0
- data/lib/tina4/scss/tina4css/_grid.scss +81 -0
- data/lib/tina4/scss/tina4css/_modals.scss +84 -0
- data/lib/tina4/scss/tina4css/_nav.scss +149 -0
- data/lib/tina4/scss/tina4css/_reset.scss +94 -0
- data/lib/tina4/scss/tina4css/_tables.scss +54 -0
- data/lib/tina4/scss/tina4css/_typography.scss +55 -0
- data/lib/tina4/scss/tina4css/_utilities.scss +197 -0
- data/lib/tina4/scss/tina4css/_variables.scss +117 -0
- data/lib/tina4/scss/tina4css/base.scss +1 -0
- data/lib/tina4/scss/tina4css/colors.scss +48 -0
- data/lib/tina4/scss/tina4css/tina4.scss +17 -0
- data/lib/tina4/scss_compiler.rb +131 -0
- data/lib/tina4/seeder.rb +529 -0
- data/lib/tina4/session.rb +145 -0
- data/lib/tina4/session_handlers/file_handler.rb +55 -0
- data/lib/tina4/session_handlers/mongo_handler.rb +49 -0
- data/lib/tina4/session_handlers/redis_handler.rb +43 -0
- data/lib/tina4/swagger.rb +123 -0
- data/lib/tina4/template.rb +478 -0
- data/lib/tina4/templates/base.twig +26 -0
- data/lib/tina4/templates/errors/403.twig +22 -0
- data/lib/tina4/templates/errors/404.twig +22 -0
- data/lib/tina4/templates/errors/500.twig +22 -0
- data/lib/tina4/testing.rb +213 -0
- data/lib/tina4/version.rb +5 -0
- data/lib/tina4/webserver.rb +101 -0
- data/lib/tina4/websocket.rb +167 -0
- data/lib/tina4/wsdl.rb +164 -0
- data/lib/tina4.rb +259 -0
- data/lib/tina4ruby.rb +4 -0
- metadata +324 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// Tina4 CSS Framework - 12-Column Flexbox Grid
|
|
2
|
+
// -----------------------------------------------
|
|
3
|
+
|
|
4
|
+
.container,
|
|
5
|
+
.container-fluid {
|
|
6
|
+
width: 100%;
|
|
7
|
+
padding-right: calc($grid-gutter / 2);
|
|
8
|
+
padding-left: calc($grid-gutter / 2);
|
|
9
|
+
margin-right: auto;
|
|
10
|
+
margin-left: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@each $bp, $max-width in $container-max-widths {
|
|
14
|
+
@media (min-width: map-get($breakpoints, $bp)) {
|
|
15
|
+
.container {
|
|
16
|
+
max-width: $max-width;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.row {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-wrap: wrap;
|
|
24
|
+
margin-right: calc($grid-gutter / -2);
|
|
25
|
+
margin-left: calc($grid-gutter / -2);
|
|
26
|
+
> * {
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
width: 100%;
|
|
29
|
+
max-width: 100%;
|
|
30
|
+
padding-right: calc($grid-gutter / 2);
|
|
31
|
+
padding-left: calc($grid-gutter / 2);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.col {
|
|
36
|
+
flex: 1 0 0%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Generate base columns
|
|
40
|
+
@for $i from 1 through $grid-columns {
|
|
41
|
+
.col-#{$i} {
|
|
42
|
+
flex: 0 0 auto;
|
|
43
|
+
width: percentage($i / $grid-columns);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
@each $i in 1, 2, 3, 4 {
|
|
47
|
+
.offset-#{$i} {
|
|
48
|
+
margin-left: percentage($i / $grid-columns);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.offset-0 { margin-left: 0; }
|
|
52
|
+
|
|
53
|
+
// Responsive columns (core breakpoints only for size)
|
|
54
|
+
$grid-breakpoints: (sm, md, lg, xl);
|
|
55
|
+
|
|
56
|
+
@each $bp in $grid-breakpoints {
|
|
57
|
+
$min-width: map-get($breakpoints, $bp);
|
|
58
|
+
@media (min-width: $min-width) {
|
|
59
|
+
.col-#{$bp} {
|
|
60
|
+
flex: 1 0 0%;
|
|
61
|
+
}
|
|
62
|
+
@for $i from 1 through $grid-columns {
|
|
63
|
+
.col-#{$bp}-#{$i} {
|
|
64
|
+
flex: 0 0 auto;
|
|
65
|
+
width: percentage($i / $grid-columns);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
.offset-#{$bp}-0 { margin-left: 0; }
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Row alignment
|
|
73
|
+
.justify-start { justify-content: flex-start; }
|
|
74
|
+
.justify-center { justify-content: center; }
|
|
75
|
+
.justify-end { justify-content: flex-end; }
|
|
76
|
+
.justify-between { justify-content: space-between; }
|
|
77
|
+
.justify-around { justify-content: space-around; }
|
|
78
|
+
|
|
79
|
+
.align-start { align-items: flex-start; }
|
|
80
|
+
.align-center { align-items: center; }
|
|
81
|
+
.align-end { align-items: flex-end; }
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Tina4 CSS Framework - Modals
|
|
2
|
+
// -------------------------------
|
|
3
|
+
|
|
4
|
+
.modal {
|
|
5
|
+
position: fixed;
|
|
6
|
+
top: 0;
|
|
7
|
+
left: 0;
|
|
8
|
+
z-index: $zindex-modal;
|
|
9
|
+
display: none;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
overflow-x: hidden;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
outline: 0;
|
|
15
|
+
|
|
16
|
+
&.show { display: block; }
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.modal-dialog {
|
|
20
|
+
position: relative;
|
|
21
|
+
width: auto;
|
|
22
|
+
margin: 1.75rem auto;
|
|
23
|
+
max-width: 500px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.modal-sm { max-width: 300px; }
|
|
27
|
+
.modal-lg { max-width: 800px; }
|
|
28
|
+
|
|
29
|
+
.modal-content {
|
|
30
|
+
position: relative;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
width: 100%;
|
|
34
|
+
pointer-events: auto;
|
|
35
|
+
background-color: $white;
|
|
36
|
+
background-clip: padding-box;
|
|
37
|
+
border: 1px solid rgba($black, 0.2);
|
|
38
|
+
border-radius: $border-radius-lg;
|
|
39
|
+
box-shadow: $shadow;
|
|
40
|
+
outline: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.modal-header {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
padding: 1rem;
|
|
49
|
+
border-bottom: 1px solid rgba($black, 0.1);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.modal-title {
|
|
53
|
+
margin-bottom: 0;
|
|
54
|
+
font-weight: $font-weight-bold;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.modal-body {
|
|
58
|
+
position: relative;
|
|
59
|
+
flex: 1 1 auto;
|
|
60
|
+
padding: 1rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.modal-footer {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
flex-wrap: wrap;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: flex-end;
|
|
69
|
+
padding: 0.75rem;
|
|
70
|
+
border-top: 1px solid rgba($black, 0.1);
|
|
71
|
+
gap: 0.5rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.modal-backdrop {
|
|
75
|
+
position: fixed;
|
|
76
|
+
top: 0;
|
|
77
|
+
left: 0;
|
|
78
|
+
z-index: $zindex-backdrop;
|
|
79
|
+
width: 100vw;
|
|
80
|
+
height: 100vh;
|
|
81
|
+
background-color: rgba($black, 0.5);
|
|
82
|
+
display: none;
|
|
83
|
+
&.show { display: block; }
|
|
84
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// Tina4 CSS Framework - Navigation
|
|
2
|
+
// -----------------------------------
|
|
3
|
+
|
|
4
|
+
.nav {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
padding-left: 0;
|
|
8
|
+
margin-bottom: 0;
|
|
9
|
+
list-style: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.nav-item { }
|
|
13
|
+
|
|
14
|
+
.nav-link {
|
|
15
|
+
display: block;
|
|
16
|
+
padding: 0.5rem 1rem;
|
|
17
|
+
color: $link-color;
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
|
|
20
|
+
|
|
21
|
+
&:hover, &:focus {
|
|
22
|
+
color: $link-hover-color;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.disabled {
|
|
26
|
+
color: $muted;
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
cursor: default;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.active {
|
|
32
|
+
color: $primary;
|
|
33
|
+
font-weight: $font-weight-bold;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Navbar
|
|
38
|
+
.navbar {
|
|
39
|
+
position: relative;
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-wrap: wrap;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
padding: 0.5rem 1rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.navbar-brand {
|
|
48
|
+
padding-top: 0.3125rem;
|
|
49
|
+
padding-bottom: 0.3125rem;
|
|
50
|
+
margin-right: 1rem;
|
|
51
|
+
font-size: $font-size-xl;
|
|
52
|
+
font-weight: $font-weight-bold;
|
|
53
|
+
color: inherit;
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
&:hover { color: inherit; opacity: 0.8; }
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.navbar-nav {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
padding-left: 0;
|
|
63
|
+
margin-bottom: 0;
|
|
64
|
+
list-style: none;
|
|
65
|
+
.nav-link {
|
|
66
|
+
padding-right: 0.5rem;
|
|
67
|
+
padding-left: 0.5rem;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.navbar-toggler {
|
|
72
|
+
padding: 0.25rem 0.75rem;
|
|
73
|
+
font-size: $font-size-lg;
|
|
74
|
+
line-height: 1;
|
|
75
|
+
background-color: transparent;
|
|
76
|
+
border: 1px solid rgba($black, 0.1);
|
|
77
|
+
border-radius: $border-radius;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
&:focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba($primary, 0.25); }
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.navbar-collapse {
|
|
83
|
+
flex-basis: 100%;
|
|
84
|
+
flex-grow: 1;
|
|
85
|
+
align-items: center;
|
|
86
|
+
display: none;
|
|
87
|
+
&.show { display: flex; }
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Responsive expand classes
|
|
91
|
+
@each $bp, $px in $breakpoints {
|
|
92
|
+
.navbar-expand-#{$bp} {
|
|
93
|
+
@media (min-width: $px) {
|
|
94
|
+
.navbar-nav { flex-direction: row; }
|
|
95
|
+
.navbar-collapse { display: flex; flex-basis: auto; }
|
|
96
|
+
.navbar-toggler { display: none; }
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Legacy: bare .navbar also expands at lg
|
|
102
|
+
@media (min-width: map-get($breakpoints, lg)) {
|
|
103
|
+
.navbar-nav {
|
|
104
|
+
flex-direction: row;
|
|
105
|
+
}
|
|
106
|
+
.navbar-collapse {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-basis: auto;
|
|
109
|
+
}
|
|
110
|
+
.navbar-toggler {
|
|
111
|
+
display: none;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.navbar-dark {
|
|
116
|
+
color: $white;
|
|
117
|
+
background-color: $dark;
|
|
118
|
+
.navbar-brand { color: $white; }
|
|
119
|
+
.nav-link { color: rgba($white, 0.75); &:hover, &.active { color: $white; } }
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.navbar-light {
|
|
123
|
+
background-color: $light;
|
|
124
|
+
.nav-link { color: rgba($black, 0.55); &:hover, &.active { color: rgba($black, 0.9); } }
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Breadcrumb
|
|
128
|
+
.breadcrumb {
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-wrap: wrap;
|
|
131
|
+
padding: 0.5rem 1rem;
|
|
132
|
+
margin-bottom: 1rem;
|
|
133
|
+
list-style: none;
|
|
134
|
+
background-color: $light;
|
|
135
|
+
border-radius: $border-radius;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.breadcrumb-item {
|
|
139
|
+
& + .breadcrumb-item::before {
|
|
140
|
+
display: inline-block;
|
|
141
|
+
padding-right: 0.5rem;
|
|
142
|
+
padding-left: 0.5rem;
|
|
143
|
+
color: $muted;
|
|
144
|
+
content: "/";
|
|
145
|
+
}
|
|
146
|
+
&.active {
|
|
147
|
+
color: $muted;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Tina4 CSS Framework - Modern Reset
|
|
2
|
+
// ------------------------------------
|
|
3
|
+
|
|
4
|
+
*,
|
|
5
|
+
*::before,
|
|
6
|
+
*::after {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
html {
|
|
11
|
+
line-height: $line-height-base;
|
|
12
|
+
-webkit-text-size-adjust: 100%;
|
|
13
|
+
-moz-tab-size: 4;
|
|
14
|
+
tab-size: 4;
|
|
15
|
+
scroll-behavior: smooth;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
body {
|
|
19
|
+
margin: 0;
|
|
20
|
+
font-family: $font-family-base;
|
|
21
|
+
font-size: $font-size-base;
|
|
22
|
+
font-weight: $font-weight-normal;
|
|
23
|
+
line-height: $line-height-base;
|
|
24
|
+
color: $body-color;
|
|
25
|
+
background-color: $body-bg;
|
|
26
|
+
-webkit-font-smoothing: antialiased;
|
|
27
|
+
-moz-osx-font-smoothing: grayscale;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
h1, h2, h3, h4, h5, h6 {
|
|
31
|
+
margin-top: 0;
|
|
32
|
+
margin-bottom: 0.5rem;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
line-height: $line-height-sm;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
p {
|
|
38
|
+
margin-top: 0;
|
|
39
|
+
margin-bottom: 1rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
ol, ul {
|
|
43
|
+
padding-left: 2rem;
|
|
44
|
+
margin-top: 0;
|
|
45
|
+
margin-bottom: 1rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
a {
|
|
49
|
+
color: $link-color;
|
|
50
|
+
text-decoration: none;
|
|
51
|
+
&:hover {
|
|
52
|
+
color: $link-hover-color;
|
|
53
|
+
text-decoration: underline;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
img, svg {
|
|
58
|
+
max-width: 100%;
|
|
59
|
+
height: auto;
|
|
60
|
+
vertical-align: middle;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
table {
|
|
64
|
+
border-collapse: collapse;
|
|
65
|
+
caption-side: bottom;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
button, input, optgroup, select, textarea {
|
|
69
|
+
margin: 0;
|
|
70
|
+
font-family: inherit;
|
|
71
|
+
font-size: inherit;
|
|
72
|
+
line-height: inherit;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
button, select {
|
|
76
|
+
text-transform: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
button, [type="button"], [type="reset"], [type="submit"] {
|
|
80
|
+
-webkit-appearance: button;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
hr {
|
|
85
|
+
margin: 1rem 0;
|
|
86
|
+
color: inherit;
|
|
87
|
+
border: 0;
|
|
88
|
+
border-top: 1px solid rgba($black, 0.1);
|
|
89
|
+
opacity: 0.25;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
pre, code, kbd, samp { font-family: $font-family-mono; font-size: 1em; }
|
|
93
|
+
pre { margin-top: 0; margin-bottom: 1rem; overflow: auto; }
|
|
94
|
+
[hidden] { display: none !important; }
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Tina4 CSS Framework - Tables
|
|
2
|
+
// -------------------------------
|
|
3
|
+
|
|
4
|
+
.table {
|
|
5
|
+
width: 100%;
|
|
6
|
+
margin-bottom: 1rem;
|
|
7
|
+
vertical-align: top;
|
|
8
|
+
border-color: rgba($black, 0.1);
|
|
9
|
+
|
|
10
|
+
> :not(caption) > * > * {
|
|
11
|
+
padding: 0.5rem;
|
|
12
|
+
border-bottom-width: 1px;
|
|
13
|
+
border-bottom-style: solid;
|
|
14
|
+
border-bottom-color: inherit;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
> thead {
|
|
18
|
+
vertical-align: bottom;
|
|
19
|
+
border-bottom: 2px solid currentColor;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
> tbody > tr:last-child > * {
|
|
23
|
+
border-bottom-color: transparent;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.table-sm {
|
|
28
|
+
> :not(caption) > * > * {
|
|
29
|
+
padding: 0.25rem;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.table-bordered {
|
|
34
|
+
border: 1px solid rgba($black, 0.1);
|
|
35
|
+
> :not(caption) > * > * {
|
|
36
|
+
border-width: 1px;
|
|
37
|
+
border-style: solid;
|
|
38
|
+
border-color: inherit;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.table-striped > tbody > tr:nth-of-type(odd) > * {
|
|
43
|
+
background-color: rgba($black, 0.02);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.table-hover > tbody > tr:hover > * {
|
|
47
|
+
background-color: rgba($black, 0.04);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.table-responsive {
|
|
51
|
+
overflow-x: auto;
|
|
52
|
+
-webkit-overflow-scrolling: touch;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Tina4 CSS Framework - Typography
|
|
2
|
+
// ------------------------------------
|
|
3
|
+
|
|
4
|
+
h1 { font-size: $font-size-4xl; }
|
|
5
|
+
h2 { font-size: $font-size-3xl; }
|
|
6
|
+
h3 { font-size: $font-size-2xl; }
|
|
7
|
+
h4 { font-size: $font-size-xl; }
|
|
8
|
+
h5 { font-size: $font-size-lg; }
|
|
9
|
+
h6 { font-size: $font-size-base; }
|
|
10
|
+
|
|
11
|
+
small, .small {
|
|
12
|
+
font-size: 0.875em;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
mark, .mark {
|
|
16
|
+
padding: 0.2em;
|
|
17
|
+
background-color: rgba($warning, 0.3);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
blockquote {
|
|
21
|
+
margin: 0 0 1rem;
|
|
22
|
+
padding: 0.5rem 1rem;
|
|
23
|
+
border-left: 0.25rem solid rgba($black, 0.1);
|
|
24
|
+
font-size: $font-size-lg;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
code {
|
|
28
|
+
font-size: 0.875em;
|
|
29
|
+
color: $danger;
|
|
30
|
+
word-wrap: break-word;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
pre {
|
|
34
|
+
display: block;
|
|
35
|
+
padding: 1rem;
|
|
36
|
+
font-size: 0.875em;
|
|
37
|
+
color: $dark;
|
|
38
|
+
background-color: $light;
|
|
39
|
+
border-radius: $border-radius;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.list-unstyled {
|
|
43
|
+
padding-left: 0;
|
|
44
|
+
list-style: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.list-inline {
|
|
48
|
+
padding-left: 0;
|
|
49
|
+
list-style: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.list-inline-item {
|
|
53
|
+
display: inline-block;
|
|
54
|
+
&:not(:last-child) { margin-right: 0.5rem; }
|
|
55
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
// Tina4 CSS Framework - Utilities
|
|
2
|
+
// ----------------------------------
|
|
3
|
+
|
|
4
|
+
// Display
|
|
5
|
+
$displays: none, block, flex, inline, inline-block;
|
|
6
|
+
|
|
7
|
+
@each $d in $displays {
|
|
8
|
+
.d-#{$d} { display: $d !important; }
|
|
9
|
+
}
|
|
10
|
+
.d-grid { display: grid !important; }
|
|
11
|
+
|
|
12
|
+
// Responsive display (sm, md, lg only to save size)
|
|
13
|
+
@each $bp in sm, md, lg {
|
|
14
|
+
@media (min-width: map-get($breakpoints, $bp)) {
|
|
15
|
+
@each $d in $displays {
|
|
16
|
+
.d-#{$bp}-#{$d} { display: $d !important; }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Flex utilities
|
|
22
|
+
.flex-row { flex-direction: row !important; }
|
|
23
|
+
.flex-column { flex-direction: column !important; }
|
|
24
|
+
.flex-wrap { flex-wrap: wrap !important; }
|
|
25
|
+
.flex-nowrap { flex-wrap: nowrap !important; }
|
|
26
|
+
.flex-grow-0 { flex-grow: 0 !important; }
|
|
27
|
+
.flex-grow-1 { flex-grow: 1 !important; }
|
|
28
|
+
|
|
29
|
+
.justify-content-start { justify-content: flex-start !important; }
|
|
30
|
+
.justify-content-end { justify-content: flex-end !important; }
|
|
31
|
+
.justify-content-center { justify-content: center !important; }
|
|
32
|
+
.justify-content-between { justify-content: space-between !important; }
|
|
33
|
+
.justify-content-around { justify-content: space-around !important; }
|
|
34
|
+
|
|
35
|
+
.align-items-start { align-items: flex-start !important; }
|
|
36
|
+
.align-items-end { align-items: flex-end !important; }
|
|
37
|
+
.align-items-center { align-items: center !important; }
|
|
38
|
+
|
|
39
|
+
@each $key, $val in $spacers {
|
|
40
|
+
.gap-#{$key} { gap: $val !important; }
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Spacing: margin and padding
|
|
44
|
+
$spacing-props: (
|
|
45
|
+
"m": "margin",
|
|
46
|
+
"p": "padding"
|
|
47
|
+
);
|
|
48
|
+
$spacing-dirs: (
|
|
49
|
+
"t": "-top",
|
|
50
|
+
"b": "-bottom",
|
|
51
|
+
"s": "-left",
|
|
52
|
+
"e": "-right"
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
@each $abbr, $prop in $spacing-props {
|
|
56
|
+
@each $key, $val in $spacers {
|
|
57
|
+
.#{$abbr}-#{$key} { #{$prop}: $val !important; }
|
|
58
|
+
}
|
|
59
|
+
@each $dir, $suffix in $spacing-dirs {
|
|
60
|
+
@each $key, $val in $spacers {
|
|
61
|
+
.#{$abbr}#{$dir}-#{$key} { #{$prop}#{$suffix}: $val !important; }
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
|
|
67
|
+
|
|
68
|
+
// Text
|
|
69
|
+
.text-start { text-align: left !important; }
|
|
70
|
+
.text-center { text-align: center !important; }
|
|
71
|
+
.text-end { text-align: right !important; }
|
|
72
|
+
.text-uppercase { text-transform: uppercase !important; }
|
|
73
|
+
.text-capitalize { text-transform: capitalize !important; }
|
|
74
|
+
.text-nowrap { white-space: nowrap !important; }
|
|
75
|
+
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
76
|
+
|
|
77
|
+
.fw-bold { font-weight: $font-weight-bold !important; }
|
|
78
|
+
.fw-normal { font-weight: $font-weight-normal !important; }
|
|
79
|
+
.fw-light { font-weight: $font-weight-light !important; }
|
|
80
|
+
|
|
81
|
+
@each $key, $size in $font-sizes {
|
|
82
|
+
.fs-#{$key} { font-size: $size !important; }
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Text colors
|
|
86
|
+
@each $name, $color in $theme-colors {
|
|
87
|
+
.text-#{$name} { color: $color !important; }
|
|
88
|
+
}
|
|
89
|
+
.text-muted { color: $muted !important; }
|
|
90
|
+
.text-white { color: $white !important; }
|
|
91
|
+
|
|
92
|
+
// Background colors
|
|
93
|
+
@each $name, $color in $theme-colors {
|
|
94
|
+
.bg-#{$name} { background-color: $color !important; }
|
|
95
|
+
}
|
|
96
|
+
.bg-white { background-color: $white !important; }
|
|
97
|
+
|
|
98
|
+
// Borders
|
|
99
|
+
.border { border: 1px solid rgba($black, 0.1) !important; }
|
|
100
|
+
.border-0 { border: 0 !important; }
|
|
101
|
+
.rounded { border-radius: $border-radius !important; }
|
|
102
|
+
.rounded-0 { border-radius: 0 !important; }
|
|
103
|
+
.rounded-circle { border-radius: 50% !important; }
|
|
104
|
+
.rounded-pill { border-radius: $border-radius-pill !important; }
|
|
105
|
+
|
|
106
|
+
// Width and height
|
|
107
|
+
@each $val in 25, 50, 75, 100 {
|
|
108
|
+
.w-#{$val} { width: percentage($val / 100) !important; }
|
|
109
|
+
.h-#{$val} { height: percentage($val / 100) !important; }
|
|
110
|
+
}
|
|
111
|
+
.mw-100 { max-width: 100% !important; }
|
|
112
|
+
.mh-100 { max-height: 100% !important; }
|
|
113
|
+
|
|
114
|
+
// Position
|
|
115
|
+
.position-relative { position: relative !important; }
|
|
116
|
+
.position-absolute { position: absolute !important; }
|
|
117
|
+
.position-fixed { position: fixed !important; }
|
|
118
|
+
.position-sticky { position: sticky !important; }
|
|
119
|
+
.position-static { position: static !important; }
|
|
120
|
+
|
|
121
|
+
// Visibility
|
|
122
|
+
.visible { visibility: visible !important; }
|
|
123
|
+
.invisible { visibility: hidden !important; }
|
|
124
|
+
|
|
125
|
+
.overflow-hidden { overflow: hidden !important; }
|
|
126
|
+
.overflow-auto { overflow: auto !important; }
|
|
127
|
+
|
|
128
|
+
// Shadows
|
|
129
|
+
.shadow { box-shadow: $shadow !important; }
|
|
130
|
+
.shadow-sm { box-shadow: $shadow-sm !important; }
|
|
131
|
+
.shadow-lg { box-shadow: $shadow-lg !important; }
|
|
132
|
+
.shadow-none { box-shadow: none !important; }
|
|
133
|
+
|
|
134
|
+
// Collapse
|
|
135
|
+
.collapse { display: none; &.show { display: block; } }
|
|
136
|
+
|
|
137
|
+
// Fade transition
|
|
138
|
+
.fade { opacity: 0; transition: opacity 0.15s linear; &.show { opacity: 1; } }
|
|
139
|
+
|
|
140
|
+
// Misc
|
|
141
|
+
.clearfix::after { display: block; clear: both; content: ""; }
|
|
142
|
+
.cursor-pointer { cursor: pointer !important; }
|
|
143
|
+
|
|
144
|
+
// Close button (replaces Bootstrap's btn-close)
|
|
145
|
+
.btn-close {
|
|
146
|
+
box-sizing: content-box;
|
|
147
|
+
width: 1em;
|
|
148
|
+
height: 1em;
|
|
149
|
+
padding: 0.25em;
|
|
150
|
+
color: $black;
|
|
151
|
+
background: transparent;
|
|
152
|
+
border: 0;
|
|
153
|
+
opacity: 0.5;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
font-size: 1.25rem;
|
|
156
|
+
line-height: 1;
|
|
157
|
+
&:hover { opacity: 0.75; }
|
|
158
|
+
&:focus { opacity: 1; outline: 0; box-shadow: 0 0 0 0.2rem rgba($primary, 0.25); }
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// Image utilities
|
|
162
|
+
.img-fluid { max-width: 100%; height: auto; }
|
|
163
|
+
.img-thumbnail {
|
|
164
|
+
padding: 0.25rem;
|
|
165
|
+
background-color: $body-bg;
|
|
166
|
+
border: 1px solid rgba($black, 0.1);
|
|
167
|
+
border-radius: $border-radius;
|
|
168
|
+
max-width: 100%;
|
|
169
|
+
height: auto;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Border top/bottom helpers
|
|
173
|
+
.border-top { border-top: 1px solid rgba($black, 0.1) !important; }
|
|
174
|
+
.border-bottom { border-bottom: 1px solid rgba($black, 0.1) !important; }
|
|
175
|
+
|
|
176
|
+
// Vertical alignment
|
|
177
|
+
.align-middle { vertical-align: middle !important; }
|
|
178
|
+
.align-top { vertical-align: top !important; }
|
|
179
|
+
.align-bottom { vertical-align: bottom !important; }
|
|
180
|
+
|
|
181
|
+
// Float
|
|
182
|
+
.float-start { float: left !important; }
|
|
183
|
+
.float-end { float: right !important; }
|
|
184
|
+
.float-none { float: none !important; }
|
|
185
|
+
|
|
186
|
+
// Screen reader only
|
|
187
|
+
.visually-hidden {
|
|
188
|
+
position: absolute !important;
|
|
189
|
+
width: 1px !important;
|
|
190
|
+
height: 1px !important;
|
|
191
|
+
padding: 0 !important;
|
|
192
|
+
margin: -1px !important;
|
|
193
|
+
overflow: hidden !important;
|
|
194
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
195
|
+
white-space: nowrap !important;
|
|
196
|
+
border: 0 !important;
|
|
197
|
+
}
|