shipyard-framework 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/javascripts/shipyard/modal.js +2 -2
- data/assets/stylesheets/shipyard/_components.sass +4 -0
- data/assets/stylesheets/shipyard/_mixins.sass +2 -0
- data/assets/stylesheets/shipyard/_utilities.sass +22 -8
- data/assets/stylesheets/shipyard/_variables.sass +1 -3
- data/assets/stylesheets/shipyard/{utilities → components}/_accordion.sass +4 -4
- data/assets/stylesheets/shipyard/components/_alerts.sass +8 -10
- data/assets/stylesheets/shipyard/components/_boxes.sass +1 -15
- data/assets/stylesheets/shipyard/components/_bullet.sass +6 -0
- data/assets/stylesheets/shipyard/components/_buttons.sass +0 -3
- data/assets/stylesheets/shipyard/components/_container.sass +6 -0
- data/assets/stylesheets/shipyard/components/_forms.sass +1 -1
- data/assets/stylesheets/shipyard/components/_grid.sass +62 -0
- data/assets/stylesheets/shipyard/components/_hamburger.sass +4 -4
- data/assets/stylesheets/shipyard/components/_header.sass +14 -14
- data/assets/stylesheets/shipyard/components/_horizontal-rules.sass +1 -1
- data/assets/stylesheets/shipyard/components/_input-radio-checkbox.sass +1 -1
- data/assets/stylesheets/shipyard/components/_input-select.sass +1 -1
- data/assets/stylesheets/shipyard/components/_input-text.sass +1 -1
- data/assets/stylesheets/shipyard/components/_modals.sass +2 -3
- data/assets/stylesheets/shipyard/components/_notes.sass +6 -6
- data/assets/stylesheets/shipyard/components/_tables.sass +1 -1
- data/assets/stylesheets/shipyard/components/_tooltips.sass +8 -4
- data/assets/stylesheets/shipyard/core/_typography.sass +0 -19
- data/assets/stylesheets/shipyard/functions/_color.sass +4 -7
- data/assets/stylesheets/shipyard/mixins/_components.sass +0 -6
- data/assets/stylesheets/shipyard/mixins/_grid.sass +17 -0
- data/assets/stylesheets/shipyard/mixins/_responsive.sass +38 -42
- data/assets/stylesheets/shipyard/mixins/_utility.sass +50 -0
- data/assets/stylesheets/shipyard/utilities/_border-radius.sass +29 -39
- data/assets/stylesheets/shipyard/utilities/_box-shadow.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_center.sass +8 -14
- data/assets/stylesheets/shipyard/utilities/_colors.sass +2 -12
- data/assets/stylesheets/shipyard/utilities/_cursor.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_display.sass +1 -14
- data/assets/stylesheets/shipyard/utilities/_flex-direction.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_float.sass +4 -0
- data/assets/stylesheets/shipyard/utilities/_font-family.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_font-size.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_font-style.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_font-weight.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_height.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_margin.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_opacity.sass +1 -4
- data/assets/stylesheets/shipyard/utilities/_overflow.sass +3 -11
- data/assets/stylesheets/shipyard/utilities/_padding.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_position.sass +1 -4
- data/assets/stylesheets/shipyard/utilities/_text-align.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_text-decoration.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_text-overflow.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_text-shadow.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_text-transform.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_transform.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_transition.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_white-space.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_z-index.sass +1 -0
- data/assets/stylesheets/shipyard/variables/_color_utilities.sass +54 -54
- data/assets/stylesheets/shipyard/variables/_colors.scss +101 -88
- data/assets/stylesheets/shipyard/variables/_components.scss +0 -1
- data/assets/stylesheets/shipyard/variables/_options.scss +322 -0
- data/assets/stylesheets/shipyard/variables/_typography.sass +3 -2
- data/lib/shipyard-framework.rb +0 -3
- data/lib/shipyard-framework/helpers/alert_helper.rb +1 -1
- data/lib/shipyard-framework/version.rb +1 -1
- metadata +29 -11
- data/assets/stylesheets/shipyard/utilities/_grid.sass +0 -74
- data/assets/stylesheets/shipyard/utilities/_margin-padding.sass +0 -40
- data/assets/stylesheets/shipyard/utilities/_typography.sass +0 -104
- data/assets/stylesheets/shipyard/variables/_grid.sass +0 -2
- data/assets/stylesheets/shipyard/variables/_opacities.scss +0 -22
- data/assets/stylesheets/shipyard/variables/_z-index.scss +0 -9
- data/lib/shipyard-framework/helpers/button_helper.rb +0 -39
- data/lib/shipyard-framework/jekyll/tags/button_tag.rb +0 -21
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'shipyard-framework/helpers/button_helper'
|
2
|
-
|
3
|
-
module Shipyard
|
4
|
-
module Jekyll
|
5
|
-
class Button < Liquid::Tag
|
6
|
-
include Shipyard::ButtonHelper
|
7
|
-
|
8
|
-
def initialize(tag_name, params, options)
|
9
|
-
super
|
10
|
-
@params = params.split(',')
|
11
|
-
@text = @params[0].strip
|
12
|
-
@args = @params[1].to_s.tr(':','').split(' ').map(&:to_sym)
|
13
|
-
@args << eval("{#{@params[2]}}") if @params[2]
|
14
|
-
end
|
15
|
-
|
16
|
-
def render(context)
|
17
|
-
btn @text, *@args
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|