aboutsummaryrefslogtreecommitdiff
path: root/public/themes/default/freshrss.css
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-03 19:22:59 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-04 23:31:36 +0100
commit231516f5238b6023001bed548569077c61411a4e (patch)
tree2265c174152f3bc7c0fbe49f5a776bc4ca5c3020 /public/themes/default/freshrss.css
parentb23d66ec360208cf1e1d8ee2fc3bebf25997d9fa (diff)
Grosse optimisation JavaScript
* Fusion de endless_mode.js dans main.js car endless_mode.js est toujours chargé et assez petit. * Suppression des changements de style en JavaScript lors du chargement (genre boucle de .hide(), ou d'ajout de classe ".stick") et implémentation en PHP + CSS à la place. * Chargement JavaScript asynchrone (defer + async) pour de meilleurs performances. * Utilisation préférable des événements globaux plutôt que des événements pour chaque élément avec jQuery.on(events, selector) pour un chargement plus rapide et moins de mémoire utilisée. * Optimisation manuelle du JavaScript (sélecteurs CSS plus performants, méthodes jQuery plus appropriées, etc.). * Désactivation de init_img() qui était coûteux, lancé à un moment où les images ne sont de toute manière pas encore chargées, et qui n'apporte rien car il y a déjà un img {max-width:100%} en CSS. * JavaScript en mode strict. * Enfin, passage du code JavaScript dans JSLint et du coup nombreuses corrections (syntaxe, variables, méthodes dépréciées...). * Devrait permettre de fermer https://github.com/marienfressinaud/FreshRSS/issues/121 * Au passage, quelques simplifications CSS pour de meilleures performances.
Diffstat (limited to 'public/themes/default/freshrss.css')
-rw-r--r--public/themes/default/freshrss.css40
1 files changed, 25 insertions, 15 deletions
diff --git a/public/themes/default/freshrss.css b/public/themes/default/freshrss.css
index 144c77c92..168417312 100644
--- a/public/themes/default/freshrss.css
+++ b/public/themes/default/freshrss.css
@@ -107,6 +107,9 @@
width: 195px;
position: relative;
}
+ .category.stick .btn:first-child {
+ width:160px;
+ }
.category .btn:first-child:not([data-unread="0"]):after {
content: attr(data-unread);
position: absolute;
@@ -120,6 +123,9 @@
box-shadow: 1px 3px 3px #aaa inset;
text-shadow: 0 0 1px #aaa;
}
+ .category + .feeds:not(.active) {
+ display:none;
+ }
.categories .feeds {
width: 100%;
margin: 0;
@@ -403,11 +409,11 @@
.content p {
margin: 0 0 20px;
}
- .content img.big {
+ img.big {
display: block;
margin: 10px auto;
}
- .content figure img.big {
+ figure img.big {
margin: 0;
}
.content hr {
@@ -473,6 +479,10 @@
text-align: center;
}
+.hide_posts > :not(.active) > .flux_content {
+ display:none;
+}
+
/*** PAGINATION ***/
.pagination {
display: table;
@@ -493,10 +503,10 @@
font-weight: bold;
font-size: 140%;
}
- .pagination .item.pager-first,
- .pagination .item.pager-previous,
- .pagination .item.pager-next,
- .pagination .item.pager-last {
+ .pagination .pager-first,
+ .pagination .pager-previous,
+ .pagination .pager-next,
+ .pagination .pager-last {
width: 100px;
}
.pagination .item a {
@@ -511,7 +521,7 @@
border-top: 1px solid #aaa;
}
-.nav_entries {
+#nav_entries {
display: table;
width: 250px;
height: 40px;
@@ -525,14 +535,14 @@
line-height: 40px;
table-layout: fixed;
}
- .nav_entries .item {
+ #nav_entries .item {
display: table-cell;
width: 30%;
}
- .nav_entries .item a {
+ #nav_entries a {
display: block;
}
- .nav_entries .item .icon.i_up {
+ #nav_entries .i_up {
margin: 5px 0 0;
vertical-align: top;
}
@@ -720,7 +730,7 @@
margin: 30px 0;
}
- .nav_entries {
+ #nav_entries {
width: 100%;
}
@@ -769,27 +779,27 @@
background: -o-linear-gradient(top, #f8f8f8 0%, #f0f0f0 100%);
background: -ms-linear-gradient(top, #f8f8f8 0%, #f0f0f0 100%);
}
- .btn.btn-important {
+ .btn-important {
background: #0084CC;
background: -moz-linear-gradient(top, #0084CC 0%, #0045CC 100%);
background: -webkit-linear-gradient(top, #0084CC 0%, #0045CC 100%);
background: -o-linear-gradient(top, #0084CC 0%, #0045CC 100%);
background: -ms-linear-gradient(top, #0084CC 0%, #0045CC 100%);
}
- .btn.btn-important:hover {
+ .btn-important:hover {
background: -moz-linear-gradient(top, #0066CC 0%, #0045CC 100%);
background: -webkit-linear-gradient(top, #0066CC 0%, #0045CC 100%);
background: -o-linear-gradient(top, #0066CC 0%, #0045CC 100%);
background: -ms-linear-gradient(top, #0066CC 0%, #0045CC 100%);
}
- .btn.btn-attention {
+ .btn-attention {
background: #E95B57;
background: -moz-linear-gradient(top, #E95B57 0%, #BD362F 100%);
background: -webkit-linear-gradient(top, #E95B57 0%, #BD362F 100%);
background: -o-linear-gradient(top, #E95B57 0%, #BD362F 100%);
background: -ms-linear-gradient(top, #E95B57 0%, #BD362F 100%);
}
- .btn.btn-attention:hover {
+ .btn-attention:hover {
background: -moz-linear-gradient(top, #D14641 0%, #BD362F 100%);
background: -webkit-linear-gradient(top, #D14641 0%, #BD362F 100%);
background: -o-linear-gradient(top, #D14641 0%, #BD362F 100%);