basicss-rails 0.1.4

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d2fbc5dfcbe2f043477a738c2a67ea7d74cbba28
4
+ data.tar.gz: 0077ea8f94bed33cf122ababc247476e496ec123
5
+ SHA512:
6
+ metadata.gz: 3eea54add9de86259af3e489124e0d6fdb1b19e5f2bf30051be816e19b8dd8d5d68119763a833c0a3932745e7b75cee23c5bcad9b13d5a357379472fbe5b3218
7
+ data.tar.gz: 392ee4f560fe1df8ad42d3421d87d1abed5e391bdbed89ae7ed880893d45318b52e86b5c41a68f253b9fb612f599a01dcaa864ea43b05bcb6aeaa797db609c62
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2014 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = basicss-rails
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'basicss-rails'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+
24
+
25
+
26
+ Bundler::GemHelper.install_tasks
27
+
data/basicss.gemspec ADDED
@@ -0,0 +1,18 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ require "basicss/rails/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "basicss-rails"
7
+ s.version = Basicss::Rails::VERSION
8
+ s.authors = ["rplaurindo"]
9
+ s.email = ["rafaelplaurindo@gmail.com"]
10
+ s.homepage = "https://rubygems.org/gems/basicss-rails"
11
+ s.summary = %q{Summary of Do}
12
+ s.description = %q{It's a lib written in sass that defines standard propridades to the basic structure of HTML, and facilitates the use of sass providing mixins.}
13
+ s.license = "MIT"
14
+ s.test_files = Dir["test/**/*"]
15
+
16
+ s.files = Dir["{bin,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc", "basicss.gemspec"]
17
+
18
+ end
data/bin/rails ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 4 gems installed from the root of your application.
3
+
4
+ ENGINE_ROOT = File.expand_path('../..', __FILE__)
5
+ ENGINE_PATH = File.expand_path('../../lib/basicss/rails/engine', __FILE__)
6
+
7
+ # Set up gems listed in the Gemfile.
8
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
9
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
10
+
11
+ require 'rails/all'
12
+ require 'rails/engine/commands'
@@ -0,0 +1 @@
1
+ //= require_tree .
@@ -0,0 +1,56 @@
1
+ @import mixins
2
+
3
+ *
4
+ &.basicss
5
+ .transparent,
6
+ &.transparent
7
+ opacity: 0 !important
8
+
9
+ .inline,
10
+ &.inline
11
+ +inline
12
+
13
+ .hidden,
14
+ &.hidden
15
+ display: none
16
+
17
+ .fixed,
18
+ &.fixed
19
+ position: fixed
20
+
21
+ .truncated-text,
22
+ &.truncated-text
23
+ +text-overflow(ellipsis)
24
+ display: block
25
+
26
+ .right,
27
+ &.right,
28
+ text-align: right
29
+
30
+ .relative,
31
+ &.relative,
32
+ position: relative
33
+
34
+ .absolute,
35
+ &.absolute,
36
+ position: absolute
37
+
38
+ .height-full,
39
+ &.height-full,
40
+ min-height: 100%
41
+
42
+ .floated-left,
43
+ &.floated-left
44
+ float: left
45
+
46
+ .rotated-left,
47
+ &.rotated-left
48
+ transform: rotate(-90deg)
49
+
50
+ .white,
51
+ &.white
52
+ color: white
53
+
54
+ .centralized,
55
+ &.centralized
56
+ text-align: center
@@ -0,0 +1,28 @@
1
+ @import mixins
2
+
3
+
4
+ body
5
+
6
+ ul
7
+ list-style-type: none
8
+
9
+ main
10
+
11
+ span
12
+ &.option,
13
+ &.options
14
+ a
15
+ margin-left: -1px !important
16
+
17
+ .basicss
18
+ .line,
19
+ &.line
20
+ margin-bottom: 20px
21
+
22
+ .indented,
23
+ &.indented
24
+ text-indent: 20px
25
+
26
+ .line
27
+ &:last-of-type
28
+ margin-bottom: 0
@@ -0,0 +1,101 @@
1
+ @mixin linear-gradient($initial-color, $final-color, $percentage: null)
2
+ @if ($percentage)
3
+ background: linear-gradient(to bottom, $initial-color $percentage, $final-color 100%)
4
+ @else
5
+ background: linear-gradient(to bottom, $initial-color, $final-color)
6
+
7
+
8
+ @mixin title
9
+ &[title]
10
+ &:after
11
+ position: absolute
12
+ top: 130%
13
+ left: 65%
14
+ z-index: 1
15
+ white-space: nowrap
16
+ display: none
17
+ text-transform: initial
18
+
19
+ &:hover
20
+ &[title]
21
+ &:after
22
+ display: block !important
23
+
24
+
25
+ @mixin inline
26
+ display: inline-block
27
+
28
+ &.baseline-middle
29
+ vertical-align: -moz-middle-with-baseline
30
+ vertical-align: -webkit-baseline-middle
31
+
32
+
33
+ @mixin base64-icon($hash)
34
+ background: url("data:image/svg+xml;utf8;base64," + $hash) no-repeat
35
+
36
+
37
+ @mixin shadow($y: 0px, $x: 0px, $suavity: 7px, $size: -1px, $color: black, $style: inital)
38
+ @if $style == inset
39
+ box-shadow: $x $y $suavity $size $color $style
40
+ @else
41
+ box-shadow: $x $y $suavity $size $color
42
+
43
+
44
+ @mixin text-shadow($color)
45
+ text-shadow: 0px 1px 1px $color
46
+
47
+
48
+ @mixin link-button
49
+ +inline
50
+ text-align: center
51
+ text-decoration: none
52
+
53
+ &.new
54
+ &:before
55
+ content: "+ "
56
+
57
+ &.remove,
58
+ &.close
59
+ &:after
60
+ content: "× "
61
+
62
+ @mixin button
63
+ padding: 7px 15px
64
+
65
+
66
+ @mixin stretch-to-footer
67
+ position: absolute
68
+ bottom: 0
69
+
70
+
71
+ @mixin dl-with-inline-elements
72
+
73
+ dt, dd
74
+ +inline
75
+
76
+ &:last-of-type
77
+ div
78
+ &:last-child
79
+ margin-bottom: 0
80
+
81
+
82
+ @mixin sprite-icon-position($x, $y)
83
+ background:
84
+ position: $x $y
85
+
86
+
87
+ @mixin sprite-icon($image, $width, $height)
88
+ display: inline
89
+ vertical-align: middle
90
+ width: $width
91
+ height: $height
92
+
93
+ background:
94
+ image: asset-url($image, image)
95
+ repeat: no-repeat
96
+
97
+
98
+ @mixin text-overflow($type)
99
+ white-space: nowrap
100
+ overflow-x: hidden
101
+ text-overflow: $type
@@ -0,0 +1,73 @@
1
+ @import ../mixins, ../variables
2
+
3
+
4
+ .basicss ul,
5
+ ul.basicss
6
+
7
+ &.menu,
8
+ &.sub-menu
9
+
10
+ li
11
+ list-style: none
12
+
13
+ &.menu
14
+
15
+ &.horizontal
16
+ display: inline-block
17
+
18
+ > li
19
+ //+inline
20
+ //margin-left: -3px
21
+
22
+ float: left
23
+ margin-left: 1px
24
+
25
+ &:first-of-type
26
+ margin-left: initial !important
27
+
28
+ &.with-anchor
29
+ padding: initial !important
30
+
31
+ li
32
+ text-align: center
33
+ position: relative
34
+
35
+ &:hover
36
+ cursor: default
37
+
38
+ // first child only
39
+ //o ul nÃo pode ter overflow-x pois suprimirá os uls filhos
40
+ > ul
41
+ display: block !important
42
+
43
+ a
44
+ display: block
45
+
46
+ ul
47
+ &.sub-menu,
48
+ ul
49
+
50
+ display: none
51
+ position: absolute
52
+ z-index: 1
53
+
54
+ li
55
+ ul
56
+ top: 1px
57
+
58
+ &.sub-menu
59
+ li
60
+ ul
61
+ // if don’t set border-color, the assumed color will be of the color attribute
62
+ border-left: 1px solid transparent
63
+
64
+ li
65
+ &:nth-of-type(2)
66
+ border-top: 0 !important
67
+
68
+ &:first-of-type
69
+ border-top: initial !important
70
+ background: transparent
71
+
72
+ &:hover
73
+ background: transparent !important
@@ -0,0 +1,10 @@
1
+ @import mixins
2
+
3
+
4
+ .basicss table,
5
+ table.basicss
6
+
7
+ border-collapse: collapse
8
+ margin: 0
9
+ text-align: center
10
+ margin: auto
@@ -0,0 +1,16 @@
1
+ @import mixins
2
+
3
+ .basicss a.tab.toggle,
4
+ a.basicss.tab.toggle,
5
+ .basicss .tabs ul.navs li,
6
+ .tabs.bacicss ul.navs li
7
+
8
+ +inline
9
+ vertical-align: top
10
+ margin-left: -4px
11
+
12
+ .basicss a,
13
+ a.basicss
14
+
15
+ &.tab.toggle
16
+ text-decoration: none
@@ -0,0 +1,2 @@
1
+ $basicss-vertical-menu-main-width: 160px
2
+ $basicss-vertical-menu-width: 200px
@@ -0,0 +1 @@
1
+ require "basicss/rails"
@@ -0,0 +1 @@
1
+ require 'basicss/rails/engine'
@@ -0,0 +1,15 @@
1
+ module Basicss
2
+ module Rails
3
+
4
+ class Engine < ::Rails::Engine
5
+
6
+ config.before_initialize do
7
+ # << faz push no array paths com uma string informada
8
+ #Dir["./"].each { |p| Rails.application.config.assets.paths << p }
9
+ # Se for o caso, usar: root.join("lib/assets/javascripts")
10
+ end
11
+
12
+ end
13
+
14
+ end
15
+ end
@@ -0,0 +1,5 @@
1
+ module Basicss
2
+ module Rails
3
+ VERSION = "0.1.4"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: basicss-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ platform: ruby
6
+ authors:
7
+ - rplaurindo
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-09-15 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: It's a lib written in sass that defines standard propridades to the basic
14
+ structure of HTML, and facilitates the use of sass providing mixins.
15
+ email:
16
+ - rafaelplaurindo@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - MIT-LICENSE
22
+ - README.rdoc
23
+ - Rakefile
24
+ - basicss.gemspec
25
+ - bin/rails
26
+ - lib/assets/stylesheets/basicss.sass
27
+ - lib/assets/stylesheets/basicss/class.sass
28
+ - lib/assets/stylesheets/basicss/layout.sass
29
+ - lib/assets/stylesheets/basicss/mixins.sass
30
+ - lib/assets/stylesheets/basicss/samples/menus.sass
31
+ - lib/assets/stylesheets/basicss/tables.sass
32
+ - lib/assets/stylesheets/basicss/tabs.sass
33
+ - lib/assets/stylesheets/basicss/variables.sass
34
+ - lib/basicss-rails.rb
35
+ - lib/basicss/rails.rb
36
+ - lib/basicss/rails/engine.rb
37
+ - lib/basicss/rails/version.rb
38
+ homepage: https://rubygems.org/gems/basicss-rails
39
+ licenses:
40
+ - MIT
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ requirements: []
57
+ rubyforge_project:
58
+ rubygems_version: 2.5.1
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: Summary of Do
62
+ test_files: []