baseplate 0.2.0 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59ba7a69abb412f477871bbad2d29801ef1f43a8
4
- data.tar.gz: 1818c87570cea50bdf946b570d4b75b24090452c
3
+ metadata.gz: a695be71deb54a066530b7971fe19e0862d03884
4
+ data.tar.gz: 8cf2d805360ebd8a1b581122b93437ff21f1e7af
5
5
  SHA512:
6
- metadata.gz: 284803c6a32291bad222a1e6a4c2b1ccb98c57cd3de4b28b8af58399ab92cece914efb39ebcf0287f4c85a4b91a83acf4158c9e47493dd6e04fbaf3333b3f43a
7
- data.tar.gz: f405e5ea324a1f32eae11baa257da25052433d6f2bba4ad0ac9023db849c3e957eb95a6c74e736c90f4305fd24ac2c5f062839df5fe1f28a8b03739becea9ef8
6
+ metadata.gz: 79d5c42acc685a6ac82870e57c9e5f1c20cfdde9691fd054f863b7c3fc014803c991d9fdd4e25d8a44a3cbf5a8cd6b9071908c5bc3e087c16005032414dc6a21
7
+ data.tar.gz: 031049adeb5d045adc03b7522d78e0926c600eb744ebf00375d58a7ac72e3249e3b42f0a3fe31e3c5cb3878efe17c913b985af81aaf657a9a4b950399f980543
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Baseplate
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/baseplate`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Baseplate is my attempt as creating a simple and light CSS gem.
6
4
 
7
5
  ## Installation
8
6
 
@@ -12,6 +10,12 @@ Add this line to your application's Gemfile:
12
10
  gem 'baseplate'
13
11
  ```
14
12
 
13
+ Add this line to application.css
14
+
15
+ ```ruby
16
+ *= require baseplate
17
+ ```
18
+
15
19
  And then execute:
16
20
 
17
21
  $ bundle
@@ -22,17 +26,12 @@ Or install it yourself as:
22
26
 
23
27
  ## Usage
24
28
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
29
+ TODO: Fix this section
30
+ ADD: navbar and nav items, buttons, forms and inputs, and links
32
31
 
33
32
  ## Contributing
34
33
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/baseplate.
34
+ Bug reports and pull requests are welcome on GitHub at https://github.com/monster52/baseplate.
36
35
 
37
36
 
38
37
  ## License
@@ -1,5 +1,5 @@
1
1
  module Baseplate
2
2
  module Rails
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -4,53 +4,103 @@
4
4
  @import url('https://fonts.googleapis.com/css?family=Roboto');
5
5
 
6
6
  html {
7
- height: 100;
8
- font-size: 100%;
7
+ height: 100;
8
+ font-size: 100%;
9
9
  }
10
10
 
11
11
  body {
12
- font-family: 'Roboto', sans-serif;
13
- min-height: 100%;
12
+ font-family: 'Roboto', sans-serif;
13
+ min-height: 100%;
14
14
  }
15
15
 
16
- *, *::before, *::after {
17
- -moz-box-sizing: border-box;
18
- -webkit-box-sizing: border-box;
19
- box-sizing: border-box;
16
+ /******** NAVBAR ********/
17
+ .navbar {
18
+ display: flex;
19
+ justify-content: space-between;
20
+ padding: 0.5rem;
21
+ z-index: 1;
20
22
  }
21
23
 
22
- .container {
23
- margin: 0 auto;
24
- max-width: 64rem;
24
+ .navbar .logo {
25
+ margin-top: auto;
26
+ margin-botton: auto;
27
+ left: 2rem;
28
+ color: black;
29
+ font-weight: 700;
30
+ font-size: 1.2rem;
31
+ cursor: pointer;
25
32
  }
26
33
 
27
- .container.narrow {
28
- max-width: 56rem;
34
+ .navbar .links-container {
35
+ margin-top: auto;
36
+ margin-bottom: auto;
37
+ display: table;
38
+ top: 0;
39
+ right: 0;
40
+ height: 100%;
41
+ color: white;
42
+ text-decoration: none;
29
43
  }
30
44
 
31
- .clearfix::before,
32
- .clearfix::after {
33
- content: " ";
34
- display: table;
45
+ .links-container .navbar-link {
46
+ display: table-cell;
47
+ position: relative;
48
+ height: 100%;
49
+ padding-left: 1rem;
50
+ padding-right: 1rem;
51
+ vertical-align: middle;
52
+ color: black;
53
+ font-size: 0.625rem;
54
+ letter-spacing: 0.05rem;
55
+ font-weight: 700;
56
+ text-decoration: none;
57
+ cursor: pointer;
58
+ }
59
+
60
+ .links-container .navbar-link:hover {
61
+ color: rgb(233,50,117);
62
+ }
63
+
64
+
65
+ /******** LINKS ********/
66
+ a {
67
+ text-decoration: none;
35
68
  }
36
69
 
37
- .clearfix::after {
38
- clear: both;
70
+ /******** GRID ********/
71
+ .baseplate {
72
+ display: flex;
73
+ }
74
+ .baseplate .col {
75
+ flex: 1;
76
+ }
77
+
78
+ @media (max-width: 400px) {
79
+ .baseplate {
80
+ display: block;
81
+ .col {
82
+ width: 100%;
83
+ margin: 0 0 10px 0;
84
+ }
85
+ }
39
86
  }
40
87
 
88
+ * {
89
+ box-sizing: border-box;
90
+ }
91
+ body {
92
+ padding: 20px;
93
+ }
94
+ .baseplate {
95
+ margin: 0 0 20px 0;
96
+ }
41
97
  .col {
42
- float: left;
43
- padding-left: 1rem;
44
- padding-right: 1rem;
98
+ padding: 20px;
45
99
  }
46
100
 
47
- .col.full { width: 100%; }
48
- .col.two-thirds { width: 66.7; }
49
- .col.half { width: 50%; }
50
- .col.third { width: 33.3%; }
51
- .col.fourth { width: 25%; }
52
- .col.flow-opposite { float: right; }
101
+ /******** UTILS ********/
53
102
 
103
+ .text-center {text-align: center;}
54
104
 
55
105
  /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
56
106
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baseplate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Waguespack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-14 00:00:00.000000000 Z
11
+ date: 2017-07-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Baseplate is a minimal css grid system. We have included normalize for
14
14
  you.