omg_image 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/templates/app/omg/simple.html.erb +6 -10
- data/lib/omg_image/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e039abdce55ba5038ced0e0915cc6569ada2b8b94a5a5c118f90c607b960a8bd
|
4
|
+
data.tar.gz: b8ce28a058a94a2a746ffd7d9d9644bf52cf8dc6fd7550910a628e8091f48ef5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62bdcbd5f8ba976757eb1f0a806aba21d7ac801a955a371fd59f71c5063d1e43ebac4122ae0538bc45bcde57851744dd89dfc14e959fc6dab471306fb3e30a56
|
7
|
+
data.tar.gz: 1bbd2a413f3b912d409522eb5147bd5266f807209d9352d0737e0f09c53be6ef94f2d8b9a1e96a39cec350cc13389d9adc49ee1ca0bb4ba4a9094f3d595ca635
|
@@ -53,10 +53,6 @@
|
|
53
53
|
height: 4vh;
|
54
54
|
align-items: center;
|
55
55
|
}
|
56
|
-
.preview-description img {
|
57
|
-
display: inline-block;
|
58
|
-
width: 3vw;
|
59
|
-
}
|
60
56
|
.preview-description span {
|
61
57
|
font-size: 2.0vw;
|
62
58
|
padding-top: 1vh;
|
@@ -81,12 +77,13 @@
|
|
81
77
|
<% font_size = 15 - (((title.size**0.89)+85)/16) %>
|
82
78
|
<h1 style="font-size:<%= font_size %>vw;"><%= raw title %><h1>
|
83
79
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
80
|
+
<% if local_assigns.has_key?(:description) %>
|
81
|
+
<div class="preview-description">
|
82
|
+
<span><%= description %></span>
|
83
|
+
</div>
|
84
|
+
<% end %>
|
88
85
|
|
89
|
-
<% if tags.any? %>
|
86
|
+
<% if local_assigns.has_key?(:tags) && tags.any? %>
|
90
87
|
<div class="preview-tags">
|
91
88
|
<% shift = rand(10) %>
|
92
89
|
<% tags.each_with_index do |tag, index| %>
|
@@ -97,6 +94,5 @@
|
|
97
94
|
<% end %>
|
98
95
|
</div>
|
99
96
|
<% end %>
|
100
|
-
|
101
97
|
</div>
|
102
98
|
</div>
|
data/lib/omg_image/version.rb
CHANGED