bulma-sass 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -3
- data/app/assets/stylesheets/bulma/layout/hero.sass +33 -28
- data/bulma-sass.gemspec +1 -0
- data/lib/bulma-sass.rb +34 -1
- data/lib/bulma/sass/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 525b7085ba50c66dcd30af560dbeeeea26d4f34f
|
4
|
+
data.tar.gz: 438ade79827d3f87daccf3ce2539d4b54faf3c7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 376fc25cf91f77ac28274b4212d537962ef241a8389766bb9e1004d11cf9c908c87c3202edc8f145b222096e199d228d083efc6e93cb0f8809999b6e6238e60d
|
7
|
+
data.tar.gz: 1dd3b4f7107e65cb00e416de0633a6e140347d3fc222058143e36076cf0933c4889fcb12670fc25aa35ecbf31b0cb2cffe2c0f86e0b8fd3243e2069dbdbef8ba
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Bulma-sass
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Bulma, modern CSS framework based on Flexbox
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -1,8 +1,24 @@
|
|
1
|
+
.hero-content
|
2
|
+
padding: 40px 20px
|
3
|
+
+desktop
|
4
|
+
padding: 40px 0
|
5
|
+
|
6
|
+
.hero-buttons
|
7
|
+
margin-top: 20px
|
8
|
+
+mobile
|
9
|
+
.button
|
10
|
+
display: block
|
11
|
+
&:not(:last-child)
|
12
|
+
margin-bottom: 10px
|
13
|
+
+tablet
|
14
|
+
display: flex
|
15
|
+
justify-content: center
|
16
|
+
.button:not(:last-child)
|
17
|
+
margin-right: 20px
|
18
|
+
|
1
19
|
.hero
|
2
20
|
background: white
|
3
21
|
text-align: center
|
4
|
-
& > .container
|
5
|
-
padding: 40px 20px
|
6
22
|
a
|
7
23
|
color: inherit
|
8
24
|
.header
|
@@ -19,9 +35,6 @@
|
|
19
35
|
a
|
20
36
|
border: none
|
21
37
|
padding: 6px 12px
|
22
|
-
+desktop
|
23
|
-
& > .container
|
24
|
-
padding: 40px 0
|
25
38
|
&.is-alt
|
26
39
|
background: $background
|
27
40
|
color: $text-light
|
@@ -98,15 +111,9 @@
|
|
98
111
|
&.is-boxed
|
99
112
|
a
|
100
113
|
padding: 12px 16px
|
101
|
-
&.is-fullheight
|
102
|
-
align-items: center
|
103
|
-
display: flex
|
104
|
-
height: 100vh
|
105
|
-
.tabs
|
106
|
-
white-space: normal
|
107
114
|
&.is-medium
|
108
115
|
+tablet
|
109
|
-
|
116
|
+
.hero-content
|
110
117
|
padding: 120px 20px
|
111
118
|
.title
|
112
119
|
font-size: 40px
|
@@ -115,29 +122,27 @@
|
|
115
122
|
.tabs
|
116
123
|
font-size: 16px
|
117
124
|
+desktop
|
118
|
-
|
125
|
+
.hero-content
|
119
126
|
padding: 120px 0
|
120
127
|
&.is-large
|
121
128
|
+tablet
|
122
|
-
|
129
|
+
.hero-content
|
123
130
|
padding: 240px 20px
|
124
131
|
+desktop
|
125
|
-
|
132
|
+
.hero-content
|
126
133
|
padding: 240px 0
|
134
|
+
&.is-fullheight
|
135
|
+
align-items: stretch
|
136
|
+
display: flex
|
137
|
+
flex-direction: column
|
138
|
+
height: 100vh
|
139
|
+
justify-content: space-between
|
140
|
+
.hero-content
|
141
|
+
display: flex
|
142
|
+
flex: 1
|
143
|
+
flex-direction: column
|
144
|
+
justify-content: center
|
127
145
|
&.is-left
|
128
146
|
text-align: left
|
129
147
|
&.is-right
|
130
148
|
text-align: right
|
131
|
-
|
132
|
-
.hero-buttons
|
133
|
-
margin-top: 20px
|
134
|
-
+mobile
|
135
|
-
.button
|
136
|
-
display: block
|
137
|
-
&:not(:last-child)
|
138
|
-
margin-bottom: 10px
|
139
|
-
+tablet
|
140
|
-
display: flex
|
141
|
-
justify-content: center
|
142
|
-
.button:not(:last-child)
|
143
|
-
margin-right: 20px
|
data/bulma-sass.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.bindir = "exe"
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
|
+
spec.add_runtime_dependency 'sass', '>= 3.2'
|
22
23
|
|
23
24
|
spec.add_development_dependency "bundler", "~> 1.16.a"
|
24
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
data/lib/bulma-sass.rb
CHANGED
@@ -1,7 +1,40 @@
|
|
1
1
|
require "bulma/sass/version"
|
2
|
-
require "bulma/sass/engine"
|
3
2
|
|
4
3
|
module Bulma
|
5
4
|
module Sass
|
5
|
+
class << self
|
6
|
+
def load!
|
7
|
+
if defined?(::Rails)
|
8
|
+
require "bulma/sass/engine"
|
9
|
+
elsif defined?(::Sprockets)
|
10
|
+
Sprockets.append_path(stylesheets_path)
|
11
|
+
end
|
12
|
+
configure_sass
|
13
|
+
end
|
14
|
+
|
15
|
+
# Paths
|
16
|
+
def gem_path
|
17
|
+
@gem_path ||= File.expand_path('..', File.dirname(__FILE__))
|
18
|
+
end
|
19
|
+
|
20
|
+
def templates_path
|
21
|
+
File.join(gem_path, 'templates')
|
22
|
+
end
|
23
|
+
|
24
|
+
def assets_path
|
25
|
+
@assets_path ||= File.join(gem_path, 'app', 'assets')
|
26
|
+
end
|
27
|
+
|
28
|
+
def stylesheets_path
|
29
|
+
File.join(assets_path, 'stylesheets')
|
30
|
+
end
|
31
|
+
|
32
|
+
def configure_sass
|
33
|
+
require 'sass'
|
34
|
+
::Sass.load_paths << stylesheets_path
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
6
38
|
end
|
7
39
|
end
|
40
|
+
Bulma::Sass.load!
|
data/lib/bulma/sass/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bulma-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bananaappletw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sass
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.2'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
120
|
version: '0'
|
107
121
|
requirements: []
|
108
122
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.6.
|
123
|
+
rubygems_version: 2.6.8
|
110
124
|
signing_key:
|
111
125
|
specification_version: 4
|
112
126
|
summary: Bulma, modern CSS framework based on Flexbox.
|