lesli 5.0.2 → 5.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/lesli_manifest.js +2 -1
- data/app/assets/javascripts/lesli/users/confirmations.js +32 -0
- data/app/assets/javascripts/lesli/users/passwords.js +3 -3
- data/app/assets/javascripts/lesli/users/registrations.js +2 -2
- data/app/assets/javascripts/lesli/users/sessions.js +2 -2
- data/app/assets/stylesheets/lesli/users/confirmations.scss +28 -6
- data/app/controllers/lesli/abouts_controller.rb +66 -0
- data/app/controllers/lesli/interfaces/application/authorization.rb +2 -2
- data/app/controllers/lesli/interfaces/application/logger.rb +14 -38
- data/app/controllers/lesli/roles_controller.rb +3 -1
- data/app/controllers/users/confirmations_controller.rb +63 -27
- data/app/controllers/users/passwords_controller.rb +70 -30
- data/app/controllers/users/sessions_controller.rb +2 -4
- data/app/lib/lesli/system.rb +13 -5
- data/app/mailers/lesli/application_lesli_mailer.rb +8 -19
- data/app/mailers/lesli/devise_mailer.rb +29 -3
- data/app/models/concerns/account_initializer.rb +91 -0
- data/app/models/concerns/{user_guard.rb → user_security.rb} +7 -8
- data/app/models/lesli/account.rb +8 -26
- data/app/models/lesli/application_lesli_record.rb +1 -0
- data/app/models/lesli/descriptor/privilege.rb +38 -0
- data/app/models/lesli/descriptor.rb +18 -1
- data/app/models/lesli/role/power.rb +70 -0
- data/app/models/lesli/role/privilege.rb +38 -0
- data/app/models/lesli/role.rb +20 -15
- data/app/models/lesli/user/{role.rb → power.rb} +1 -1
- data/app/{services/lesli/role_service.rb → models/lesli/user/setting.rb} +10 -9
- data/app/models/lesli/user.rb +11 -20
- data/app/operators/lesli/descriptor_privilege_operator.rb +75 -0
- data/app/operators/lesli/role_power_operator.rb +108 -0
- data/app/operators/lesli/user_registration_operator.rb +121 -0
- data/app/services/lesli/user_service.rb +2 -4
- data/app/services/lesli/{user/session_service.rb → user_session_service.rb} +11 -4
- data/app/views/devise/confirmations/new.html.erb +0 -14
- data/app/views/devise/confirmations/show.html.erb +63 -0
- data/app/views/devise/passwords/edit.html.erb +78 -24
- data/app/views/devise/passwords/new.html.erb +1 -2
- data/app/views/lesli/emails/devise_mailer/confirmation_instructions.html.erb +1 -1
- data/app/views/lesli/emails/devise_mailer/reset_password_instructions.html.erb +23 -0
- data/app/views/lesli/partials/_application-lesli-header.html.erb +3 -1
- data/config/initializers/devise.rb +2 -0
- data/config/routes.rb +2 -0
- data/db/migrate/v1.0/0010000110_create_lesli_accounts.rb +2 -0
- data/db/{tables/0010001010_create_account_settings.rb → migrate/v1.0/0010001010_create_lesli_account_settings.rb} +5 -5
- data/db/{tables/0010003110_create_user_settings.rb → migrate/v1.0/0010003110_create_lesli_user_settings.rb} +4 -4
- data/db/migrate/v1.0/0010003210_create_lesli_user_sessions.rb +6 -2
- data/db/migrate/v1.0/{0010003410_create_lesli_user_roles.rb → 0010003410_create_lesli_user_powers.rb} +4 -4
- data/db/migrate/v1.0/0010005010_create_lesli_descriptors.rb +1 -1
- data/db/migrate/v1.0/{0010003910_create_lesli_user_agents.rb → 0010005510_create_lesli_role_powers.rb} +7 -9
- data/db/{tables/0010005710_create_role_privileges.rb → migrate/v1.0/0010005710_create_lesli_role_privileges.rb} +6 -6
- data/db/seed/development/users.rb +4 -4
- data/db/seed/tools.rb +4 -4
- data/lib/lesli/engine.rb +33 -10
- data/lib/lesli/version.rb +1 -1
- data/lib/sass/lesli/bulma/loader.scss +3 -0
- data/lib/sass/lesli/pages/devise-simple.scss +2 -1
- data/lib/tasks/lesli/controllers.rake +3 -6
- data/lib/tasks/lesli/db.rake +11 -1
- data/lib/tasks/lesli/role.rake +54 -0
- data/lib/vue/application.js +9 -2
- data/lib/vue/devise/passwords.js +3 -3
- data/lib/vue/layouts/application-header.vue +10 -3
- data/lib/webpack/core.js +2 -1
- data/readme.md +23 -7
- data/vendor/bulma/LICENSE +21 -0
- data/vendor/bulma/bulma.sass +10 -0
- data/vendor/bulma/css/bulma-rtl.css +11851 -0
- data/vendor/bulma/css/bulma-rtl.min.css +1 -0
- data/vendor/bulma/css/bulma.css +11851 -0
- data/vendor/bulma/css/bulma.min.css +1 -0
- data/vendor/bulma/sass/base/_all.sass +6 -0
- data/vendor/bulma/sass/base/animations.sass +5 -0
- data/vendor/bulma/sass/base/generic.sass +145 -0
- data/vendor/bulma/sass/base/helpers.sass +1 -0
- data/vendor/bulma/sass/base/minireset.sass +79 -0
- data/vendor/bulma/sass/components/_all.sass +15 -0
- data/vendor/bulma/sass/components/breadcrumb.sass +77 -0
- data/vendor/bulma/sass/components/card.sass +103 -0
- data/vendor/bulma/sass/components/dropdown.sass +83 -0
- data/vendor/bulma/sass/components/level.sass +79 -0
- data/vendor/bulma/sass/components/media.sass +59 -0
- data/vendor/bulma/sass/components/menu.sass +59 -0
- data/vendor/bulma/sass/components/message.sass +101 -0
- data/vendor/bulma/sass/components/modal.sass +117 -0
- data/vendor/bulma/sass/components/navbar.sass +446 -0
- data/vendor/bulma/sass/components/pagination.sass +167 -0
- data/vendor/bulma/sass/components/panel.sass +121 -0
- data/vendor/bulma/sass/components/tabs.sass +176 -0
- data/vendor/bulma/sass/elements/_all.sass +16 -0
- data/vendor/bulma/sass/elements/box.sass +26 -0
- data/vendor/bulma/sass/elements/button.sass +357 -0
- data/vendor/bulma/sass/elements/container.sass +29 -0
- data/vendor/bulma/sass/elements/content.sass +162 -0
- data/vendor/bulma/sass/elements/form.sass +1 -0
- data/vendor/bulma/sass/elements/icon.sass +46 -0
- data/vendor/bulma/sass/elements/image.sass +73 -0
- data/vendor/bulma/sass/elements/notification.sass +52 -0
- data/vendor/bulma/sass/elements/other.sass +31 -0
- data/vendor/bulma/sass/elements/progress.sass +73 -0
- data/vendor/bulma/sass/elements/table.sass +134 -0
- data/vendor/bulma/sass/elements/tag.sass +140 -0
- data/vendor/bulma/sass/elements/title.sass +70 -0
- data/vendor/bulma/sass/form/_all.sass +9 -0
- data/vendor/bulma/sass/form/checkbox-radio.sass +22 -0
- data/vendor/bulma/sass/form/file.sass +184 -0
- data/vendor/bulma/sass/form/input-textarea.sass +66 -0
- data/vendor/bulma/sass/form/select.sass +88 -0
- data/vendor/bulma/sass/form/shared.sass +60 -0
- data/vendor/bulma/sass/form/tools.sass +215 -0
- data/vendor/bulma/sass/grid/_all.sass +5 -0
- data/vendor/bulma/sass/grid/columns.sass +513 -0
- data/vendor/bulma/sass/grid/tiles.sass +36 -0
- data/vendor/bulma/sass/helpers/_all.sass +12 -0
- data/vendor/bulma/sass/helpers/color.sass +39 -0
- data/vendor/bulma/sass/helpers/flexbox.sass +35 -0
- data/vendor/bulma/sass/helpers/float.sass +10 -0
- data/vendor/bulma/sass/helpers/other.sass +14 -0
- data/vendor/bulma/sass/helpers/overflow.sass +2 -0
- data/vendor/bulma/sass/helpers/position.sass +7 -0
- data/vendor/bulma/sass/helpers/spacing.sass +31 -0
- data/vendor/bulma/sass/helpers/typography.sass +103 -0
- data/vendor/bulma/sass/helpers/visibility.sass +122 -0
- data/vendor/bulma/sass/layout/_all.sass +6 -0
- data/vendor/bulma/sass/layout/footer.sass +11 -0
- data/vendor/bulma/sass/layout/hero.sass +153 -0
- data/vendor/bulma/sass/layout/section.sass +17 -0
- data/vendor/bulma/sass/utilities/_all.sass +9 -0
- data/vendor/bulma/sass/utilities/animations.sass +1 -0
- data/vendor/bulma/sass/utilities/controls.sass +49 -0
- data/vendor/bulma/sass/utilities/derived-variables.sass +114 -0
- data/vendor/bulma/sass/utilities/extends.sass +25 -0
- data/vendor/bulma/sass/utilities/functions.sass +135 -0
- data/vendor/bulma/sass/utilities/initial-variables.sass +79 -0
- data/vendor/bulma/sass/utilities/mixins.sass +303 -0
- data/vendor/lesli-css/_index.scss +34 -0
- data/vendor/lesli-css/lesli.scss +51 -0
- data/vendor/lesli-css/license +28 -0
- data/vendor/lesli-css/src/base/fonts.scss +50 -0
- data/vendor/lesli-css/src/base/normalize.scss +118 -0
- data/vendor/lesli-css/src/components/blockquote.scss +61 -0
- data/vendor/lesli-css/src/components/columns.scss +92 -0
- data/vendor/lesli-css/src/components/container.scss +47 -0
- data/vendor/lesli-css/src/components/grid.scss +0 -0
- data/vendor/lesli-css/src/components/navigation.scss +59 -0
- data/vendor/lesli-css/src/functions/colors.scss +184 -0
- data/vendor/lesli-css/src/helpers/units.scss +44 -0
- data/vendor/lesli-css/src/mixins/breakpoint.scss +184 -0
- data/vendor/lesli-css/src/mixins/flex.scss +80 -0
- data/vendor/lesli-css/src/mixins/scrollbar.scss +46 -0
- data/vendor/lesli-css/src/settings/variables.scss +26 -0
- data/vendor/lesli-css/tests/base/normalize.spec.scss +125 -0
- data/vendor/lesli-css/tests/functions/colors.spec.scss +117 -0
- data/vendor/lesli-css/tests/mixins/breakpoint.spec.scss +429 -0
- data/vendor/lesli-css/tests/mixins/scrollbar.spec.scss +82 -0
- data/vendor/lesli-css/vendor/normalize.scss +351 -0
- data/vendor/remixicon/License +201 -0
- data/vendor/remixicon/fonts/remixicon.css +2583 -0
- metadata +116 -18
- data/app/models/concerns/account_engines.rb +0 -249
- data/app/models/concerns/user_polyfill.rb +0 -134
- data/config/locales/translations.en.yml +0 -7
- data/config/locales/translations.es.yml +0 -7
- data/db/migrate/v1.0/0010001510_create_lesli_account_requests.rb +0 -45
- data/db/migrate/v1.0/0010003810_create_lesli_user_requests.rb +0 -44
- data/db/tables/0010005510_create_role_descriptors.rb +0 -44
@@ -0,0 +1,103 @@
|
|
1
|
+
@import "../utilities/mixins"
|
2
|
+
|
3
|
+
=typography-size($target:'')
|
4
|
+
@each $size in $sizes
|
5
|
+
$i: index($sizes, $size)
|
6
|
+
.is-size-#{$i}#{if($target == '', '', '-' + $target)}
|
7
|
+
font-size: $size !important
|
8
|
+
|
9
|
+
+typography-size()
|
10
|
+
|
11
|
+
+mobile
|
12
|
+
+typography-size('mobile')
|
13
|
+
|
14
|
+
+tablet
|
15
|
+
+typography-size('tablet')
|
16
|
+
|
17
|
+
+touch
|
18
|
+
+typography-size('touch')
|
19
|
+
|
20
|
+
+desktop
|
21
|
+
+typography-size('desktop')
|
22
|
+
|
23
|
+
+widescreen
|
24
|
+
+typography-size('widescreen')
|
25
|
+
|
26
|
+
+fullhd
|
27
|
+
+typography-size('fullhd')
|
28
|
+
|
29
|
+
$alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'right': 'right')
|
30
|
+
|
31
|
+
@each $alignment, $text-align in $alignments
|
32
|
+
.has-text-#{$alignment}
|
33
|
+
text-align: #{$text-align} !important
|
34
|
+
|
35
|
+
@each $alignment, $text-align in $alignments
|
36
|
+
+mobile
|
37
|
+
.has-text-#{$alignment}-mobile
|
38
|
+
text-align: #{$text-align} !important
|
39
|
+
+tablet
|
40
|
+
.has-text-#{$alignment}-tablet
|
41
|
+
text-align: #{$text-align} !important
|
42
|
+
+tablet-only
|
43
|
+
.has-text-#{$alignment}-tablet-only
|
44
|
+
text-align: #{$text-align} !important
|
45
|
+
+touch
|
46
|
+
.has-text-#{$alignment}-touch
|
47
|
+
text-align: #{$text-align} !important
|
48
|
+
+desktop
|
49
|
+
.has-text-#{$alignment}-desktop
|
50
|
+
text-align: #{$text-align} !important
|
51
|
+
+desktop-only
|
52
|
+
.has-text-#{$alignment}-desktop-only
|
53
|
+
text-align: #{$text-align} !important
|
54
|
+
+widescreen
|
55
|
+
.has-text-#{$alignment}-widescreen
|
56
|
+
text-align: #{$text-align} !important
|
57
|
+
+widescreen-only
|
58
|
+
.has-text-#{$alignment}-widescreen-only
|
59
|
+
text-align: #{$text-align} !important
|
60
|
+
+fullhd
|
61
|
+
.has-text-#{$alignment}-fullhd
|
62
|
+
text-align: #{$text-align} !important
|
63
|
+
|
64
|
+
.is-capitalized
|
65
|
+
text-transform: capitalize !important
|
66
|
+
|
67
|
+
.is-lowercase
|
68
|
+
text-transform: lowercase !important
|
69
|
+
|
70
|
+
.is-uppercase
|
71
|
+
text-transform: uppercase !important
|
72
|
+
|
73
|
+
.is-italic
|
74
|
+
font-style: italic !important
|
75
|
+
|
76
|
+
.is-underlined
|
77
|
+
text-decoration: underline !important
|
78
|
+
|
79
|
+
.has-text-weight-light
|
80
|
+
font-weight: $weight-light !important
|
81
|
+
.has-text-weight-normal
|
82
|
+
font-weight: $weight-normal !important
|
83
|
+
.has-text-weight-medium
|
84
|
+
font-weight: $weight-medium !important
|
85
|
+
.has-text-weight-semibold
|
86
|
+
font-weight: $weight-semibold !important
|
87
|
+
.has-text-weight-bold
|
88
|
+
font-weight: $weight-bold !important
|
89
|
+
|
90
|
+
.is-family-primary
|
91
|
+
font-family: $family-primary !important
|
92
|
+
|
93
|
+
.is-family-secondary
|
94
|
+
font-family: $family-secondary !important
|
95
|
+
|
96
|
+
.is-family-sans-serif
|
97
|
+
font-family: $family-sans-serif !important
|
98
|
+
|
99
|
+
.is-family-monospace
|
100
|
+
font-family: $family-monospace !important
|
101
|
+
|
102
|
+
.is-family-code
|
103
|
+
font-family: $family-code !important
|
@@ -0,0 +1,122 @@
|
|
1
|
+
@import "../utilities/mixins"
|
2
|
+
|
3
|
+
$displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
|
4
|
+
|
5
|
+
@each $display in $displays
|
6
|
+
.is-#{$display}
|
7
|
+
display: #{$display} !important
|
8
|
+
+mobile
|
9
|
+
.is-#{$display}-mobile
|
10
|
+
display: #{$display} !important
|
11
|
+
+tablet
|
12
|
+
.is-#{$display}-tablet
|
13
|
+
display: #{$display} !important
|
14
|
+
+tablet-only
|
15
|
+
.is-#{$display}-tablet-only
|
16
|
+
display: #{$display} !important
|
17
|
+
+touch
|
18
|
+
.is-#{$display}-touch
|
19
|
+
display: #{$display} !important
|
20
|
+
+desktop
|
21
|
+
.is-#{$display}-desktop
|
22
|
+
display: #{$display} !important
|
23
|
+
+desktop-only
|
24
|
+
.is-#{$display}-desktop-only
|
25
|
+
display: #{$display} !important
|
26
|
+
+widescreen
|
27
|
+
.is-#{$display}-widescreen
|
28
|
+
display: #{$display} !important
|
29
|
+
+widescreen-only
|
30
|
+
.is-#{$display}-widescreen-only
|
31
|
+
display: #{$display} !important
|
32
|
+
+fullhd
|
33
|
+
.is-#{$display}-fullhd
|
34
|
+
display: #{$display} !important
|
35
|
+
|
36
|
+
.is-hidden
|
37
|
+
display: none !important
|
38
|
+
|
39
|
+
.is-sr-only
|
40
|
+
border: none !important
|
41
|
+
clip: rect(0, 0, 0, 0) !important
|
42
|
+
height: 0.01em !important
|
43
|
+
overflow: hidden !important
|
44
|
+
padding: 0 !important
|
45
|
+
position: absolute !important
|
46
|
+
white-space: nowrap !important
|
47
|
+
width: 0.01em !important
|
48
|
+
|
49
|
+
+mobile
|
50
|
+
.is-hidden-mobile
|
51
|
+
display: none !important
|
52
|
+
|
53
|
+
+tablet
|
54
|
+
.is-hidden-tablet
|
55
|
+
display: none !important
|
56
|
+
|
57
|
+
+tablet-only
|
58
|
+
.is-hidden-tablet-only
|
59
|
+
display: none !important
|
60
|
+
|
61
|
+
+touch
|
62
|
+
.is-hidden-touch
|
63
|
+
display: none !important
|
64
|
+
|
65
|
+
+desktop
|
66
|
+
.is-hidden-desktop
|
67
|
+
display: none !important
|
68
|
+
|
69
|
+
+desktop-only
|
70
|
+
.is-hidden-desktop-only
|
71
|
+
display: none !important
|
72
|
+
|
73
|
+
+widescreen
|
74
|
+
.is-hidden-widescreen
|
75
|
+
display: none !important
|
76
|
+
|
77
|
+
+widescreen-only
|
78
|
+
.is-hidden-widescreen-only
|
79
|
+
display: none !important
|
80
|
+
|
81
|
+
+fullhd
|
82
|
+
.is-hidden-fullhd
|
83
|
+
display: none !important
|
84
|
+
|
85
|
+
.is-invisible
|
86
|
+
visibility: hidden !important
|
87
|
+
|
88
|
+
+mobile
|
89
|
+
.is-invisible-mobile
|
90
|
+
visibility: hidden !important
|
91
|
+
|
92
|
+
+tablet
|
93
|
+
.is-invisible-tablet
|
94
|
+
visibility: hidden !important
|
95
|
+
|
96
|
+
+tablet-only
|
97
|
+
.is-invisible-tablet-only
|
98
|
+
visibility: hidden !important
|
99
|
+
|
100
|
+
+touch
|
101
|
+
.is-invisible-touch
|
102
|
+
visibility: hidden !important
|
103
|
+
|
104
|
+
+desktop
|
105
|
+
.is-invisible-desktop
|
106
|
+
visibility: hidden !important
|
107
|
+
|
108
|
+
+desktop-only
|
109
|
+
.is-invisible-desktop-only
|
110
|
+
visibility: hidden !important
|
111
|
+
|
112
|
+
+widescreen
|
113
|
+
.is-invisible-widescreen
|
114
|
+
visibility: hidden !important
|
115
|
+
|
116
|
+
+widescreen-only
|
117
|
+
.is-invisible-widescreen-only
|
118
|
+
visibility: hidden !important
|
119
|
+
|
120
|
+
+fullhd
|
121
|
+
.is-invisible-fullhd
|
122
|
+
visibility: hidden !important
|
@@ -0,0 +1,11 @@
|
|
1
|
+
@import "../utilities/derived-variables"
|
2
|
+
|
3
|
+
$footer-background-color: $scheme-main-bis !default
|
4
|
+
$footer-color: false !default
|
5
|
+
$footer-padding: 3rem 1.5rem 6rem !default
|
6
|
+
|
7
|
+
.footer
|
8
|
+
background-color: $footer-background-color
|
9
|
+
padding: $footer-padding
|
10
|
+
@if $footer-color
|
11
|
+
color: $footer-color
|
@@ -0,0 +1,153 @@
|
|
1
|
+
@import "../utilities/mixins"
|
2
|
+
|
3
|
+
$hero-body-padding: 3rem 1.5rem !default
|
4
|
+
$hero-body-padding-tablet: 3rem 3rem !default
|
5
|
+
$hero-body-padding-small: 1.5rem !default
|
6
|
+
$hero-body-padding-medium: 9rem 4.5rem !default
|
7
|
+
$hero-body-padding-large: 18rem 6rem !default
|
8
|
+
|
9
|
+
$hero-colors: $colors !default
|
10
|
+
|
11
|
+
// Main container
|
12
|
+
.hero
|
13
|
+
align-items: stretch
|
14
|
+
display: flex
|
15
|
+
flex-direction: column
|
16
|
+
justify-content: space-between
|
17
|
+
.navbar
|
18
|
+
background: none
|
19
|
+
.tabs
|
20
|
+
ul
|
21
|
+
border-bottom: none
|
22
|
+
// Colors
|
23
|
+
@each $name, $pair in $hero-colors
|
24
|
+
$color: nth($pair, 1)
|
25
|
+
$color-invert: nth($pair, 2)
|
26
|
+
&.is-#{$name}
|
27
|
+
background-color: $color
|
28
|
+
color: $color-invert
|
29
|
+
a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),
|
30
|
+
strong
|
31
|
+
color: inherit
|
32
|
+
.title
|
33
|
+
color: $color-invert
|
34
|
+
.subtitle
|
35
|
+
color: bulmaRgba($color-invert, 0.9)
|
36
|
+
a:not(.button),
|
37
|
+
strong
|
38
|
+
color: $color-invert
|
39
|
+
.navbar-menu
|
40
|
+
+touch
|
41
|
+
background-color: $color
|
42
|
+
.navbar-item,
|
43
|
+
.navbar-link
|
44
|
+
color: bulmaRgba($color-invert, 0.7)
|
45
|
+
a.navbar-item,
|
46
|
+
.navbar-link
|
47
|
+
&:hover,
|
48
|
+
&.is-active
|
49
|
+
background-color: bulmaDarken($color, 5%)
|
50
|
+
color: $color-invert
|
51
|
+
.tabs
|
52
|
+
a
|
53
|
+
color: $color-invert
|
54
|
+
opacity: 0.9
|
55
|
+
&:hover
|
56
|
+
opacity: 1
|
57
|
+
li
|
58
|
+
&.is-active a
|
59
|
+
color: $color !important
|
60
|
+
opacity: 1
|
61
|
+
&.is-boxed,
|
62
|
+
&.is-toggle
|
63
|
+
a
|
64
|
+
color: $color-invert
|
65
|
+
&:hover
|
66
|
+
background-color: bulmaRgba($scheme-invert, 0.1)
|
67
|
+
li.is-active a
|
68
|
+
&,
|
69
|
+
&:hover
|
70
|
+
background-color: $color-invert
|
71
|
+
border-color: $color-invert
|
72
|
+
color: $color
|
73
|
+
// Modifiers
|
74
|
+
@if type-of($color) == 'color'
|
75
|
+
&.is-bold
|
76
|
+
$gradient-top-left: darken(saturate(adjust-hue($color, -10deg), 10%), 10%)
|
77
|
+
$gradient-bottom-right: lighten(saturate(adjust-hue($color, 10deg), 5%), 5%)
|
78
|
+
background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
|
79
|
+
+mobile
|
80
|
+
.navbar-menu
|
81
|
+
background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
|
82
|
+
// Sizes
|
83
|
+
&.is-small
|
84
|
+
.hero-body
|
85
|
+
padding: $hero-body-padding-small
|
86
|
+
&.is-medium
|
87
|
+
+tablet
|
88
|
+
.hero-body
|
89
|
+
padding: $hero-body-padding-medium
|
90
|
+
&.is-large
|
91
|
+
+tablet
|
92
|
+
.hero-body
|
93
|
+
padding: $hero-body-padding-large
|
94
|
+
&.is-halfheight,
|
95
|
+
&.is-fullheight,
|
96
|
+
&.is-fullheight-with-navbar
|
97
|
+
.hero-body
|
98
|
+
align-items: center
|
99
|
+
display: flex
|
100
|
+
& > .container
|
101
|
+
flex-grow: 1
|
102
|
+
flex-shrink: 1
|
103
|
+
&.is-halfheight
|
104
|
+
min-height: 50vh
|
105
|
+
&.is-fullheight
|
106
|
+
min-height: 100vh
|
107
|
+
|
108
|
+
// Components
|
109
|
+
|
110
|
+
.hero-video
|
111
|
+
@extend %overlay
|
112
|
+
overflow: hidden
|
113
|
+
video
|
114
|
+
left: 50%
|
115
|
+
min-height: 100%
|
116
|
+
min-width: 100%
|
117
|
+
position: absolute
|
118
|
+
top: 50%
|
119
|
+
transform: translate3d(-50%, -50%, 0)
|
120
|
+
// Modifiers
|
121
|
+
&.is-transparent
|
122
|
+
opacity: 0.3
|
123
|
+
// Responsiveness
|
124
|
+
+mobile
|
125
|
+
display: none
|
126
|
+
|
127
|
+
.hero-buttons
|
128
|
+
margin-top: 1.5rem
|
129
|
+
// Responsiveness
|
130
|
+
+mobile
|
131
|
+
.button
|
132
|
+
display: flex
|
133
|
+
&:not(:last-child)
|
134
|
+
margin-bottom: 0.75rem
|
135
|
+
+tablet
|
136
|
+
display: flex
|
137
|
+
justify-content: center
|
138
|
+
.button:not(:last-child)
|
139
|
+
+ltr-property("margin", 1.5rem)
|
140
|
+
|
141
|
+
// Containers
|
142
|
+
|
143
|
+
.hero-head,
|
144
|
+
.hero-foot
|
145
|
+
flex-grow: 0
|
146
|
+
flex-shrink: 0
|
147
|
+
|
148
|
+
.hero-body
|
149
|
+
flex-grow: 1
|
150
|
+
flex-shrink: 0
|
151
|
+
padding: $hero-body-padding
|
152
|
+
+tablet
|
153
|
+
padding: $hero-body-padding-tablet
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@import "../utilities/mixins"
|
2
|
+
|
3
|
+
$section-padding: 3rem 1.5rem !default
|
4
|
+
$section-padding-desktop: 3rem 3rem !default
|
5
|
+
$section-padding-medium: 9rem 4.5rem !default
|
6
|
+
$section-padding-large: 18rem 6rem !default
|
7
|
+
|
8
|
+
.section
|
9
|
+
padding: $section-padding
|
10
|
+
// Responsiveness
|
11
|
+
+desktop
|
12
|
+
padding: $section-padding-desktop
|
13
|
+
// Sizes
|
14
|
+
&.is-medium
|
15
|
+
padding: $section-padding-medium
|
16
|
+
&.is-large
|
17
|
+
padding: $section-padding-large
|
@@ -0,0 +1 @@
|
|
1
|
+
@warn "The animations.sass file has MOVED. It is now in the /base folder. Please import sass/base/animations instead."
|
@@ -0,0 +1,49 @@
|
|
1
|
+
@import "derived-variables"
|
2
|
+
|
3
|
+
$control-radius: $radius !default
|
4
|
+
$control-radius-small: $radius-small !default
|
5
|
+
|
6
|
+
$control-border-width: 1px !default
|
7
|
+
|
8
|
+
$control-height: 2.5em !default
|
9
|
+
$control-line-height: 1.5 !default
|
10
|
+
|
11
|
+
$control-padding-vertical: calc(0.5em - #{$control-border-width}) !default
|
12
|
+
$control-padding-horizontal: calc(0.75em - #{$control-border-width}) !default
|
13
|
+
|
14
|
+
=control
|
15
|
+
-moz-appearance: none
|
16
|
+
-webkit-appearance: none
|
17
|
+
align-items: center
|
18
|
+
border: $control-border-width solid transparent
|
19
|
+
border-radius: $control-radius
|
20
|
+
box-shadow: none
|
21
|
+
display: inline-flex
|
22
|
+
font-size: $size-normal
|
23
|
+
height: $control-height
|
24
|
+
justify-content: flex-start
|
25
|
+
line-height: $control-line-height
|
26
|
+
padding-bottom: $control-padding-vertical
|
27
|
+
padding-left: $control-padding-horizontal
|
28
|
+
padding-right: $control-padding-horizontal
|
29
|
+
padding-top: $control-padding-vertical
|
30
|
+
position: relative
|
31
|
+
vertical-align: top
|
32
|
+
// States
|
33
|
+
&:focus,
|
34
|
+
&.is-focused,
|
35
|
+
&:active,
|
36
|
+
&.is-active
|
37
|
+
outline: none
|
38
|
+
&[disabled],
|
39
|
+
fieldset[disabled] &
|
40
|
+
cursor: not-allowed
|
41
|
+
|
42
|
+
// The controls sizes use mixins so they can be used at different breakpoints
|
43
|
+
=control-small
|
44
|
+
border-radius: $control-radius-small
|
45
|
+
font-size: $size-small
|
46
|
+
=control-medium
|
47
|
+
font-size: $size-medium
|
48
|
+
=control-large
|
49
|
+
font-size: $size-large
|
@@ -0,0 +1,114 @@
|
|
1
|
+
@import "initial-variables"
|
2
|
+
@import "functions"
|
3
|
+
|
4
|
+
$primary: $turquoise !default
|
5
|
+
|
6
|
+
$info: $cyan !default
|
7
|
+
$success: $green !default
|
8
|
+
$warning: $yellow !default
|
9
|
+
$danger: $red !default
|
10
|
+
|
11
|
+
$light: $white-ter !default
|
12
|
+
$dark: $grey-darker !default
|
13
|
+
|
14
|
+
// Invert colors
|
15
|
+
|
16
|
+
$orange-invert: findColorInvert($orange) !default
|
17
|
+
$yellow-invert: findColorInvert($yellow) !default
|
18
|
+
$green-invert: findColorInvert($green) !default
|
19
|
+
$turquoise-invert: findColorInvert($turquoise) !default
|
20
|
+
$cyan-invert: findColorInvert($cyan) !default
|
21
|
+
$blue-invert: findColorInvert($blue) !default
|
22
|
+
$purple-invert: findColorInvert($purple) !default
|
23
|
+
$red-invert: findColorInvert($red) !default
|
24
|
+
|
25
|
+
$primary-invert: findColorInvert($primary) !default
|
26
|
+
$primary-light: findLightColor($primary) !default
|
27
|
+
$primary-dark: findDarkColor($primary) !default
|
28
|
+
$info-invert: findColorInvert($info) !default
|
29
|
+
$info-light: findLightColor($info) !default
|
30
|
+
$info-dark: findDarkColor($info) !default
|
31
|
+
$success-invert: findColorInvert($success) !default
|
32
|
+
$success-light: findLightColor($success) !default
|
33
|
+
$success-dark: findDarkColor($success) !default
|
34
|
+
$warning-invert: findColorInvert($warning) !default
|
35
|
+
$warning-light: findLightColor($warning) !default
|
36
|
+
$warning-dark: findDarkColor($warning) !default
|
37
|
+
$danger-invert: findColorInvert($danger) !default
|
38
|
+
$danger-light: findLightColor($danger) !default
|
39
|
+
$danger-dark: findDarkColor($danger) !default
|
40
|
+
$light-invert: findColorInvert($light) !default
|
41
|
+
$dark-invert: findColorInvert($dark) !default
|
42
|
+
|
43
|
+
// General colors
|
44
|
+
|
45
|
+
$scheme-main: $white !default
|
46
|
+
$scheme-main-bis: $white-bis !default
|
47
|
+
$scheme-main-ter: $white-ter !default
|
48
|
+
$scheme-invert: $black !default
|
49
|
+
$scheme-invert-bis: $black-bis !default
|
50
|
+
$scheme-invert-ter: $black-ter !default
|
51
|
+
|
52
|
+
$background: $white-ter !default
|
53
|
+
|
54
|
+
$border: $grey-lighter !default
|
55
|
+
$border-hover: $grey-light !default
|
56
|
+
$border-light: $grey-lightest !default
|
57
|
+
$border-light-hover: $grey-light !default
|
58
|
+
|
59
|
+
// Text colors
|
60
|
+
|
61
|
+
$text: $grey-dark !default
|
62
|
+
$text-invert: findColorInvert($text) !default
|
63
|
+
$text-light: $grey !default
|
64
|
+
$text-strong: $grey-darker !default
|
65
|
+
|
66
|
+
// Code colors
|
67
|
+
|
68
|
+
$code: darken($red, 15%) !default
|
69
|
+
$code-background: $background !default
|
70
|
+
|
71
|
+
$pre: $text !default
|
72
|
+
$pre-background: $background !default
|
73
|
+
|
74
|
+
// Link colors
|
75
|
+
|
76
|
+
$link: $blue !default
|
77
|
+
$link-invert: findColorInvert($link) !default
|
78
|
+
$link-light: findLightColor($link) !default
|
79
|
+
$link-dark: findDarkColor($link) !default
|
80
|
+
$link-visited: $purple !default
|
81
|
+
|
82
|
+
$link-hover: $grey-darker !default
|
83
|
+
$link-hover-border: $grey-light !default
|
84
|
+
|
85
|
+
$link-focus: $grey-darker !default
|
86
|
+
$link-focus-border: $blue !default
|
87
|
+
|
88
|
+
$link-active: $grey-darker !default
|
89
|
+
$link-active-border: $grey-dark !default
|
90
|
+
|
91
|
+
// Typography
|
92
|
+
|
93
|
+
$family-primary: $family-sans-serif !default
|
94
|
+
$family-secondary: $family-sans-serif !default
|
95
|
+
$family-code: $family-monospace !default
|
96
|
+
|
97
|
+
$size-small: $size-7 !default
|
98
|
+
$size-normal: $size-6 !default
|
99
|
+
$size-medium: $size-5 !default
|
100
|
+
$size-large: $size-4 !default
|
101
|
+
|
102
|
+
// Effects
|
103
|
+
|
104
|
+
$shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
|
105
|
+
|
106
|
+
// Lists and maps
|
107
|
+
$custom-colors: null !default
|
108
|
+
$custom-shades: null !default
|
109
|
+
|
110
|
+
$colors: mergeColorMaps(("white": ($white, $black), "black": ($black, $white), "light": ($light, $light-invert), "dark": ($dark, $dark-invert), "primary": ($primary, $primary-invert, $primary-light, $primary-dark), "link": ($link, $link-invert, $link-light, $link-dark), "info": ($info, $info-invert, $info-light, $info-dark), "success": ($success, $success-invert, $success-light, $success-dark), "warning": ($warning, $warning-invert, $warning-light, $warning-dark), "danger": ($danger, $danger-invert, $danger-light, $danger-dark)), $custom-colors) !default
|
111
|
+
|
112
|
+
$shades: mergeColorMaps(("black-bis": $black-bis, "black-ter": $black-ter, "grey-darker": $grey-darker, "grey-dark": $grey-dark, "grey": $grey, "grey-light": $grey-light, "grey-lighter": $grey-lighter, "white-ter": $white-ter, "white-bis": $white-bis), $custom-shades) !default
|
113
|
+
|
114
|
+
$sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 $size-7 !default
|