summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-26 14:17:25 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-26 14:17:25 +0100
commitc2998ffc97fbb8e45e6179f5d9c59c1b940d5782 (patch)
treed9769ff850142c61fa91c2ce651061f4a30bd221
parent5ad19cddc179e3528bd90d4bea8c97518e65bf51 (diff)
Statistiques : performances CSS + thèmes
https://github.com/marienfressinaud/FreshRSS/issues/90 Évite les sélecteurs universels *, les expressions sous-qualifiées, et autres règles lourdes
-rw-r--r--p/themes/Dark/freshrss.css37
-rw-r--r--p/themes/Flat/freshrss.css37
-rw-r--r--p/themes/Origine/freshrss.css38
3 files changed, 90 insertions, 22 deletions
diff --git a/p/themes/Dark/freshrss.css b/p/themes/Dark/freshrss.css
index 40634e398..abda226a3 100644
--- a/p/themes/Dark/freshrss.css
+++ b/p/themes/Dark/freshrss.css
@@ -875,3 +875,40 @@ input.extend {
text-decoration: underline;
}
}
+
+.stat {
+ border:1px solid #aaa;
+ border-radius:10px;
+ box-shadow:2px 2px 5px #aaa;
+ margin:10px 0;
+ padding:0 5px;
+}
+.stat > h2 {
+ border-bottom:1px solid #aaa;
+ margin:0 -5px;
+ padding-left:5px;
+}
+.stat > div {
+ margin:5px 0;
+}
+.stat > table {
+ border-collapse:collapse;
+ margin:5px 0;
+ text-align:center;
+ width:100%;
+}
+.stat > table > thead > tr {
+ border-bottom:2px solid #aaa;
+}
+.stat > table > tbody > tr {
+ border-bottom:1px solid #aaa;
+}
+.stat > table > tbody > tr:last-child {
+ border-bottom:0;
+}
+.stat > table th, .stat > table td {
+ border-left:2px solid #aaa;
+}
+.stat > table th:first-child, .stat > table td:first-child {
+ border-left:0;
+}
diff --git a/p/themes/Flat/freshrss.css b/p/themes/Flat/freshrss.css
index 04b3df842..640c963c2 100644
--- a/p/themes/Flat/freshrss.css
+++ b/p/themes/Flat/freshrss.css
@@ -842,3 +842,40 @@ input.extend {
text-decoration: underline;
}
}
+
+.stat {
+ border:1px solid #aaa;
+ border-radius:10px;
+ box-shadow:2px 2px 5px #aaa;
+ margin:10px 0;
+ padding:0 5px;
+}
+.stat > h2 {
+ border-bottom:1px solid #aaa;
+ margin:0 -5px;
+ padding-left:5px;
+}
+.stat > div {
+ margin:5px 0;
+}
+.stat > table {
+ border-collapse:collapse;
+ margin:5px 0;
+ text-align:center;
+ width:100%;
+}
+.stat > table > thead > tr {
+ border-bottom:2px solid #aaa;
+}
+.stat > table > tbody > tr {
+ border-bottom:1px solid #aaa;
+}
+.stat > table > tbody > tr:last-child {
+ border-bottom:0;
+}
+.stat > table th, .stat > table td {
+ border-left:2px solid #aaa;
+}
+.stat > table th:first-child, .stat > table td:first-child {
+ border-left:0;
+}
diff --git a/p/themes/Origine/freshrss.css b/p/themes/Origine/freshrss.css
index 78adbeff0..98f470536 100644
--- a/p/themes/Origine/freshrss.css
+++ b/p/themes/Origine/freshrss.css
@@ -899,45 +899,39 @@ input.extend {
}
}
-.stat{
+.stat {
border:1px solid #aaa;
border-radius:10px;
box-shadow:2px 2px 5px #aaa;
- margin: 10px 0;
+ margin:10px 0;
+ padding:0 5px;
}
-.stat h2{
+.stat > h2 {
border-bottom:1px solid #aaa;
- margin:0;
+ margin:0 -5px;
padding-left:5px;
}
-.stat h2 + *{
- margin:5px;
+.stat > div {
+ margin:5px 0;
}
-.stat h2 + div + div{
- margin:0 5px 5px 5px;
-}
-.stat h2 + table{
+.stat > table {
border-collapse:collapse;
- width:calc(100% - 10px);
-}
-.stat h2 + table th{
- text-transform:capitalize;
-}
-.stat h2 + table td{
+ margin:5px 0;
text-align:center;
+ width:100%;
}
-.stat h2 + table thead th{
+.stat > table > thead > tr {
border-bottom:2px solid #aaa;
}
-.stat h2 + table tbody tr *{
+.stat > table > tbody > tr {
border-bottom:1px solid #aaa;
}
-.stat h2 + table tbody tr:last-child *{
+.stat > table > tbody > tr:last-child {
border-bottom:0;
}
-.stat h2 + table tr *{
+.stat > table th, .stat > table td {
border-left:2px solid #aaa;
}
-.stat h2 + table tr *:first-child{
+.stat > table th:first-child, .stat > table td:first-child {
border-left:0;
-} \ No newline at end of file
+}