Commit 6dbbac407405c9ff3790927da104843cf5ec4cdf

Authored by Tomáz Martins
1 parent f2ab8a5e
Exists in master and in 79 other branches add_sisp_to_chef, add_super_archives_plugin, api_for_colab, automates_core_packing, backup_not_prod, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, design_validation, dev_env_minimal, disable_email_dev, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, focus_search_field_theme, gov-user-refactoring, gov-user-refactoring-rails4, header_fix, institution_modal_on_rating, kalibro-conf-refactoring, kalibro-processor-package, lxc_settings, margin_fix, mezuro_cookbook, prezento, refactor_download_block, refactor_software_communities, refactor_software_for_sisp, register_page, release-process, release-process-v2, remove-unused-images, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, removing_super_archives_email, review_message, scope2method, signals_user_noosfero, sisp_catalog_header, sisp_colab_config, sisp_dev, sisp_dev_master, sisp_simple_version, software_as_organization, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_minimal_env, spb_to_rails4, spec_refactor, stable-4.1, stable-4.2, stable-4.x, temp_soft_comm_refactoring, theme_header, theme_javascript_refactory, thread_dropdown, thread_page, update_search_by_categories, update_software_api, update_softwares_boxes

Reviewing software-pages

Sort of declarations of properties in rules
Adjusting, whenever possible, properties 'margin', 'border', 'padding' and
'font' to its most complete form
Putting units (px) to null values of certain properties
css/news-page.css
@@ -55,6 +55,10 @@ @@ -55,6 +55,10 @@
55 display: inline-block; 55 display: inline-block;
56 } 56 }
57 57
  58 +#content .blog .blog-post h1.title a {
  59 + color: black;
  60 +}
  61 +
58 /* WARNING: 62 /* WARNING:
59 * This solution is TEMPORARY. This informations shouldn't exist 63 * This solution is TEMPORARY. This informations shouldn't exist
60 * in this area. 64 * in this area.
css/software-pages.css
1 /*** Software Header ***/ 1 /*** Software Header ***/
2 -#content .software-information-block{  
3 - margin-bottom: 60px; 2 +#content .software-information-block {
  3 + margin: 0px 0px 60px 0px;
4 } 4 }
5 5
6 -#content #software-information-block-table{  
7 - width: auto; 6 +#content #software-information-block-table {
8 margin: 0px 15px; 7 margin: 0px 15px;
  8 + width: auto;
9 } 9 }
10 10
11 -#content #software-information-block-table td{ 11 +#content #software-information-block-table td {
12 display: table-cell; 12 display: table-cell;
13 } 13 }
14 14
15 #content #software-information-block-table #col-software-name { 15 #content #software-information-block-table #col-software-name {
16 - font-style: normal;  
17 vertical-align: top; 16 vertical-align: top;
  17 + font-style: normal;
18 } 18 }
19 19
20 -#content #software-information-block-table #col-software-name h1{  
21 - line-height: 37px;  
22 - font-size: 34px;  
23 - font-family: Arial, open_sansbold, Helvetica, sans-serif;  
24 - font-weight: 700; 20 +#content #software-information-block-table #col-software-name h1 {
  21 + font: 700 34px/37px arial, open_sansbold, helvetica, sans-serif;
25 text-align: left; 22 text-align: left;
26 } 23 }
27 24
28 -#content #software-information-block-table #col-software-name b{  
29 - line-height: 21px;  
30 - font-weight: normal;  
31 - font-family: Arial, open_sansregular, Helvetica, sans-serif;  
32 - font-size: 15px; 25 +#content #software-information-block-table #col-software-name b {
  26 + font: normal normal normal 15px/21px arial, 'open_sansregular', helvetica, sans-serif;
33 } 27 }
34 28
35 /*** end of Software Header ***/ 29 /*** end of Software Header ***/
@@ -38,158 +32,148 @@ @@ -38,158 +32,148 @@
38 32
39 /* Software Download Block*/ 33 /* Software Download Block*/
40 34
41 -#content .download-block #download-block-2{ 35 +#content .download-block #download-block-2 {
42 margin: 0px 15px; 36 margin: 0px 15px;
43 - border:1px solid #D3D6DE; 37 + border: 1px solid #D3D6DE;
44 border-radius: 10px; 38 border-radius: 10px;
45 } 39 }
46 40
47 -#content .download-block #download-block-2 #download_spb-2{  
48 - padding: 5px 10px;  
49 - background-color: #D3D6DE; 41 +#content .download-block #download-block-2 #download_spb-2 {
  42 + padding: 5px 10px 5px 10px;
50 border-top-left-radius: 8px; 43 border-top-left-radius: 8px;
51 border-top-right-radius: 8px; 44 border-top-right-radius: 8px;
52 - font-family: Arial; 45 + background-color: #D3D6DE;
  46 + font-family: arial;
53 } 47 }
54 48
55 -#content .download-block #download-block-2 #download_spb-2 h3{ 49 +#content .download-block #download-block-2 #download_spb-2 h3 {
56 margin: 6px 0px 2px 10px; 50 margin: 6px 0px 2px 10px;
57 font-size: 18px; 51 font-size: 18px;
58 } 52 }
59 53
60 #content .download-block #download-block-2 #download-info-1, 54 #content .download-block #download-block-2 #download-info-1,
61 #content .download-block #download-block-2 #download-info-2, 55 #content .download-block #download-block-2 #download-info-2,
62 -#content .download-block #download-block-2 #download-info-3{ 56 +#content .download-block #download-block-2 #download-info-3 {
63 padding: 30px 10px 30px 10px; 57 padding: 30px 10px 30px 10px;
64 - clear: both;  
65 border-top: 1px solid #D3D6DE; 58 border-top: 1px solid #D3D6DE;
  59 + clear: both;
66 } 60 }
67 61
68 -#content .download-block #download-block-2 #download-info-2{ 62 +#content .download-block #download-block-2 #download-info-2 {
69 background: #ECEDF1; 63 background: #ECEDF1;
70 } 64 }
71 65
72 -#content .download-block #download-block-2 #version01{ 66 +#content .download-block #download-block-2 #version01 {
  67 + margin: 0px 20px 0px 15px;
73 width: 80px; 68 width: 80px;
74 float: left; 69 float: left;
75 - margin-right: 20px;  
76 - margin-left: 15px;  
77 clear: both; 70 clear: both;
78 } 71 }
79 72
80 -#content .download-block #download-block-2 #version01 #image-download{  
81 - display: block;  
82 - height: 18px; /*fix when display file size*/ 73 +#content .download-block #download-block-2 #version01 #image-download {
83 padding: 50px 0px 8px 0px; 74 padding: 50px 0px 8px 0px;
84 - background-color: #2c66ce;  
85 - background-image: url("../images/download-icon.png");  
86 - background-repeat: no-repeat;  
87 - background-position: center;  
88 border: 1px solid #2c66ce; 75 border: 1px solid #2c66ce;
89 - border-radius: 8px; /*fix when display file size*/ 76 + border-radius: 8px;
  77 + height: 18px;
  78 + background: #2C66CE url("../images/download-icon.png") center no-repeat;
  79 + display: block;
90 } 80 }
91 81
92 -#content .download-block #download-block-2 #version01 #size-download{  
93 - display: none; /*fix when display file size*/  
94 - color: #ffffff;  
95 - background-color: #1a397d; 82 +#content .download-block #download-block-2 #version01 #size-download {
96 border: 1px solid #1a397d; 83 border: 1px solid #1a397d;
97 - border-bottom-right-radius: 8px;  
98 - border-bottom-left-radius: 8px; 84 + border-radius: 0px 0px 8px 8px;
  85 + background-color: #1a397d;
  86 + color: #ffffff;
99 font-size: 12px; 87 font-size: 12px;
100 text-align: center; 88 text-align: center;
  89 + display: none;
101 } 90 }
102 91
103 -#content .download-block #download-block-2 #info-software-download{  
104 - position: relative; 92 +#content .download-block #download-block-2 #info-software-download {
105 margin: 5px 0px 0px 100px; 93 margin: 5px 0px 0px 100px;
  94 + position: relative;
106 font-size: 16px; 95 font-size: 16px;
107 } 96 }
108 97
109 -#content .download-block #download-block-2 #info-software-download .download-name{ 98 +#content .download-block #download-block-2 #info-software-download .download-name {
110 display: block; 99 display: block;
111 font-weight: bold; 100 font-weight: bold;
112 } 101 }
113 102
114 -#content .download-block #download-block-2 #info-software-download .download-system{ 103 +#content .download-block #download-block-2 #info-software-download .download-system {
115 display: block; 104 display: block;
116 font-size: 14px; 105 font-size: 14px;
117 } 106 }
118 107
119 -#content .download-block #download-block-2 #info-software-download .req_min_spb{ 108 +#content .download-block #download-block-2 #info-software-download .req_min_spb {
120 font-size: 12px; 109 font-size: 12px;
121 } 110 }
122 111
123 -#content .download-block #download-block-2 #info-software-download .req_min_spb a{  
124 - color: #3E67B1; 112 +#content .download-block #download-block-2 #info-software-download .req_min_spb a {
125 line-height: 40px; 113 line-height: 40px;
  114 + color: #3E67B1;
126 text-decoration: underline; 115 text-decoration: underline;
127 } 116 }
128 117
129 -#content .download-block #download-block-2 #licensed-software{ 118 +#content .download-block #download-block-2 #licensed-software {
130 padding:14px; 119 padding:14px;
131 - background-color: #D3D6DE;  
132 border-top: 1px solid #D3D6DE; 120 border-top: 1px solid #D3D6DE;
133 - border-bottom-right-radius: 8px;  
134 - border-bottom-left-radius: 8px; 121 + border-radius: 0px 0px 8px 8px;
  122 + background-color: #D3D6DE;
135 font-size: 12px; 123 font-size: 12px;
136 text-align: right; 124 text-align: right;
137 } 125 }
138 126
139 -#content .download-block #download-block-2 #licensed-software a{ 127 +#content .download-block #download-block-2 #licensed-software a {
140 color: #3e67b1; 128 color: #3e67b1;
141 text-decoration: underline; 129 text-decoration: underline;
142 } 130 }
143 131
144 /* About Software - Article on homepage */ 132 /* About Software - Article on homepage */
145 133
146 -.profile-homepage #article h1{  
147 - padding: 0;  
148 - margin: 0 0 10px; 134 +.profile-homepage #article #article-toolbar #article-header h1 {
  135 + margin: 0px 0px 10px 0px;
  136 + padding: 0px;
149 color: #172738; 137 color: #172738;
150 - font-family: Arial, open_sansbold, Helvetica, sans-serif;  
151 - font-variant: normal;  
152 - font-weight: bold;  
153 - font-size: 22px;  
154 - line-height: 1.3em; 138 + font: normal normal bold 22px/1.3em arial, 'open_sansbold', helvetica, sans-serif;
155 } 139 }
156 140
157 -.profile-homepage #article #article-header h1.title{  
158 - border: none; 141 +.profile-homepage #article #article-toolbar #article-header h1.title {
  142 + border: none;
159 } 143 }
160 144
161 -.profile-homepage #article #article-header .publishing-info{ 145 +.profile-homepage #article #article-header .publishing-info {
162 display: none; 146 display: none;
163 } 147 }
164 148
165 -.profile-homepage #article .article-body h1{  
166 - padding-top: 25px; 149 +.profile-homepage #article .article-body h1 {
167 border-top: 1px solid #ECEDF1; 150 border-top: 1px solid #ECEDF1;
168 border-bottom: none; 151 border-bottom: none;
  152 + padding-top: 25px;
169 } 153 }
170 154
171 -.profile-homepage #article .article-body p{  
172 - text-align: left;  
173 - font-size: 15px;  
174 - line-height: 21px;  
175 - margin-bottom: 20px; 155 +.profile-homepage #article .article-body p {
  156 + margin: 0px 0px 20px 0px;
  157 + line-height: 21px;
  158 + text-align: left;
  159 + font-size: 15px;
176 } 160 }
177 161
178 -.profile-homepage #article .article-body hr{ 162 +.profile-homepage #article .article-body hr {
179 display: none; 163 display: none;
180 } 164 }
181 165
182 .profile-homepage #article .article-body ul { 166 .profile-homepage #article .article-body ul {
  167 + background-repeat: no-repeat;
183 list-style-position: inside; 168 list-style-position: inside;
184 list-style-type: disc; 169 list-style-type: disc;
185 - background-repeat: no-repeat;  
186 } 170 }
187 171
188 -.profile-homepage #article .article-body ul li{  
189 - list-style: inherit; 172 +.profile-homepage #article .article-body ul li {
  173 + line-height: 21px;
190 text-align: left; 174 text-align: left;
191 - font-size: 15px;  
192 - line-height: 21px; 175 + font-size: 15px;
  176 + list-style: inherit;
193 } 177 }
194 178
195 /*** end of Software Homepage ***/ 179 /*** end of Software Homepage ***/
@@ -201,10 +185,10 @@ @@ -201,10 +185,10 @@
201 } 185 }
202 186
203 #content .box-1 .categories-and-tags-block .block-title { 187 #content .box-1 .categories-and-tags-block .block-title {
204 - background: none;  
205 margin-top: 14px; 188 margin-top: 14px;
206 - float: left; 189 + background: none;
207 font-size: 11px; 190 font-size: 11px;
  191 + float: left;
208 } 192 }
209 193
210 #content .box-1 .categories-and-tags-block .block-title:last-child { 194 #content .box-1 .categories-and-tags-block .block-title:last-child {
@@ -218,19 +202,19 @@ @@ -218,19 +202,19 @@
218 } 202 }
219 203
220 #content .box-1 .categories-and-tags-block .category_cloud a { 204 #content .box-1 .categories-and-tags-block .category_cloud a {
221 - padding: 3px 6px;  
222 margin: 10px 3px; 205 margin: 10px 3px;
223 - line-height: 28px;  
224 - background-color: #e9e8ed; 206 + padding: 3px 6px;
225 border: 1px solid #e9e8ed; 207 border: 1px solid #e9e8ed;
226 border-radius: 8px; 208 border-radius: 8px;
  209 + line-height: 28px;
  210 + background-color: #e9e8ed;
227 font-size: 11px; 211 font-size: 11px;
228 } 212 }
229 213
230 #content .box-1 .categories-and-tags-block .category_cloud a:hover { 214 #content .box-1 .categories-and-tags-block .category_cloud a:hover {
  215 + border-color: #3a70d1;
231 background: #3a70d1; 216 background: #3a70d1;
232 color: white; 217 color: white;
233 - border-color: #3a70d1;  
234 } 218 }
235 219
236 #content .box-1 .categories-and-tags-block .category_cloud a:link { 220 #content .box-1 .categories-and-tags-block .category_cloud a:link {
@@ -243,31 +227,31 @@ @@ -243,31 +227,31 @@
243 227
244 /* Link-list block */ 228 /* Link-list block */
245 #content .box-3 .block-title { 229 #content .box-3 .block-title {
246 - background: #eee;  
247 - color: #4562b1;  
248 - border-top: 4px solid #4562b1;  
249 - line-height: 15px; 230 + border-top: 4px solid #4562b1;
  231 + line-height: 15px;
  232 + background: #eee;
  233 + color: #4562b1;
250 } 234 }
251 235
252 #content .box-3 .link-list-block li { 236 #content .box-3 .link-list-block li {
253 - margin: 0;  
254 - padding: 0; 237 + margin: 0px;
  238 + padding: 0px;
255 border-bottom: 1px solid #ddd; 239 border-bottom: 1px solid #ddd;
256 border-top: none; 240 border-top: none;
257 } 241 }
258 242
259 #content .box-3 .link-list-block li a { 243 #content .box-3 .link-list-block li a {
260 - width: auto; 244 + border-right: none;
  245 + border-top: 0px solid #64946E;
  246 + border-radius: 0px 0px 0px 0px;
261 padding: 6px 5px 8px 18px; 247 padding: 6px 5px 8px 18px;
  248 + width: auto;
  249 + line-height: 17px;
262 background-color: #fff; 250 background-color: #fff;
263 background-position: 0px 50%; 251 background-position: 0px 50%;
264 color: #2C66CE; 252 color: #2C66CE;
265 - border-right: none;  
266 - border-top: 0px solid #64946E;  
267 - border-radius: 0 0 0 0;  
268 font-weight: normal; 253 font-weight: normal;
269 font-size: 14px; 254 font-size: 14px;
270 - line-height: 17px;  
271 } 255 }
272 256
273 #content .box-3 .link-list-block h3.empty + ul { 257 #content .box-3 .link-list-block h3.empty + ul {
@@ -285,8 +269,8 @@ @@ -285,8 +269,8 @@
285 } 269 }
286 270
287 #content .box-3 .link-list-block li a.link-this-page { 271 #content .box-3 .link-list-block li a.link-this-page {
288 - width: auto;  
289 margin-left: 0px; 272 margin-left: 0px;
  273 + width: auto;
290 background-color: #ffffff; 274 background-color: #ffffff;
291 font-weight: bold; 275 font-weight: bold;
292 } 276 }
@@ -294,37 +278,35 @@ @@ -294,37 +278,35 @@
294 /* Repository block */ 278 /* Repository block */
295 .box-3 #bt_repositorio, 279 .box-3 #bt_repositorio,
296 .box-3 #bt_repositorio:active, 280 .box-3 #bt_repositorio:active,
297 -.box-3 #bt_repositorio:visited{  
298 - display: block;  
299 - position: relative;  
300 - padding: 12px 10px;  
301 - background: #EAEBEE;  
302 - border-radius: 4px;  
303 - font-size: 12px;  
304 - font-family: open_sansbold, Arial, Helvetica, sans-serif;  
305 - font-weight: bold;  
306 - text-transform: uppercase;  
307 -}  
308 -  
309 -.box-3 #bt_repositorio::after{  
310 - content: url('../images/right-arrow.png');  
311 - position: absolute; 281 +.box-3 #bt_repositorio:visited {
  282 + border-radius: 4px;
  283 + padding: 12px 10px;
  284 + background: #EAEBEE;
  285 + font: normal normal bold 12px 'open_sansbold', arial, helvetica, sans-serif;
  286 + text-transform: uppercase;
  287 + display: block;
  288 + position: relative;
  289 +}
  290 +
  291 +.box-3 #bt_repositorio::after {
  292 + margin-top: -2px;
  293 + padding: 4px 0px 4px 2px;
  294 + border-radius: 4px;
312 width: 18px; 295 width: 18px;
313 right: 10px; 296 right: 10px;
314 - padding: 4px 0px 4px 2px;  
315 - margin-top: -2px;  
316 - background: #2C66CE;  
317 - color: #FFF;  
318 - border-radius: 4px;  
319 - font-size: 16px;  
320 - line-height: 20px;  
321 - text-align: center; 297 + line-height: 20px;
  298 + position: absolute;
  299 + background: #2C66CE;
  300 + color: #FFF;
  301 + font-size: 16px;
  302 + text-align: center;
  303 + content: url('../images/right-arrow.png');
322 } 304 }
323 305
324 -.box-3 #content #bt_repositorio:hover{  
325 - color: #FFF;  
326 - background: #2C66CE;  
327 - text-decoration: none; 306 +.box-3 #content #bt_repositorio:hover {
  307 + color: #FFF;
  308 + background: #2C66CE;
  309 + text-decoration: none;
328 } 310 }
329 /*** end of right bar ***/ 311 /*** end of right bar ***/
330 312
@@ -343,15 +325,15 @@ @@ -343,15 +325,15 @@
343 } 325 }
344 326
345 #content .main-block .article-body ul.etapas-publicacao li strong { 327 #content .main-block .article-body ul.etapas-publicacao li strong {
346 - padding: 2px 8px;  
347 margin-right: 6px; 328 margin-right: 6px;
  329 + border-radius: 50%;
  330 + padding: 2px 8px;
348 background: #333; 331 background: #333;
349 color: #fff; 332 color: #fff;
350 float: left; 333 float: left;
351 - border-radius: 50%;  
352 } 334 }
353 335
354 -#content .main-block .article-body .etapas-publicacao-2{ 336 +#content .main-block .article-body .etapas-publicacao-2 {
355 font-weight: bold; 337 font-weight: bold;
356 } 338 }
357 339
@@ -364,44 +346,44 @@ @@ -364,44 +346,44 @@
364 /* Manual page */ 346 /* Manual page */
365 347
366 #content .main-block #article .folder-content .item-info { 348 #content .main-block #article .folder-content .item-info {
367 - padding: 30px 20px 32px 0px;  
368 border-top: 1px solid #ccc; 349 border-top: 1px solid #ccc;
  350 + padding: 30px 20px 32px 0px;
369 } 351 }
370 352
371 -#content .main-block #article .folder-content .folder-item:last-child .item-info{ 353 +#content .main-block #article .folder-content .folder-item:last-child .item-info {
372 border-bottom: 1px solid #ccc; 354 border-bottom: 1px solid #ccc;
373 } 355 }
374 356
375 #content .main-block #article .folder-content .item-icon { 357 #content .main-block #article .folder-content .item-icon {
376 - display: block;  
377 - float: left;  
378 margin: 2px 0px auto auto; 358 margin: 2px 0px auto auto;
379 padding: 45px 40px 4px 10px; 359 padding: 45px 40px 4px 10px;
380 - background: #2C66CE url("../images/download-mini_icon.png") center center no-repeat;  
381 border: 1px solid #2C66CE; 360 border: 1px solid #2C66CE;
382 border-radius: 4px; 361 border-radius: 4px;
  362 + background: #2C66CE url("../images/download-mini_icon.png") center center no-repeat;
  363 + display: block;
  364 + float: left;
383 } 365 }
384 366
385 -#content .main-block #article .folder-content .item-icon a{ 367 +#content .main-block #article .folder-content .item-icon a {
386 display: none; 368 display: none;
387 } 369 }
388 370
389 371
390 -#content .main-block #article .folder-content .item-description{  
391 - padding-left: 0px; 372 +#content .main-block #article .folder-content .item-description {
392 margin-left: 65px; 373 margin-left: 65px;
  374 + padding-left: 0px;
393 } 375 }
394 376
395 -#content .main-block #article .folder-content .item-description a{ 377 +#content .main-block #article .folder-content .item-description a {
396 color: #172938; 378 color: #172938;
397 font-size: 18px; 379 font-size: 18px;
398 font-family: Arial; 380 font-family: Arial;
399 font-weight: 700; 381 font-weight: 700;
400 } 382 }
401 383
402 -#content .main-block #article .folder-content .item-date{  
403 - padding-left: 0px; 384 +#content .main-block #article .folder-content .item-date {
404 margin-left: 65px; 385 margin-left: 65px;
  386 + padding-left: 0px;
405 } 387 }
406 388
407 /*** end fo software internal pages ***/ 389 /*** end fo software internal pages ***/
@@ -10,6 +10,7 @@ @@ -10,6 +10,7 @@
10 @import url(css/software-catalog-page.css); 10 @import url(css/software-catalog-page.css);
11 @import url(css/main-content.css); 11 @import url(css/main-content.css);
12 @import url(css/article-page.css); 12 @import url(css/article-page.css);
  13 +@import url(css/news-page.css);
13 /* 14 /*
14 @import url(css/community-pages.css); 15 @import url(css/community-pages.css);
15 @import url(css/software-pages.css); 16 @import url(css/software-pages.css);
@@ -77,7 +78,7 @@ url("fonts/opensans-800-webfont.ttf") format("truetype"), @@ -77,7 +78,7 @@ url("fonts/opensans-800-webfont.ttf") format("truetype"),
77 url("fonts/opensans-800-webfont.svg#open_sansextrabold") format("svg"); 78 url("fonts/opensans-800-webfont.svg#open_sansextrabold") format("svg");
78 } 79 }
79 80
80 -/***********Regras Gerais ************/ 81 +/*********** General Rules ************/
81 82
82 * { 83 * {
83 margin: 0; 84 margin: 0;