jobless 0.2.0 → 0.2.1

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: 4ab4f6cc3a65172601551b7570f094aa3deefff3
4
- data.tar.gz: 7bb2b7a72f4b4986453be4bfb5207a2ab726add8
3
+ metadata.gz: c55a60af67c16b25a488622a972cddd424a52b82
4
+ data.tar.gz: 49a754f08609ef0bf36fba55a4f2488bd8532017
5
5
  SHA512:
6
- metadata.gz: f6f073e04dd2b9b7e60573dd1c6f3024c61cbc1be5d8ab2ae037bd30c8bba2ed365fdc50e47ba14924256c6e15c496ddc869fd9818b6540d8a9d52eebec3646f
7
- data.tar.gz: 8227bfc3e83271e04f24dc116f875842188d9e2361529ff05938d3cee0ad7cd913a66fa03fbfd01a9d74ee449ca99d54223957994777ccf168e4c9a26117c66f
6
+ metadata.gz: e7ac7474ffeeafe74b5eff5cc074095079c606df4ee5bd25d277da5cb0f5916cc7e925e6ad144af383f00acc350210b17c93286bf00450b38bc003806bb67a90
7
+ data.tar.gz: 75c2392b7199266d58708fb3c3b94ea39cc76940c9fb2c9115809535bf116c95da58c3bfa8c3f47cf61b623ad6f987ee16576646274183cf915e4c522cbd6832
@@ -1,6 +1,12 @@
1
1
  @media screen {
2
+ #base {
3
+ margin-left: auto;
4
+ margin-right: auto;
5
+ max-width: 850px;
6
+ background-color: #fff;
7
+ }
2
8
  body {
3
- padding: 0 10% 5em;
9
+ background-color: #222;
4
10
  }
5
11
  }
6
12
  body {
@@ -17,19 +23,27 @@ h1 {
17
23
  margin-top: 20px;
18
24
  }
19
25
  h3 {
20
- border-bottom: 3px solid #bbb;
21
- font-size: 26px;
22
- margin-top: 3em 0 0.25em 0;
26
+ font-size: 20px;
27
+ margin-top: 0;
28
+ }
29
+ a, a:active, a:link, a:hover, a:visited {
30
+ color: #444499;
31
+ }
32
+ ul {
33
+ padding-left: 1em;
34
+ }
35
+ #base {
36
+ padding: 2em;
23
37
  }
24
38
  .technologies {
25
39
  font-size: 14px;
26
40
  font-style: italic;
27
- margin-top: 0;
28
41
  }
29
42
  .time-span {
30
43
  position: absolute;
31
44
  right: 0;
32
45
  top: 0;
46
+ font-size: 12px;
33
47
  }
34
48
  .item {
35
49
  border-bottom: 1px solid #ddd;
@@ -44,3 +58,19 @@ h3 {
44
58
  margin-top: 20px;
45
59
  text-align: right;
46
60
  }
61
+ .flexbox {
62
+ display: -ms-flex;
63
+ display: -webkit-flex;
64
+ display: flex;
65
+ margin-top: 20px;
66
+ padding-top: 10px;
67
+ }
68
+ .group-title {
69
+ width: 20%;
70
+ padding: 10px;
71
+ }
72
+ .group {
73
+ width: 80%;
74
+ padding: 10px;
75
+ }
76
+
@@ -7,48 +7,54 @@
7
7
  </style>
8
8
  </head>
9
9
  <body>
10
- <h1><%= name %></h1>
11
- <div class="personal-info">
12
- <% if email %><%= email %></br><% end %>
13
- <% if location %><%= location %></br><% end %>
14
- <% if address %><%= address %></br><% end %>
15
- <% if homepage %><a href="<%= homepage %>"><%= homepage %></a><% end %>
16
- </div>
17
- <div style="clear:both;"></div>
10
+ <div id="base">
11
+ <h1><%= name %></h1>
12
+ <div class="personal-info">
13
+ <% if email %><%= email %></br><% end %>
14
+ <% if location %><%= location %></br><% end %>
15
+ <% if address %><%= address %></br><% end %>
16
+ <% if homepage %><a href="<%= homepage %>"><%= homepage %></a><% end %>
17
+ </div>
18
+ <div style="clear:both;"></div>
18
19
 
19
- <% groups.each do |group| %>
20
- <div class="group <%= group.type %>">
21
- <h3> <%= group.name %> </h3>
22
- <% group.items.each do |item| %>
23
- <div class="item">
24
- <b class="title"><%= item.title %></b>
25
- <% if item.company %> - <%= item.company %> <% end %>
26
- <% if item.homepage %>
27
- <span class="homepage">
28
- (<a href="<%= item.homepage %>"><%= item.homepage %></a>)
29
- </span>
30
- <% end %>
31
- <% if item.technologies %>
32
- <p class="technologies">
33
- <%= item.technologies %>
34
- </p>
35
- <% end %>
36
- <p><%= item.description %></p>
37
- <% if item.bulletins %>
38
- <ul>
39
- <% item.bulletins.each do |bulletin| %>
40
- <li><%= bulletin %></li>
20
+ <% groups.each do |group| %>
21
+ <div class="flexbox <%= group.type %>">
22
+ <div class="group-title">
23
+ <h3> <%= group.name %> </h3>
24
+ </div>
25
+ <div class="group">
26
+ <% group.items.each do |item| %>
27
+ <div class="item">
28
+ <b class="title"><%= item.title %></b>
29
+ <% if item.company %> - <%= item.company %> <% end %>
30
+ <% if item.homepage %>
31
+ <span class="homepage">
32
+ (<a href="<%= item.homepage %>"><%= item.homepage %></a>)
33
+ </span>
41
34
  <% end %>
42
- </ul>
35
+ <% if item.technologies %>
36
+ <p class="technologies">
37
+ <%= item.technologies %>
38
+ </p>
39
+ <% end %>
40
+ <p><%= item.description %></p>
41
+ <% if item.bulletins %>
42
+ <ul>
43
+ <% item.bulletins.each do |bulletin| %>
44
+ <li><%= bulletin %></li>
45
+ <% end %>
46
+ </ul>
47
+ <% end %>
48
+ <div class="time-span">
49
+ <%= item.start_date %>
50
+ <% if item.end_date %> - <%= item.end_date %> <% end %>
51
+ </div>
52
+ </div>
43
53
  <% end %>
44
- <div class="time-span">
45
- <%= item.start_date %>
46
- <% if item.end_date %> - <%= item.end_date %> <% end %>
47
- </div>
48
54
  </div>
49
- <% end %>
50
- </div>
51
- <% end %>
55
+ </div>
56
+ <% end %>
57
+ </div>
52
58
  </body>
53
59
  </html>
54
60
 
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jobless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filip Defar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-24 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.0'
27
27
  description: Jobless is a simple DSL for creating a CV in HTML format.