alom 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6bfb69cdccdfd6d6620f914907d06f160f29c111
4
+ data.tar.gz: 3a4bed55afc5580d7a3e17aa8afda1fdd127b334
5
+ SHA512:
6
+ metadata.gz: b4b3e26935d61cbfd9ab4e52e9ef195e03d87505312fe6c06363d3688934dad759d5f3aac33445a2d733a0d0d0b8e833137cb67749d50ab2449bf816dfe09f93
7
+ data.tar.gz: '09c61e5cc004daa6d28b3cc4f5d119278001d2987911df3a83dd1d16a083e14574645679a736e7c919b2e226a487b6e91e385a0678e7f6b07d32be061b4f9270'
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
13
+ .DS_Store
14
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.14.5
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at kurenn@icalialabs.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in alom.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Abraham Kuri
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,57 @@
1
+ ![alom](https://github.com/IcaliaLabs/alom/raw/master/alombanner.jpg)
2
+
3
+ # For Rails Asset Pipeline
4
+
5
+ Alom is the lighest, simplest framework ever, it will help you to kick up your project without interfering with any style, it is designed to make your life simpler and to help you deal with all the responsive stuff.
6
+
7
+ The alom gem integrates the Alom framework for Rails 4+ Asset Pipeline.
8
+
9
+ ## Table of contents
10
+ - [Installing Gem](#installing-gem)
11
+ - [Usage](#usage)
12
+ - [Contributing](#development)
13
+ - [License](#license)
14
+
15
+ ## Installing Gem
16
+
17
+ You need to only include the `furatto` gem inside your `Gemfile`:
18
+
19
+ ```ruby
20
+ gem 'alom'
21
+ ```
22
+
23
+ or you can install from the latest build:
24
+
25
+ ```ruby
26
+ gem 'alom', git: 'git@github.com:IcaliaLabs/alom-rails.git'
27
+ ```
28
+
29
+ Install the gem using the bundle command:
30
+
31
+ ```console
32
+ $ bundle
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ In your application.css, include the css file:
38
+
39
+ ```css
40
+ /*
41
+ *= require alom
42
+ */
43
+ ```
44
+
45
+ Or if you're using SASS, go to application.css.scss and add:
46
+
47
+ ```scss
48
+ @import "alom";
49
+ ```
50
+
51
+ ## Contributing
52
+
53
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/icalicons. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
54
+
55
+ ## License
56
+
57
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/alom.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'alom/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "alom"
8
+ spec.version = Alom::VERSION
9
+ spec.authors = ["Abraham Kuri"]
10
+ spec.email = ["kurenn@icalialabs.com"]
11
+
12
+ spec.summary = %q{A Ruby wrapper to use Alom on Rails}
13
+ spec.description = %q{A Ruby wrapper to use Alom on Rails}
14
+ spec.homepage = "https://github.com/IcaliaLabs/alom-rails"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.14"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rspec", "~> 3.0"
27
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "alom"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/dev.Dockerfile ADDED
@@ -0,0 +1,11 @@
1
+ FROM ruby:2.4
2
+
3
+ RUN mkdir -p /code
4
+
5
+ WORKDIR /code
6
+
7
+ RUN gem install bundler --no-ri --no-rdoc
8
+
9
+ ADD . /code/
10
+
11
+ RUN bundle install
@@ -0,0 +1,20 @@
1
+ version: "2"
2
+
3
+ volumes:
4
+ gems:
5
+ driver: local
6
+
7
+ services:
8
+ gem:
9
+ image: icalialabs/alom_rails:development
10
+ build:
11
+ context: .
12
+ dockerfile: dev.Dockerfile
13
+ volumes:
14
+ - .:/code
15
+ - gems:/usr/local/bundle
16
+ working_dir: /code
17
+ tty: true
18
+ stdin_open: true
19
+ environment:
20
+ LC_ALL: C.UTF-8
data/lib/alom.rb ADDED
@@ -0,0 +1,10 @@
1
+ require "alom/version"
2
+
3
+ module Alom
4
+ class Engine < ::Rails::Engine
5
+ initializer :assets do |config|
6
+ Rails.application.config.assets.precompile += %w{ alom.css }
7
+ Rails.application.config.assets.paths << root.join("vendor", "assets", "stylesheets")
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,3 @@
1
+ module Alom
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,23 @@
1
+ // ################################################
2
+ // _ ___ __ __
3
+ // (_)________ _/ (_)___ _ / /___ _/ /_ _____
4
+ // / / ___/ __ `/ / / __ `/ / / __ `/ __ \/ ___/
5
+ // / / /__/ /_/ / / / /_/ / / / /_/ / /_/ (__ )
6
+ // /_/\___/\__,_/_/_/\__,_/ /_/\__,_/_.___/____/
7
+ // #################################################
8
+ // ##### Created by www.icalialabs.com #############
9
+ // #################################################
10
+
11
+
12
+ //###########################################//
13
+ //######## Import the core of alom ########//
14
+ //###########################################//
15
+
16
+ @charset 'utf-8';
17
+ @import 'alom/variables';
18
+ @import 'alom/mixins';
19
+ @import 'alom/functions';
20
+ @import 'alom/reset';
21
+ @import 'alom/grid';
22
+ @import 'alom/utilities';
23
+ @import 'alom/responsive';
@@ -0,0 +1,74 @@
1
+ //############################################//
2
+ //######## Pixels to Rems Function #########//
3
+ //###########################################//
4
+
5
+ // !! Font base is declared in _variables file !! //
6
+ @function px-to-rems($size) {
7
+ @return ($size / $font-base) * 1rem;
8
+ }
9
+
10
+ //############################################//
11
+ //######### Pixels to ems Function #########//
12
+ //###########################################//
13
+
14
+ @function px-to-ems($size) {
15
+ @return ($size / $font-base) * 1em;
16
+ }
17
+
18
+ //############################################//
19
+ //##### Pixels to Percentage Function ######//
20
+ //###########################################//
21
+ //Example: width: calc-percent(200,768);
22
+
23
+ @function calc-percent($target, $container) {
24
+ @return ($target / $container) * 100%;
25
+ }
26
+
27
+ //############################################//
28
+ //####### Get next value on maps ########/////
29
+ //###########################################//
30
+
31
+ @function next($map, $key, $fallback: null) {
32
+ $i: 0;
33
+ $key-index: false;
34
+
35
+ @each $map-key, $map-value in $map {
36
+ $i: $i + 1;
37
+
38
+ @if $map-key == $key {
39
+ $key-index: $i;
40
+ }
41
+
42
+ @if $i == $key-index + 1 {
43
+ @return $map-value;
44
+ }
45
+
46
+ @if $i == length($map) {
47
+ @return $map-value;
48
+ }
49
+
50
+ }
51
+ }
52
+
53
+ //############################################//
54
+ //####### Get previus value on maps ########//
55
+ //###########################################//
56
+
57
+ @function prev($map, $key, $fallback: false, $return: value) {
58
+ $i: 0;
59
+ $key-index: false;
60
+ @each $map-key, $map-value in $map {
61
+ $i: $i + 1;
62
+ @if $map-key == $key {
63
+ $key-index: $i;
64
+ $i: $i - 1;
65
+ @if $i > 0 {
66
+ @each $map-key, $map-value in $map {
67
+ $map2: (nth($map, $i));
68
+ @return nth($map2, 2);
69
+ }
70
+ }
71
+ @return $map-value;
72
+ }
73
+ }
74
+ }
@@ -0,0 +1,89 @@
1
+ //############################################//
2
+ //################ Grid System ##############//
3
+ //###########################################//
4
+
5
+ @mixin grid-columns($columns: $number-of-columns) {
6
+ $column-width: 100 / $columns;
7
+
8
+ @for $i from 1 through $columns {
9
+ .col-#{$i} {
10
+ width: percentage(($column-width * $i) / 100);
11
+ }
12
+ }
13
+ }
14
+
15
+ @mixin grid-columns-offset($columns: $offset-columns) {
16
+ $column-width: 100 / $columns;
17
+
18
+ @for $i from 1 through $columns {
19
+ .offset-#{$i} {
20
+ margin-left: percentage(($column-width * $i) / 100);
21
+ }
22
+ }
23
+
24
+ }
25
+
26
+ .row {
27
+ @extend %clearfix;
28
+ @include grid-columns;
29
+ @include grid-columns-offset;
30
+ display: block;
31
+
32
+ [class*="col-"] {
33
+ float: left;
34
+
35
+ &.full-height {
36
+ height: 100%;
37
+ }
38
+ }
39
+ }
40
+
41
+
42
+ @media screen and (max-width: $grid-break) {
43
+ .row:not(.fixed) {
44
+ [class*="col-"] {
45
+ width: 100%;
46
+ }
47
+
48
+ [class*="offset-"] {
49
+ margin-left: 0;
50
+ }
51
+ }
52
+ }
53
+
54
+
55
+ //############################################//
56
+ //########### Flex Grid System ##############//
57
+ //###########################################//
58
+
59
+ .row-flex {
60
+ @include grid-columns;
61
+ @include grid-columns-offset;
62
+ display: flex;
63
+
64
+ [class*="col-"] {
65
+ display: inline-grid;
66
+ flex: none;
67
+ flex-grow: 1;
68
+ flex-shrink: 1;
69
+
70
+ &.full-height {
71
+ height: 100%;
72
+ }
73
+ }
74
+ }
75
+
76
+ @media screen and (max-width: $grid-break) {
77
+ .row-flex:not(.fixed) {
78
+ flex-direction: column;
79
+
80
+ [class*="col-"] {
81
+ flex: 1;
82
+ width: 100%;
83
+ }
84
+
85
+ [class*="offset-"] {
86
+ margin-left: 0;
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,83 @@
1
+ //Clears the float from any element
2
+ %clearfix {
3
+ &::before,
4
+ &::after {
5
+ content: '';
6
+ display: table;
7
+ }
8
+
9
+ &::after {
10
+ clear: both;
11
+ }
12
+ }
13
+
14
+ //Credits to bootstrap
15
+ @mixin responsive-invisibility {
16
+ display: none !important;
17
+
18
+ tr,
19
+ th,
20
+ td {
21
+ display: none !important;
22
+ }
23
+ }
24
+
25
+ @mixin responsive-visibility {
26
+ display: block !important;
27
+
28
+ &.btn {
29
+ display: inline-block !important;
30
+ }
31
+
32
+ tr {
33
+ display: table-row !important;
34
+ }
35
+
36
+ th,
37
+ td {
38
+ display: table-cell !important;
39
+ }
40
+ }
41
+
42
+ @mixin img-responsive {
43
+ display: block;
44
+ max-width: 100%;
45
+ height: auto;
46
+ }
47
+
48
+ @mixin touch-callout {
49
+ -webkit-touch-callout: none;
50
+ -webkit-user-select: none;
51
+ -khtml-user-select: none;
52
+ -moz-user-select: moz-none;
53
+ -ms-user-select: none;
54
+ user-select: none;
55
+ }
56
+
57
+ @mixin build-column-grids($columns: 12) {
58
+ $unit-width: (100 / $columns);
59
+ $column-factor: .1833;
60
+
61
+
62
+ @for $i from 1 through $columns {
63
+ .col-#{$i} {
64
+ $current-width: ($unit-width * $i) - $column-factor;
65
+ margin-left: percentage($column-factor / 100);
66
+ width: percentage($current-width / 100);
67
+ }
68
+ }
69
+
70
+ }
71
+
72
+ @mixin backface-visibility($property: hidden) {
73
+ -webkit-backface-visibility: $property;
74
+ -moz-backface-visibility: $property;
75
+ backface-visibility: $property;
76
+ }
77
+
78
+ @mixin perspective($value: 1300px) {
79
+ -webkit-perspective: $value;
80
+ -moz-perspective: $value;
81
+ perspective: $value;
82
+ }
83
+
@@ -0,0 +1,186 @@
1
+ //############################################//
2
+ //############# General Reset ##############//
3
+ //###########################################//
4
+
5
+ * {
6
+ -webkit-tap-highlight-color: rgba(255,255,255,0);
7
+ -webkit-tap-highlight-color: transparent;
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ *:before,
12
+ *:after {
13
+ box-sizing: inherit;
14
+ }
15
+
16
+ html {
17
+ -moz-osx-font-smoothing: grayscale;
18
+ -webkit-font-smoothing: antialiased;
19
+ text-rendering: optimizeLegibility;
20
+ overflow-x: hidden;
21
+ overflow-y: scroll;
22
+ }
23
+
24
+ html, body, div, span, applet, object, iframe,
25
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
26
+ a, abbr, acronym, address, big, cite, code,
27
+ del, dfn, em, img, ins, kbd, q, s, samp,
28
+ small, strike, strong, sub, sup, tt, var,
29
+ b, u, i, center,
30
+ dl, dt, dd, ol, ul, li,
31
+ fieldset, form, label, legend,
32
+ table, caption, tbody, tfoot, thead, tr, th, td,
33
+ article, aside, canvas, details, embed,
34
+ figure, figcaption, footer, header, hgroup,
35
+ menu, nav, output, ruby, section, summary,
36
+ time, mark, audio, video {
37
+ margin: 0;
38
+ padding: 0;
39
+ font-size: 100%;
40
+ font: inherit;
41
+ vertical-align: baseline;
42
+ }
43
+
44
+ a {
45
+ background-color: transparent;
46
+ color: inherit;
47
+ display: inline-block;
48
+ text-decoration: none;
49
+ -webkit-text-decoration-skip: objects;
50
+
51
+ &:focus,
52
+ &:hover,
53
+ &:active {
54
+ outline: 0;
55
+ cursor: pointer;
56
+ }
57
+ }
58
+
59
+ article,
60
+ aside,
61
+ details,
62
+ figcaption,
63
+ figure,
64
+ footer,
65
+ header,
66
+ main,
67
+ menu,
68
+ nav,
69
+ section,
70
+ summary {
71
+ display: block;
72
+ }
73
+
74
+ html {
75
+ -ms-text-size-adjust: 100%;
76
+ -webkit-text-size-adjust: 100%;
77
+ }
78
+
79
+ //############################################//
80
+ //############## Forms Reset ###############//
81
+ //###########################################//
82
+
83
+ input[type="text"],
84
+ input[type="email"],
85
+ input[type="number"],
86
+ input[type="password"],
87
+ input[type="button"],
88
+ fieldset {
89
+ appearance: none;
90
+ &:focus {
91
+ outline: 0;
92
+ }
93
+ }
94
+
95
+ input[type="radio"],
96
+ input[type="checkbox"] {
97
+ margin: 0;
98
+ outline: 0;
99
+ padding: 0;
100
+ }
101
+
102
+ input::-ms-clear {
103
+ display: none;
104
+ }
105
+
106
+ input[type="number"],
107
+ [type="search"] {
108
+ -moz-appearance: textfield;
109
+ }
110
+
111
+ [type="number"]::-webkit-inner-spin-button,
112
+ [type="number"]::-webkit-outer-spin-button {
113
+ height: auto;
114
+ }
115
+
116
+ select:-moz-focusring {
117
+ color: transparent;
118
+ text-shadow: 0 0 0 #000;
119
+ }
120
+
121
+ button,
122
+ input[type="submit"] {
123
+ outline: 0;
124
+ background: 0;
125
+
126
+ &:hover,
127
+ &:active,
128
+ &:focus {
129
+ cursor: pointer;
130
+ }
131
+ }
132
+
133
+ textarea {
134
+ border: 1px solid;
135
+ resize: none;
136
+ outline: 0;
137
+ overflow: auto;
138
+ }
139
+
140
+ //############################################//
141
+ //############## Media Reset ###############//
142
+ //###########################################//
143
+
144
+
145
+ ul {
146
+ list-style: none;
147
+ }
148
+
149
+ blockquote, q {
150
+ quotes: none;
151
+ }
152
+
153
+ blockquote:before, blockquote:after,
154
+ q:before, q:after {
155
+ content: '';
156
+ content: none;
157
+ }
158
+
159
+ table {
160
+ border-collapse: collapse;
161
+ border-spacing: 0;
162
+ }
163
+
164
+ audio,
165
+ canvas,
166
+ progress,
167
+ video {
168
+ display: inline-block;
169
+ }
170
+
171
+ img,
172
+ embed,
173
+ object,
174
+ audio,
175
+ video {
176
+ height: auto;
177
+ max-width: 100%;
178
+ }
179
+
180
+ iframe {
181
+ border: 0
182
+ }
183
+
184
+ svg:not(:root) {
185
+ overflow: hidden;
186
+ }
@@ -0,0 +1,52 @@
1
+ //############################################//
2
+ //######## Responsive Utilities #############//
3
+ //###########################################//
4
+
5
+ $breakpoints: (
6
+ s: $small, // Mobile Screens
7
+ m: $medium, // Tablet Screens
8
+ l: $large, // Normal Screens
9
+ w: $wide // Wide Screens
10
+ );
11
+
12
+ //############################################//
13
+ //# Customize Alom editing the variables ###//
14
+ //###########################################//
15
+ // Example: @include breakpoint(s);
16
+ @mixin breakpoint($bp) {
17
+ @media screen and (max-width: #{map-get($breakpoints, $bp)}) {
18
+ @content;
19
+ }
20
+ }
21
+
22
+
23
+ //############################################//
24
+ //####### Hide elements on devices #########//
25
+ //###########################################//
26
+ @each $bp in map-keys($breakpoints) {
27
+ .hide-on-#{$bp} {
28
+ @include breakpoint($bp) {
29
+ display: none !important;
30
+ }
31
+ }
32
+ }
33
+
34
+ //############################################//
35
+ //### Hide elements in only this devices ###//
36
+ //###########################################//
37
+ @each $bp in map-keys($breakpoints) {
38
+ .hide-on-#{$bp}-only {
39
+ @media screen and (min-width: prev($breakpoints, #{$bp})) and (max-width: next($breakpoints, #{$bp})) {
40
+ display: none !important;
41
+ }
42
+ }
43
+ }
44
+ @each $bp in map-keys($breakpoints) {
45
+ .show-on-#{$bp} {
46
+ visibility: hidden;
47
+
48
+ @media screen and (min-width: prev($breakpoints, #{$bp})) and (max-width: next($breakpoints, #{$bp})) {
49
+ visibility: visible;
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,148 @@
1
+ //############################################//
2
+ //############# Float Utilities ############//
3
+ //###########################################//
4
+
5
+ .pull-right {
6
+ float: right;
7
+ }
8
+
9
+ .pull-left {
10
+ float: left;
11
+ }
12
+
13
+ //############################################//
14
+ //############# Text Utilities ############//
15
+ //###########################################//
16
+
17
+ $texts: 'right', 'left', 'justify', 'center';
18
+
19
+ @each $text in $texts {
20
+ .text-#{$text} {
21
+ text-align: #{$text};
22
+ }
23
+ }
24
+
25
+ //############################################//
26
+ //############# Displays Utilities #########//
27
+ //###########################################//
28
+
29
+ $displays: 'block', 'flex', 'inline', 'inline-block', 'inline-flex', 'table', 'none';
30
+
31
+ @each $display in $displays {
32
+ .display-#{$display} {
33
+ display: #{$display};
34
+ }
35
+ }
36
+
37
+ //############################################//
38
+ //############# Align Utilities #############//
39
+ //###########################################//
40
+
41
+ .align {
42
+ &.vertical {
43
+ position: relative;
44
+ top: 50%;
45
+ transform: translateY(-50%);
46
+ }
47
+
48
+ &.horizontal {
49
+ left: 50%;
50
+ position: relative;
51
+ transform: translateX(-50%);
52
+ }
53
+
54
+ &.center {
55
+ left: 50%;
56
+ position: absolute;
57
+ top: 50%;
58
+ transform: translate(-50%, -50%);
59
+ }
60
+ }
61
+
62
+ .align-flex {
63
+ display: flex;
64
+
65
+ &.is-column {
66
+ flex-direction: column;
67
+
68
+ &.vertical {
69
+ justify-content: center;
70
+ }
71
+
72
+ &.vertical-end {
73
+ justify-content: flex-end;
74
+ }
75
+
76
+ &.horizontal {
77
+ align-items: center;
78
+ }
79
+
80
+ &.horizontal-end {
81
+ align-items: flex-end;
82
+ }
83
+ }
84
+
85
+ &.vertical:not(.is-column) {
86
+ align-items: center;
87
+
88
+ &.end {
89
+ justify-content: flex-end;
90
+ }
91
+ }
92
+
93
+ &.horizontal:not(.is-column) {
94
+ justify-content: center;
95
+
96
+ &.end {
97
+ align-items: flex-end;
98
+ }
99
+ }
100
+
101
+ &.center {
102
+ align-items: center;
103
+ justify-content: center;
104
+ }
105
+
106
+ &.between {
107
+ justify-content: space-between;
108
+ }
109
+ }
110
+
111
+ //############################################//
112
+ //####### Hide or Disable Utilities #########//
113
+ //###########################################//
114
+
115
+ .is-disabled {
116
+ pointer-events: none;
117
+ }
118
+
119
+ .is-unselectable {
120
+ user-select: none;
121
+ }
122
+
123
+ .is-hidden.is-hidden {
124
+ border: 0;
125
+ clip: rect(0 0 0 0);
126
+ height: 1px;
127
+ margin: -1px;
128
+ overflow: hidden;
129
+ padding: 0;
130
+ position: absolute;
131
+ width: 1px;
132
+ }
133
+
134
+ //############################################//
135
+ //####### Hide or Disable Utilities #########//
136
+ //###########################################//
137
+
138
+ .testmode {
139
+ * {
140
+ background: $test-color !important;
141
+ }
142
+ }
143
+
144
+ .bordermode {
145
+ * {
146
+ border: 1px solid $test-border !important;
147
+ }
148
+ }
@@ -0,0 +1,26 @@
1
+ //############################################//
2
+ //# Customize Alom editing the variables ###//
3
+ //###########################################//
4
+
5
+ $font-base: 16 !default;
6
+
7
+ /// Base path for assets (fonts, images...),
8
+ /// should not include trailing slash
9
+ /// @access public
10
+ /// @type String
11
+ $asset-base-path: '../assets' !default;
12
+
13
+ //Grid settings
14
+ $number-of-columns: 12 !default;
15
+ $offset-columns: $number-of-columns !default;
16
+ $grid-break: 768px !default;
17
+
18
+ //Responsive Breakpints
19
+ $small: 768px !default;
20
+ $medium: 1024px !default;
21
+ $large: 1140px !default;
22
+ $wide: 4096px !default;
23
+
24
+ //Test
25
+ $test-color: rgba(255, 0, 0, .1) !default;
26
+ $test-border: rgba(255, 0, 0, 1) !default;
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: alom
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Abraham Kuri
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: A Ruby wrapper to use Alom on Rails
56
+ email:
57
+ - kurenn@icalialabs.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".travis.yml"
65
+ - CODE_OF_CONDUCT.md
66
+ - Gemfile
67
+ - LICENSE.txt
68
+ - README.md
69
+ - Rakefile
70
+ - alom.gemspec
71
+ - bin/console
72
+ - bin/setup
73
+ - dev.Dockerfile
74
+ - docker-compose.yml
75
+ - lib/alom.rb
76
+ - lib/alom/version.rb
77
+ - vendor/assets/stylesheets/alom.scss
78
+ - vendor/assets/stylesheets/alom/_functions.scss
79
+ - vendor/assets/stylesheets/alom/_grid.scss
80
+ - vendor/assets/stylesheets/alom/_mixins.scss
81
+ - vendor/assets/stylesheets/alom/_reset.scss
82
+ - vendor/assets/stylesheets/alom/_responsive.scss
83
+ - vendor/assets/stylesheets/alom/_utilities.scss
84
+ - vendor/assets/stylesheets/alom/_variables.scss
85
+ homepage: https://github.com/IcaliaLabs/alom-rails
86
+ licenses:
87
+ - MIT
88
+ metadata: {}
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubyforge_project:
105
+ rubygems_version: 2.6.12
106
+ signing_key:
107
+ specification_version: 4
108
+ summary: A Ruby wrapper to use Alom on Rails
109
+ test_files: []