im_reader 1.0.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 +7 -0
- data/.gitignore +11 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +44 -0
- data/LICENSE.txt +21 -0
- data/README.md +110 -0
- data/Rakefile +8 -0
- data/app/assets/fonts/im_reader/icons.ttf +0 -0
- data/app/assets/fonts/im_reader/icons.woff +0 -0
- data/app/assets/fonts/im_reader/icons.woff2 +0 -0
- data/app/assets/images/im_reader/logo_colore.svg +26 -0
- data/app/assets/javascripts/im_reader/epub.min.js +1 -0
- data/app/assets/javascripts/im_reader/jszip.min.js +13 -0
- data/app/assets/javascripts/im_reader/reader.js +144 -0
- data/app/assets/javascripts/im_reader/semantic/progress.js +793 -0
- data/app/assets/javascripts/im_reader/semantic/sidebar.js +1022 -0
- data/app/assets/javascripts/im_reader/semantic-ui.js +2 -0
- data/app/assets/stylesheets/im_reader/reader.scss +127 -0
- data/app/assets/stylesheets/im_reader/semantic/button.scss +3172 -0
- data/app/assets/stylesheets/im_reader/semantic/colors.scss +15 -0
- data/app/assets/stylesheets/im_reader/semantic/container.scss +154 -0
- data/app/assets/stylesheets/im_reader/semantic/grid.scss +2029 -0
- data/app/assets/stylesheets/im_reader/semantic/header.scss +719 -0
- data/app/assets/stylesheets/im_reader/semantic/icon.scss +2587 -0
- data/app/assets/stylesheets/im_reader/semantic/item.scss +482 -0
- data/app/assets/stylesheets/im_reader/semantic/menu.scss +2054 -0
- data/app/assets/stylesheets/im_reader/semantic/progress.scss +517 -0
- data/app/controllers/im_reader/application_controller.rb +8 -0
- data/app/controllers/im_reader/epub_reader_controller.rb +62 -0
- data/app/views/im_reader/epub_reader/show.html.erb +38 -0
- data/app/views/layouts/im_reader/epub_reader.html.erb +23 -0
- data/config/locales/de.yml +10 -0
- data/config/locales/en.yml +10 -0
- data/config/locales/es.yml +10 -0
- data/config/locales/fr.yml +10 -0
- data/config/locales/pt.yml +10 -0
- data/config/routes.rb +4 -0
- data/im_reader.gemspec +33 -0
- data/lib/im_reader/engine.rb +32 -0
- data/lib/im_reader/version.rb +5 -0
- data/lib/im_reader.rb +8 -0
- data/sig/im_reader.rbs +4 -0
- data/spec/im_reader_spec.rb +11 -0
- data/spec/spec_helper.rb +15 -0
- metadata +115 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
$light-grey: #EEEEEE;
|
|
2
|
+
$grey: #9E9E9E;
|
|
3
|
+
$dark-grey: #393939;
|
|
4
|
+
|
|
5
|
+
$light-blue: #689ED1;
|
|
6
|
+
$yellow: #FFC870;
|
|
7
|
+
$red: #EF6262;
|
|
8
|
+
$green: #21ba3d;
|
|
9
|
+
$orange: #fb8808;
|
|
10
|
+
|
|
11
|
+
$blue: #0053A0;
|
|
12
|
+
$immateriel-blue: #1e89be;
|
|
13
|
+
$dark-blue: #003a71;
|
|
14
|
+
$medium-green: #a8c02f;
|
|
15
|
+
$dark-green: #849722;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* # Semantic UI 2.1.4 - Container
|
|
3
|
+
* http://github.com/semantic-org/semantic-ui/
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2015 Contributors
|
|
7
|
+
* Released under the MIT license
|
|
8
|
+
* http://opensource.org/licenses/MIT
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
/*******************************
|
|
14
|
+
Container
|
|
15
|
+
*******************************/
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* All Sizes */
|
|
19
|
+
.ui.container {
|
|
20
|
+
display: block;
|
|
21
|
+
max-width: 100% !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
.ui.grid.container.banner-infos {
|
|
26
|
+
width: 100% !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Mobile */
|
|
30
|
+
@media only screen and (max-width: 767px) {
|
|
31
|
+
.ui.container {
|
|
32
|
+
width: auto !important;
|
|
33
|
+
margin-left: 1em !important;
|
|
34
|
+
margin-right: 1em !important;
|
|
35
|
+
}
|
|
36
|
+
.ui.grid.container {
|
|
37
|
+
width: auto !important;
|
|
38
|
+
}
|
|
39
|
+
.ui.relaxed.grid.container {
|
|
40
|
+
width: auto !important;
|
|
41
|
+
}
|
|
42
|
+
.ui.very.relaxed.grid.container {
|
|
43
|
+
width: auto !important;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Tablet */
|
|
48
|
+
@media only screen and (min-width: 768px) and (max-width: 991px) {
|
|
49
|
+
.ui.container {
|
|
50
|
+
width: 723px;
|
|
51
|
+
margin-left: auto !important;
|
|
52
|
+
margin-right: auto !important;
|
|
53
|
+
}
|
|
54
|
+
.ui.grid.container {
|
|
55
|
+
width: calc( 723px + 2rem ) !important;
|
|
56
|
+
}
|
|
57
|
+
.ui.relaxed.grid.container {
|
|
58
|
+
width: calc( 723px + 3rem ) !important;
|
|
59
|
+
}
|
|
60
|
+
.ui.very.relaxed.grid.container {
|
|
61
|
+
width: calc( 723px + 5rem ) !important;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Small Monitor */
|
|
66
|
+
@media only screen and (min-width: 992px) and (max-width: 1199px) {
|
|
67
|
+
.ui.container {
|
|
68
|
+
width: 933px;
|
|
69
|
+
margin-left: auto !important;
|
|
70
|
+
margin-right: auto !important;
|
|
71
|
+
}
|
|
72
|
+
.ui.grid.container {
|
|
73
|
+
width: calc( 933px + 2rem ) !important;
|
|
74
|
+
}
|
|
75
|
+
.ui.relaxed.grid.container {
|
|
76
|
+
width: calc( 933px + 3rem ) !important;
|
|
77
|
+
}
|
|
78
|
+
.ui.very.relaxed.grid.container {
|
|
79
|
+
width: calc( 933px + 5rem ) !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Large Monitor */
|
|
84
|
+
@media only screen and (min-width: 1200px) {
|
|
85
|
+
.ui.container {
|
|
86
|
+
width: 1127px;
|
|
87
|
+
margin-left: auto !important;
|
|
88
|
+
margin-right: auto !important;
|
|
89
|
+
}
|
|
90
|
+
.ui.grid.container {
|
|
91
|
+
width: calc( 1127px + 2rem ) !important;
|
|
92
|
+
}
|
|
93
|
+
.ui.relaxed.grid.container {
|
|
94
|
+
width: calc( 1127px + 3rem ) !important;
|
|
95
|
+
}
|
|
96
|
+
.ui.very.relaxed.grid.container {
|
|
97
|
+
width: calc( 1127px + 5rem ) !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/*******************************
|
|
103
|
+
Types
|
|
104
|
+
*******************************/
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/* Text Container */
|
|
108
|
+
.ui.text.container {
|
|
109
|
+
font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
|
110
|
+
max-width: 700px !important;
|
|
111
|
+
line-height: 1.5;
|
|
112
|
+
}
|
|
113
|
+
.ui.text.container {
|
|
114
|
+
font-size: 1.14285714rem;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Fluid */
|
|
118
|
+
.ui.fluid.container {
|
|
119
|
+
width: 100%;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/*******************************
|
|
124
|
+
Variations
|
|
125
|
+
*******************************/
|
|
126
|
+
|
|
127
|
+
.ui[class*="left aligned"].container {
|
|
128
|
+
text-align: left;
|
|
129
|
+
}
|
|
130
|
+
.ui[class*="center aligned"].container {
|
|
131
|
+
text-align: center;
|
|
132
|
+
}
|
|
133
|
+
.ui[class*="right aligned"].container {
|
|
134
|
+
text-align: right;
|
|
135
|
+
}
|
|
136
|
+
.ui.justified.container {
|
|
137
|
+
text-align: justify;
|
|
138
|
+
-webkit-hyphens: auto;
|
|
139
|
+
-moz-hyphens: auto;
|
|
140
|
+
-ms-hyphens: auto;
|
|
141
|
+
hyphens: auto;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
/*******************************
|
|
146
|
+
Theme Overrides
|
|
147
|
+
*******************************/
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
/*******************************
|
|
152
|
+
Site Overrides
|
|
153
|
+
*******************************/
|
|
154
|
+
|