simple_calendar 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c19ecd82b330e094dbf597c6eb582bbd34fa251
4
- data.tar.gz: c5e64e9ca17b180c50a1559c51f93dd14c1a15c4
3
+ metadata.gz: cc01558b04833e1dde44995688b8237f19f4a985
4
+ data.tar.gz: 584182fd18a1e913047d43b4db6f772c47469ac0
5
5
  SHA512:
6
- metadata.gz: adf85de715c435c06070a5ac1214c5cacebc55b588efde40a0c1a746514565db1dc9ddee1cec5f7e674616a011486e1d803f7f1b5920aac44bcb8c0154560965
7
- data.tar.gz: 0b3c317bc8f602b09a1dcd9fed960d8302afe2014d527aa0b8fe4e5ca52031ca1f289ff583eb81e22a2beaf45807abb2632f2c5b937bbda8ac7a759737b8551a
6
+ metadata.gz: 8fe7ea4dea3cd558d4e966d4cdeb3c580cdf8ca59239846c5fd2db41fecd66e892e441b5e26487bcf109b2edf48c2b25855738b1abc6b358b40789a27732263b
7
+ data.tar.gz: 9a43df2512a7e534589dd83e5de394ef6ff6ff4148754c7242253e80b615b9de766087bebf7c9a0de29e0ccc46a37713c94b3a57066a2aef3a82d30d31918d97
data/README.md CHANGED
@@ -184,6 +184,18 @@ example. If you want to set this globally, you can put this line in
184
184
  config.beginning_of_week = :sunday
185
185
  ```
186
186
 
187
+ ### Default Stylesheet
188
+
189
+ If you're using Bootstrap, the calendar should already have a border and
190
+ nice spacing for days.
191
+
192
+ Optionally, you can include the default stylesheet for the calendar in
193
+ your `app/assets/stylesheets/application.css` file:
194
+
195
+ ```scss
196
+ *= require simple_calendar
197
+ ```
198
+
187
199
  ### Custom CSS Classes
188
200
 
189
201
  Setting classes on the table and elements are pretty easy.
@@ -0,0 +1,78 @@
1
+ .simple-calendar {
2
+ table {
3
+ -webkit-border-horizontal-spacing: 0px;
4
+ -webkit-border-vertical-spacing: 0px;
5
+ background-color: rgba(0, 0, 0, 0);
6
+ border: 1px solid rgb(221, 221, 221);
7
+ border-collapse: collapse;
8
+ box-sizing: border-box;
9
+ max-width: 100%;
10
+ width: 100%;
11
+ }
12
+
13
+ tr {
14
+ border-collapse: collapse;
15
+ }
16
+
17
+ th {
18
+ padding: 6px;
19
+ border-bottom: 2px solid rgb(221, 221, 221);
20
+ border-collapse: collapse;
21
+ border-left: 1px solid rgb(221, 221, 221);
22
+ border-right: 1px solid rgb(221, 221, 221);
23
+ border-top: 0px none rgb(51, 51, 51);
24
+ box-sizing: border-box;
25
+ text-align: left;
26
+ }
27
+
28
+ td {
29
+ padding: 6px;
30
+ vertical-align: top;
31
+ width: 14%;
32
+
33
+ border: 1px solid #ddd;
34
+ border-top-color: rgb(221, 221, 221);
35
+ border-top-style: solid;
36
+ border-top-width: 1px;
37
+ border-right-color: rgb(221, 221, 221);
38
+ border-right-style: solid;
39
+ border-right-width: 1px;
40
+ border-bottom-color: rgb(221, 221, 221);
41
+ border-bottom-style: solid;
42
+ border-bottom-width: 1px;
43
+ border-left-color: rgb(221, 221, 221);
44
+ border-left-style: solid;
45
+ border-left-width: 1px;
46
+ }
47
+
48
+ .day {
49
+ height: 80px;
50
+ }
51
+
52
+ .wday-0 {}
53
+ .wday-1 {}
54
+ .wday-2 {}
55
+ .wday-3 {}
56
+ .wday-4 {}
57
+ .wday-5 {}
58
+ .wday-6 {}
59
+
60
+ .today {
61
+ background: #FFFFC0
62
+ }
63
+
64
+ .past {}
65
+ .future {}
66
+
67
+ .start-date {}
68
+
69
+ .prev-month {
70
+ background: #DDD;
71
+ }
72
+ .next-month {
73
+ background: #DDD;
74
+ }
75
+ .current-month {}
76
+
77
+ .has-events {}
78
+ }
@@ -1,3 +1,3 @@
1
1
  module SimpleCalendar
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-22 00:00:00.000000000 Z
11
+ date: 2015-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -54,6 +54,7 @@ files:
54
54
  - LICENSE.txt
55
55
  - README.md
56
56
  - Rakefile
57
+ - app/assets/stylesheets/simple_calendar.scss
57
58
  - app/views/simple_calendar/_calendar.html.erb
58
59
  - app/views/simple_calendar/_month_calendar.html.erb
59
60
  - app/views/simple_calendar/_week_calendar.html.erb