vitrina 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +13 -0
- data/.github/FUNDING.yml +4 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/workflows/gempush.yml +41 -0
- data/.gitignore +7 -0
- data/.travis.yml +8 -0
- data/404.md +5 -0
- data/CHANGELOG.md +81 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +501 -0
- data/_config.yml +39 -0
- data/_data/general.json +133 -0
- data/_data/home.json +316 -0
- data/_data/links.json +34 -0
- data/_data/resume.json +80 -0
- data/_includes/foot.html +6 -0
- data/_includes/footer.html +21 -0
- data/_includes/head.html +13 -0
- data/_includes/header.html +63 -0
- data/_includes/pagination.html +75 -0
- data/_includes/util/grid_columns.html +49 -0
- data/_includes/util/item_content.html +8 -0
- data/_includes/util/items.html +69 -0
- data/_includes/util/navbar_items.html +82 -0
- data/_includes/util/prepend_link.html +5 -0
- data/_includes/util/timeline_cards.html +20 -0
- data/_layouts/blog.html +53 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/contact.html +32 -0
- data/_layouts/default.html +33 -0
- data/_layouts/error.html +10 -0
- data/_layouts/home.html +103 -0
- data/_layouts/papers.html +80 -0
- data/_layouts/post.html +33 -0
- data/_layouts/projects.html +58 -0
- data/_layouts/resume.html +62 -0
- data/_papers/A-systematic-review-on-the-productive-effects-of-hobbies.md +15 -0
- data/_papers/Applications-of-open-collaboration-in-software-development.md +14 -0
- data/_posts/2019-04-03-welcome-human.md +52 -0
- data/_projects/Make.md +5 -0
- data/_projects/Meet.md +5 -0
- data/_projects/Mood.md +5 -0
- data/_projects/Take.md +5 -0
- data/_projects/Think.md +5 -0
- data/_sass/_bulma.scss +3 -0
- data/_sass/_fork_awesome.scss +11 -0
- data/_sass/code.scss +128 -0
- data/_sass/customize.scss +69 -0
- data/_sass/elements.scss +489 -0
- data/assets/css/styles.scss +15 -0
- data/assets/img/card.png +0 -0
- data/assets/img/icon.png +0 -0
- data/assets/img/logo.png +0 -0
- data/assets/img/made-with-bulma.png +0 -0
- data/assets/img/make.png +0 -0
- data/assets/img/meet.png +0 -0
- data/assets/img/mood.png +0 -0
- data/assets/img/take.png +0 -0
- data/assets/img/think.png +0 -0
- data/assets/js/navbar.js +10 -0
- data/assets/js/validate.js +77 -0
- data/blog/index.html +4 -0
- data/contact.md +52 -0
- data/index.md +3 -0
- data/node_modules/.yarn-integrity +18 -0
- data/node_modules/bulma/CHANGELOG.md +1459 -0
- data/node_modules/bulma/LICENSE +21 -0
- data/node_modules/bulma/README.md +130 -0
- data/node_modules/bulma/bulma.sass +10 -0
- data/node_modules/bulma/css/bulma-rtl.css +11331 -0
- data/node_modules/bulma/css/bulma-rtl.css.map +1 -0
- data/node_modules/bulma/css/bulma-rtl.min.css +1 -0
- data/node_modules/bulma/css/bulma.css +11331 -0
- data/node_modules/bulma/css/bulma.css.map +1 -0
- data/node_modules/bulma/css/bulma.min.css +1 -0
- data/node_modules/bulma/package.json +56 -0
- data/node_modules/bulma/sass/.DS_Store +0 -0
- data/node_modules/bulma/sass/base/_all.sass +4 -0
- data/node_modules/bulma/sass/base/generic.sass +142 -0
- data/node_modules/bulma/sass/base/helpers.sass +1 -0
- data/node_modules/bulma/sass/base/minireset.sass +79 -0
- data/node_modules/bulma/sass/components/_all.sass +14 -0
- data/node_modules/bulma/sass/components/breadcrumb.sass +75 -0
- data/node_modules/bulma/sass/components/card.sass +79 -0
- data/node_modules/bulma/sass/components/dropdown.sass +81 -0
- data/node_modules/bulma/sass/components/level.sass +77 -0
- data/node_modules/bulma/sass/components/media.sass +52 -0
- data/node_modules/bulma/sass/components/menu.sass +57 -0
- data/node_modules/bulma/sass/components/message.sass +99 -0
- data/node_modules/bulma/sass/components/modal.sass +113 -0
- data/node_modules/bulma/sass/components/navbar.sass +441 -0
- data/node_modules/bulma/sass/components/pagination.sass +150 -0
- data/node_modules/bulma/sass/components/panel.sass +119 -0
- data/node_modules/bulma/sass/components/tabs.sass +174 -0
- data/node_modules/bulma/sass/elements/_all.sass +15 -0
- data/node_modules/bulma/sass/elements/box.sass +24 -0
- data/node_modules/bulma/sass/elements/button.sass +323 -0
- data/node_modules/bulma/sass/elements/container.sass +24 -0
- data/node_modules/bulma/sass/elements/content.sass +155 -0
- data/node_modules/bulma/sass/elements/form.sass +1 -0
- data/node_modules/bulma/sass/elements/icon.sass +21 -0
- data/node_modules/bulma/sass/elements/image.sass +71 -0
- data/node_modules/bulma/sass/elements/notification.sass +48 -0
- data/node_modules/bulma/sass/elements/other.sass +39 -0
- data/node_modules/bulma/sass/elements/progress.sass +67 -0
- data/node_modules/bulma/sass/elements/table.sass +129 -0
- data/node_modules/bulma/sass/elements/tag.sass +136 -0
- data/node_modules/bulma/sass/elements/title.sass +70 -0
- data/node_modules/bulma/sass/form/_all.sass +8 -0
- data/node_modules/bulma/sass/form/checkbox-radio.sass +21 -0
- data/node_modules/bulma/sass/form/file.sass +180 -0
- data/node_modules/bulma/sass/form/input-textarea.sass +64 -0
- data/node_modules/bulma/sass/form/select.sass +85 -0
- data/node_modules/bulma/sass/form/shared.sass +55 -0
- data/node_modules/bulma/sass/form/tools.sass +213 -0
- data/node_modules/bulma/sass/grid/_all.sass +4 -0
- data/node_modules/bulma/sass/grid/columns.sass +504 -0
- data/node_modules/bulma/sass/grid/tiles.sass +34 -0
- data/node_modules/bulma/sass/helpers/_all.sass +10 -0
- data/node_modules/bulma/sass/helpers/color.sass +37 -0
- data/node_modules/bulma/sass/helpers/float.sass +8 -0
- data/node_modules/bulma/sass/helpers/other.sass +8 -0
- data/node_modules/bulma/sass/helpers/overflow.sass +2 -0
- data/node_modules/bulma/sass/helpers/position.sass +5 -0
- data/node_modules/bulma/sass/helpers/spacing.sass +28 -0
- data/node_modules/bulma/sass/helpers/typography.sass +98 -0
- data/node_modules/bulma/sass/helpers/visibility.sass +122 -0
- data/node_modules/bulma/sass/layout/_all.sass +5 -0
- data/node_modules/bulma/sass/layout/footer.sass +9 -0
- data/node_modules/bulma/sass/layout/hero.sass +145 -0
- data/node_modules/bulma/sass/layout/section.sass +13 -0
- data/node_modules/bulma/sass/utilities/.DS_Store +0 -0
- data/node_modules/bulma/sass/utilities/_all.sass +8 -0
- data/node_modules/bulma/sass/utilities/animations.sass +5 -0
- data/node_modules/bulma/sass/utilities/controls.sass +50 -0
- data/node_modules/bulma/sass/utilities/derived-variables.scss +132 -0
- data/node_modules/bulma/sass/utilities/functions.sass +115 -0
- data/node_modules/bulma/sass/utilities/initial-variables.sass +78 -0
- data/node_modules/bulma/sass/utilities/mixins.sass +285 -0
- data/node_modules/fork-awesome/CHANGELOG.md +91 -0
- data/node_modules/fork-awesome/CONTRIBUTORS.md +31 -0
- data/node_modules/fork-awesome/LICENSES +452 -0
- data/node_modules/fork-awesome/README.md +93 -0
- data/node_modules/fork-awesome/css/fork-awesome.css +2573 -0
- data/node_modules/fork-awesome/css/fork-awesome.min.css +12 -0
- data/node_modules/fork-awesome/css/fork-awesome.min.css.map +1 -0
- data/node_modules/fork-awesome/css/v5-compat.css +446 -0
- data/node_modules/fork-awesome/css/v5-compat.min.css +12 -0
- data/node_modules/fork-awesome/css/v5-compat.min.css.map +1 -0
- data/node_modules/fork-awesome/fonts/forkawesome-webfont.eot +0 -0
- data/node_modules/fork-awesome/fonts/forkawesome-webfont.svg +2849 -0
- data/node_modules/fork-awesome/fonts/forkawesome-webfont.ttf +0 -0
- data/node_modules/fork-awesome/fonts/forkawesome-webfont.woff +0 -0
- data/node_modules/fork-awesome/fonts/forkawesome-webfont.woff2 +0 -0
- data/node_modules/fork-awesome/less/animated.less +34 -0
- data/node_modules/fork-awesome/less/bordered-pulled.less +25 -0
- data/node_modules/fork-awesome/less/core.less +12 -0
- data/node_modules/fork-awesome/less/fixed-width.less +6 -0
- data/node_modules/fork-awesome/less/fork-awesome.less +27 -0
- data/node_modules/fork-awesome/less/icons.less +879 -0
- data/node_modules/fork-awesome/less/larger.less +13 -0
- data/node_modules/fork-awesome/less/list.less +19 -0
- data/node_modules/fork-awesome/less/mixins.less +60 -0
- data/node_modules/fork-awesome/less/path.less +15 -0
- data/node_modules/fork-awesome/less/rotated-flipped.less +20 -0
- data/node_modules/fork-awesome/less/screen-reader.less +5 -0
- data/node_modules/fork-awesome/less/stacked.less +20 -0
- data/node_modules/fork-awesome/less/v5-compat.less +176 -0
- data/node_modules/fork-awesome/less/variables.less +890 -0
- data/node_modules/fork-awesome/package.json +49 -0
- data/node_modules/fork-awesome/scss/_animated.scss +34 -0
- data/node_modules/fork-awesome/scss/_bordered-pulled.scss +25 -0
- data/node_modules/fork-awesome/scss/_core.scss +12 -0
- data/node_modules/fork-awesome/scss/_fixed-width.scss +6 -0
- data/node_modules/fork-awesome/scss/_functions.scss +11 -0
- data/node_modules/fork-awesome/scss/_icons.scss +879 -0
- data/node_modules/fork-awesome/scss/_larger.scss +13 -0
- data/node_modules/fork-awesome/scss/_list.scss +19 -0
- data/node_modules/fork-awesome/scss/_mixins.scss +60 -0
- data/node_modules/fork-awesome/scss/_path.scss +15 -0
- data/node_modules/fork-awesome/scss/_rotated-flipped.scss +20 -0
- data/node_modules/fork-awesome/scss/_screen-reader.scss +5 -0
- data/node_modules/fork-awesome/scss/_stacked.scss +20 -0
- data/node_modules/fork-awesome/scss/_variables.scss +890 -0
- data/node_modules/fork-awesome/scss/fork-awesome.scss +28 -0
- data/package.json +32 -0
- data/papers.md +4 -0
- data/projects.md +4 -0
- data/resume.md +4 -0
- data/screenshot.png +0 -0
- data/scripts/build.sh +10 -0
- data/scripts/install.sh +4 -0
- data/scripts/validate.rb +28 -0
- data/vitrina.gemspec +23 -0
- metadata +199 -3
@@ -0,0 +1,81 @@
|
|
1
|
+
$dropdown-menu-min-width: 12rem !default
|
2
|
+
|
3
|
+
$dropdown-content-background-color: $scheme-main !default
|
4
|
+
$dropdown-content-arrow: $link !default
|
5
|
+
$dropdown-content-offset: 4px !default
|
6
|
+
$dropdown-content-padding-bottom: 0.5rem !default
|
7
|
+
$dropdown-content-padding-top: 0.5rem !default
|
8
|
+
$dropdown-content-radius: $radius !default
|
9
|
+
$dropdown-content-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
|
10
|
+
$dropdown-content-z: 20 !default
|
11
|
+
|
12
|
+
$dropdown-item-color: $text !default
|
13
|
+
$dropdown-item-hover-color: $scheme-invert !default
|
14
|
+
$dropdown-item-hover-background-color: $background !default
|
15
|
+
$dropdown-item-active-color: $link-invert !default
|
16
|
+
$dropdown-item-active-background-color: $link !default
|
17
|
+
|
18
|
+
$dropdown-divider-background-color: $border-light !default
|
19
|
+
|
20
|
+
.dropdown
|
21
|
+
display: inline-flex
|
22
|
+
position: relative
|
23
|
+
vertical-align: top
|
24
|
+
&.is-active,
|
25
|
+
&.is-hoverable:hover
|
26
|
+
.dropdown-menu
|
27
|
+
display: block
|
28
|
+
&.is-right
|
29
|
+
.dropdown-menu
|
30
|
+
left: auto
|
31
|
+
right: 0
|
32
|
+
&.is-up
|
33
|
+
.dropdown-menu
|
34
|
+
bottom: 100%
|
35
|
+
padding-bottom: $dropdown-content-offset
|
36
|
+
padding-top: initial
|
37
|
+
top: auto
|
38
|
+
|
39
|
+
.dropdown-menu
|
40
|
+
display: none
|
41
|
+
+ltr-position(0, false)
|
42
|
+
min-width: $dropdown-menu-min-width
|
43
|
+
padding-top: $dropdown-content-offset
|
44
|
+
position: absolute
|
45
|
+
top: 100%
|
46
|
+
z-index: $dropdown-content-z
|
47
|
+
|
48
|
+
.dropdown-content
|
49
|
+
background-color: $dropdown-content-background-color
|
50
|
+
border-radius: $dropdown-content-radius
|
51
|
+
box-shadow: $dropdown-content-shadow
|
52
|
+
padding-bottom: $dropdown-content-padding-bottom
|
53
|
+
padding-top: $dropdown-content-padding-top
|
54
|
+
|
55
|
+
.dropdown-item
|
56
|
+
color: $dropdown-item-color
|
57
|
+
display: block
|
58
|
+
font-size: 0.875rem
|
59
|
+
line-height: 1.5
|
60
|
+
padding: 0.375rem 1rem
|
61
|
+
position: relative
|
62
|
+
|
63
|
+
a.dropdown-item,
|
64
|
+
button.dropdown-item
|
65
|
+
+ltr-property("padding", 3rem)
|
66
|
+
text-align: inherit
|
67
|
+
white-space: nowrap
|
68
|
+
width: 100%
|
69
|
+
&:hover
|
70
|
+
background-color: $dropdown-item-hover-background-color
|
71
|
+
color: $dropdown-item-hover-color
|
72
|
+
&.is-active
|
73
|
+
background-color: $dropdown-item-active-background-color
|
74
|
+
color: $dropdown-item-active-color
|
75
|
+
|
76
|
+
.dropdown-divider
|
77
|
+
background-color: $dropdown-divider-background-color
|
78
|
+
border: none
|
79
|
+
display: block
|
80
|
+
height: 1px
|
81
|
+
margin: 0.5rem 0
|
@@ -0,0 +1,77 @@
|
|
1
|
+
$level-item-spacing: ($block-spacing / 2) !default
|
2
|
+
|
3
|
+
.level
|
4
|
+
@extend %block
|
5
|
+
align-items: center
|
6
|
+
justify-content: space-between
|
7
|
+
code
|
8
|
+
border-radius: $radius
|
9
|
+
img
|
10
|
+
display: inline-block
|
11
|
+
vertical-align: top
|
12
|
+
// Modifiers
|
13
|
+
&.is-mobile
|
14
|
+
display: flex
|
15
|
+
.level-left,
|
16
|
+
.level-right
|
17
|
+
display: flex
|
18
|
+
.level-left + .level-right
|
19
|
+
margin-top: 0
|
20
|
+
.level-item
|
21
|
+
&:not(:last-child)
|
22
|
+
margin-bottom: 0
|
23
|
+
+ltr-property("margin", $level-item-spacing)
|
24
|
+
&:not(.is-narrow)
|
25
|
+
flex-grow: 1
|
26
|
+
// Responsiveness
|
27
|
+
+tablet
|
28
|
+
display: flex
|
29
|
+
& > .level-item
|
30
|
+
&:not(.is-narrow)
|
31
|
+
flex-grow: 1
|
32
|
+
|
33
|
+
.level-item
|
34
|
+
align-items: center
|
35
|
+
display: flex
|
36
|
+
flex-basis: auto
|
37
|
+
flex-grow: 0
|
38
|
+
flex-shrink: 0
|
39
|
+
justify-content: center
|
40
|
+
.title,
|
41
|
+
.subtitle
|
42
|
+
margin-bottom: 0
|
43
|
+
// Responsiveness
|
44
|
+
+mobile
|
45
|
+
&:not(:last-child)
|
46
|
+
margin-bottom: $level-item-spacing
|
47
|
+
|
48
|
+
.level-left,
|
49
|
+
.level-right
|
50
|
+
flex-basis: auto
|
51
|
+
flex-grow: 0
|
52
|
+
flex-shrink: 0
|
53
|
+
.level-item
|
54
|
+
// Modifiers
|
55
|
+
&.is-flexible
|
56
|
+
flex-grow: 1
|
57
|
+
// Responsiveness
|
58
|
+
+tablet
|
59
|
+
&:not(:last-child)
|
60
|
+
+ltr-property("margin", $level-item-spacing)
|
61
|
+
|
62
|
+
.level-left
|
63
|
+
align-items: center
|
64
|
+
justify-content: flex-start
|
65
|
+
// Responsiveness
|
66
|
+
+mobile
|
67
|
+
& + .level-right
|
68
|
+
margin-top: 1.5rem
|
69
|
+
+tablet
|
70
|
+
display: flex
|
71
|
+
|
72
|
+
.level-right
|
73
|
+
align-items: center
|
74
|
+
justify-content: flex-end
|
75
|
+
// Responsiveness
|
76
|
+
+tablet
|
77
|
+
display: flex
|
@@ -0,0 +1,52 @@
|
|
1
|
+
$media-border-color: bulmaRgba($border, 0.5) !default
|
2
|
+
$media-spacing: 1rem
|
3
|
+
$media-spacing-large: 1.5rem
|
4
|
+
|
5
|
+
.media
|
6
|
+
align-items: flex-start
|
7
|
+
display: flex
|
8
|
+
text-align: inherit
|
9
|
+
.content:not(:last-child)
|
10
|
+
margin-bottom: 0.75rem
|
11
|
+
.media
|
12
|
+
border-top: 1px solid $media-border-color
|
13
|
+
display: flex
|
14
|
+
padding-top: 0.75rem
|
15
|
+
.content:not(:last-child),
|
16
|
+
.control:not(:last-child)
|
17
|
+
margin-bottom: 0.5rem
|
18
|
+
.media
|
19
|
+
padding-top: 0.5rem
|
20
|
+
& + .media
|
21
|
+
margin-top: 0.5rem
|
22
|
+
& + .media
|
23
|
+
border-top: 1px solid $media-border-color
|
24
|
+
margin-top: $media-spacing
|
25
|
+
padding-top: $media-spacing
|
26
|
+
// Sizes
|
27
|
+
&.is-large
|
28
|
+
& + .media
|
29
|
+
margin-top: $media-spacing-large
|
30
|
+
padding-top: $media-spacing-large
|
31
|
+
|
32
|
+
.media-left,
|
33
|
+
.media-right
|
34
|
+
flex-basis: auto
|
35
|
+
flex-grow: 0
|
36
|
+
flex-shrink: 0
|
37
|
+
|
38
|
+
.media-left
|
39
|
+
+ltr-property("margin", $media-spacing)
|
40
|
+
|
41
|
+
.media-right
|
42
|
+
+ltr-property("margin", $media-spacing, false)
|
43
|
+
|
44
|
+
.media-content
|
45
|
+
flex-basis: auto
|
46
|
+
flex-grow: 1
|
47
|
+
flex-shrink: 1
|
48
|
+
text-align: inherit
|
49
|
+
|
50
|
+
+mobile
|
51
|
+
.media-content
|
52
|
+
overflow-x: auto
|
@@ -0,0 +1,57 @@
|
|
1
|
+
$menu-item-color: $text !default
|
2
|
+
$menu-item-radius: $radius-small !default
|
3
|
+
$menu-item-hover-color: $text-strong !default
|
4
|
+
$menu-item-hover-background-color: $background !default
|
5
|
+
$menu-item-active-color: $link-invert !default
|
6
|
+
$menu-item-active-background-color: $link !default
|
7
|
+
|
8
|
+
$menu-list-border-left: 1px solid $border !default
|
9
|
+
$menu-list-line-height: 1.25 !default
|
10
|
+
$menu-list-link-padding: 0.5em 0.75em !default
|
11
|
+
$menu-nested-list-margin: 0.75em !default
|
12
|
+
$menu-nested-list-padding-left: 0.75em !default
|
13
|
+
|
14
|
+
$menu-label-color: $text-light !default
|
15
|
+
$menu-label-font-size: 0.75em !default
|
16
|
+
$menu-label-letter-spacing: 0.1em !default
|
17
|
+
$menu-label-spacing: 1em !default
|
18
|
+
|
19
|
+
.menu
|
20
|
+
font-size: $size-normal
|
21
|
+
// Sizes
|
22
|
+
&.is-small
|
23
|
+
font-size: $size-small
|
24
|
+
&.is-medium
|
25
|
+
font-size: $size-medium
|
26
|
+
&.is-large
|
27
|
+
font-size: $size-large
|
28
|
+
|
29
|
+
.menu-list
|
30
|
+
line-height: $menu-list-line-height
|
31
|
+
a
|
32
|
+
border-radius: $menu-item-radius
|
33
|
+
color: $menu-item-color
|
34
|
+
display: block
|
35
|
+
padding: $menu-list-link-padding
|
36
|
+
&:hover
|
37
|
+
background-color: $menu-item-hover-background-color
|
38
|
+
color: $menu-item-hover-color
|
39
|
+
// Modifiers
|
40
|
+
&.is-active
|
41
|
+
background-color: $menu-item-active-background-color
|
42
|
+
color: $menu-item-active-color
|
43
|
+
li
|
44
|
+
ul
|
45
|
+
+ltr-property("border", $menu-list-border-left, false)
|
46
|
+
margin: $menu-nested-list-margin
|
47
|
+
+ltr-property("padding", $menu-nested-list-padding-left, false)
|
48
|
+
|
49
|
+
.menu-label
|
50
|
+
color: $menu-label-color
|
51
|
+
font-size: $menu-label-font-size
|
52
|
+
letter-spacing: $menu-label-letter-spacing
|
53
|
+
text-transform: uppercase
|
54
|
+
&:not(:first-child)
|
55
|
+
margin-top: $menu-label-spacing
|
56
|
+
&:not(:last-child)
|
57
|
+
margin-bottom: $menu-label-spacing
|
@@ -0,0 +1,99 @@
|
|
1
|
+
$message-background-color: $background !default
|
2
|
+
$message-radius: $radius !default
|
3
|
+
|
4
|
+
$message-header-background-color: $text !default
|
5
|
+
$message-header-color: $text-invert !default
|
6
|
+
$message-header-weight: $weight-bold !default
|
7
|
+
$message-header-padding: 0.75em 1em !default
|
8
|
+
$message-header-radius: $radius !default
|
9
|
+
|
10
|
+
$message-body-border-color: $border !default
|
11
|
+
$message-body-border-width: 0 0 0 4px !default
|
12
|
+
$message-body-color: $text !default
|
13
|
+
$message-body-padding: 1.25em 1.5em !default
|
14
|
+
$message-body-radius: $radius !default
|
15
|
+
|
16
|
+
$message-body-pre-background-color: $scheme-main !default
|
17
|
+
$message-body-pre-code-background-color: transparent !default
|
18
|
+
|
19
|
+
$message-header-body-border-width: 0 !default
|
20
|
+
$message-colors: $colors !default
|
21
|
+
|
22
|
+
.message
|
23
|
+
@extend %block
|
24
|
+
background-color: $message-background-color
|
25
|
+
border-radius: $message-radius
|
26
|
+
font-size: $size-normal
|
27
|
+
strong
|
28
|
+
color: currentColor
|
29
|
+
a:not(.button):not(.tag):not(.dropdown-item)
|
30
|
+
color: currentColor
|
31
|
+
text-decoration: underline
|
32
|
+
// Sizes
|
33
|
+
&.is-small
|
34
|
+
font-size: $size-small
|
35
|
+
&.is-medium
|
36
|
+
font-size: $size-medium
|
37
|
+
&.is-large
|
38
|
+
font-size: $size-large
|
39
|
+
// Colors
|
40
|
+
@each $name, $components in $message-colors
|
41
|
+
$color: nth($components, 1)
|
42
|
+
$color-invert: nth($components, 2)
|
43
|
+
$color-light: null
|
44
|
+
$color-dark: null
|
45
|
+
|
46
|
+
@if length($components) >= 3
|
47
|
+
$color-light: nth($components, 3)
|
48
|
+
@if length($components) >= 4
|
49
|
+
$color-dark: nth($components, 4)
|
50
|
+
@else
|
51
|
+
$color-luminance: colorLuminance($color)
|
52
|
+
$darken-percentage: $color-luminance * 70%
|
53
|
+
$desaturate-percentage: $color-luminance * 30%
|
54
|
+
$color-dark: desaturate(darken($color, $darken-percentage), $desaturate-percentage)
|
55
|
+
@else
|
56
|
+
$color-lightning: max((100% - lightness($color)) - 2%, 0%)
|
57
|
+
$color-light: lighten($color, $color-lightning)
|
58
|
+
|
59
|
+
&.is-#{$name}
|
60
|
+
background-color: $color-light
|
61
|
+
.message-header
|
62
|
+
background-color: $color
|
63
|
+
color: $color-invert
|
64
|
+
.message-body
|
65
|
+
border-color: $color
|
66
|
+
color: $color-dark
|
67
|
+
|
68
|
+
.message-header
|
69
|
+
align-items: center
|
70
|
+
background-color: $message-header-background-color
|
71
|
+
border-radius: $message-header-radius $message-header-radius 0 0
|
72
|
+
color: $message-header-color
|
73
|
+
display: flex
|
74
|
+
font-weight: $message-header-weight
|
75
|
+
justify-content: space-between
|
76
|
+
line-height: 1.25
|
77
|
+
padding: $message-header-padding
|
78
|
+
position: relative
|
79
|
+
.delete
|
80
|
+
flex-grow: 0
|
81
|
+
flex-shrink: 0
|
82
|
+
+ltr-property("margin", 0.75em, false)
|
83
|
+
& + .message-body
|
84
|
+
border-width: $message-header-body-border-width
|
85
|
+
border-top-left-radius: 0
|
86
|
+
border-top-right-radius: 0
|
87
|
+
|
88
|
+
.message-body
|
89
|
+
border-color: $message-body-border-color
|
90
|
+
border-radius: $message-body-radius
|
91
|
+
border-style: solid
|
92
|
+
border-width: $message-body-border-width
|
93
|
+
color: $message-body-color
|
94
|
+
padding: $message-body-padding
|
95
|
+
code,
|
96
|
+
pre
|
97
|
+
background-color: $message-body-pre-background-color
|
98
|
+
pre code
|
99
|
+
background-color: $message-body-pre-code-background-color
|
@@ -0,0 +1,113 @@
|
|
1
|
+
$modal-z: 40 !default
|
2
|
+
|
3
|
+
$modal-background-background-color: bulmaRgba($scheme-invert, 0.86) !default
|
4
|
+
|
5
|
+
$modal-content-width: 640px !default
|
6
|
+
$modal-content-margin-mobile: 20px !default
|
7
|
+
$modal-content-spacing-mobile: 160px !default
|
8
|
+
$modal-content-spacing-tablet: 40px !default
|
9
|
+
|
10
|
+
$modal-close-dimensions: 40px !default
|
11
|
+
$modal-close-right: 20px !default
|
12
|
+
$modal-close-top: 20px !default
|
13
|
+
|
14
|
+
$modal-card-spacing: 40px !default
|
15
|
+
|
16
|
+
$modal-card-head-background-color: $background !default
|
17
|
+
$modal-card-head-border-bottom: 1px solid $border !default
|
18
|
+
$modal-card-head-padding: 20px !default
|
19
|
+
$modal-card-head-radius: $radius-large !default
|
20
|
+
|
21
|
+
$modal-card-title-color: $text-strong !default
|
22
|
+
$modal-card-title-line-height: 1 !default
|
23
|
+
$modal-card-title-size: $size-4 !default
|
24
|
+
|
25
|
+
$modal-card-foot-radius: $radius-large !default
|
26
|
+
$modal-card-foot-border-top: 1px solid $border !default
|
27
|
+
|
28
|
+
$modal-card-body-background-color: $scheme-main !default
|
29
|
+
$modal-card-body-padding: 20px !default
|
30
|
+
|
31
|
+
.modal
|
32
|
+
@extend %overlay
|
33
|
+
align-items: center
|
34
|
+
display: none
|
35
|
+
flex-direction: column
|
36
|
+
justify-content: center
|
37
|
+
overflow: hidden
|
38
|
+
position: fixed
|
39
|
+
z-index: $modal-z
|
40
|
+
// Modifiers
|
41
|
+
&.is-active
|
42
|
+
display: flex
|
43
|
+
|
44
|
+
.modal-background
|
45
|
+
@extend %overlay
|
46
|
+
background-color: $modal-background-background-color
|
47
|
+
|
48
|
+
.modal-content,
|
49
|
+
.modal-card
|
50
|
+
margin: 0 $modal-content-margin-mobile
|
51
|
+
max-height: calc(100vh - #{$modal-content-spacing-mobile})
|
52
|
+
overflow: auto
|
53
|
+
position: relative
|
54
|
+
width: 100%
|
55
|
+
// Responsiveness
|
56
|
+
+tablet
|
57
|
+
margin: 0 auto
|
58
|
+
max-height: calc(100vh - #{$modal-content-spacing-tablet})
|
59
|
+
width: $modal-content-width
|
60
|
+
|
61
|
+
.modal-close
|
62
|
+
@extend %delete
|
63
|
+
background: none
|
64
|
+
height: $modal-close-dimensions
|
65
|
+
position: fixed
|
66
|
+
+ltr-position($modal-close-right)
|
67
|
+
top: $modal-close-top
|
68
|
+
width: $modal-close-dimensions
|
69
|
+
|
70
|
+
.modal-card
|
71
|
+
display: flex
|
72
|
+
flex-direction: column
|
73
|
+
max-height: calc(100vh - #{$modal-card-spacing})
|
74
|
+
overflow: hidden
|
75
|
+
-ms-overflow-y: visible
|
76
|
+
|
77
|
+
.modal-card-head,
|
78
|
+
.modal-card-foot
|
79
|
+
align-items: center
|
80
|
+
background-color: $modal-card-head-background-color
|
81
|
+
display: flex
|
82
|
+
flex-shrink: 0
|
83
|
+
justify-content: flex-start
|
84
|
+
padding: $modal-card-head-padding
|
85
|
+
position: relative
|
86
|
+
|
87
|
+
.modal-card-head
|
88
|
+
border-bottom: $modal-card-head-border-bottom
|
89
|
+
border-top-left-radius: $modal-card-head-radius
|
90
|
+
border-top-right-radius: $modal-card-head-radius
|
91
|
+
|
92
|
+
.modal-card-title
|
93
|
+
color: $modal-card-title-color
|
94
|
+
flex-grow: 1
|
95
|
+
flex-shrink: 0
|
96
|
+
font-size: $modal-card-title-size
|
97
|
+
line-height: $modal-card-title-line-height
|
98
|
+
|
99
|
+
.modal-card-foot
|
100
|
+
border-bottom-left-radius: $modal-card-foot-radius
|
101
|
+
border-bottom-right-radius: $modal-card-foot-radius
|
102
|
+
border-top: $modal-card-foot-border-top
|
103
|
+
.button
|
104
|
+
&:not(:last-child)
|
105
|
+
+ltr-property("margin", 0.5em)
|
106
|
+
|
107
|
+
.modal-card-body
|
108
|
+
+overflow-touch
|
109
|
+
background-color: $modal-card-body-background-color
|
110
|
+
flex-grow: 1
|
111
|
+
flex-shrink: 1
|
112
|
+
overflow: auto
|
113
|
+
padding: $modal-card-body-padding
|