Browse Source

Update template

- Logical structure
- Add Comments
- Delete some rules

See #320
Marien Fressinaud 12 years ago
parent
commit
d0f058307f
1 changed files with 205 additions and 275 deletions
  1. 205 275
      p/themes/template/template.css

+ 205 - 275
p/themes/template/template.css

@@ -1,5 +1,7 @@
 @charset "UTF-8";
 @charset "UTF-8";
 
 
+/*=== GENERAL */
+/*============*/
 /*=== Links */
 /*=== Links */
 a {
 a {
 	text-decoration: none;
 	text-decoration: none;
@@ -14,27 +16,28 @@ ul, ol, dd {
 	padding: 0;
 	padding: 0;
 }
 }
 
 
-/* TITRES */
+/*=== Titles */
 h1, h2, h3 {
 h1, h2, h3 {
 	min-height: 40px;
 	min-height: 40px;
 	line-height: 40px;
 	line-height: 40px;
 }
 }
 
 
-/* IMG */
-figcaption {
-	display: inline-block;
-}
+/*=== Images */
 img {
 img {
 	height: auto;
 	height: auto;
 	max-width: 100%;
 	max-width: 100%;
 }
 }
+img.favicon {
+	height: 16px;
+	width: 16px;
+}
 
 
-/* VIDEOS */
+/*=== Videos */
 iframe, embed, object, video {
 iframe, embed, object, video {
 	max-width: 100%;
 	max-width: 100%;
 }
 }
 
 
-/* FORMULAIRES */
+/*=== Forms */
 legend {
 legend {
 	display: block;
 	display: block;
 	width: 100%;
 	width: 100%;
@@ -62,13 +65,13 @@ input[type="checkbox"] {
 	width: 15px !important;
 	width: 15px !important;
 	min-height: 15px !important;
 	min-height: 15px !important;
 }
 }
-input:focus.extend {
+input.extend:focus {
 	width: 300px;
 	width: 300px;
 }
 }
 
 
-.form-group {
-	margin: 0;
-}
+/*=== COMPONENTS */
+/*===============*/
+/*=== Forms */
 .form-group:after {
 .form-group:after {
 	content: "";
 	content: "";
 	display: block;
 	display: block;
@@ -90,14 +93,14 @@ input:focus.extend {
 .form-group .group-controls .control {
 .form-group .group-controls .control {
 	display: block;
 	display: block;
 	min-height: 30px;
 	min-height: 30px;
-	line-height: 25px;
+	line-height: 30px;
 }
 }
 
 
+/*=== Buttons */
 .stick {
 .stick {
 	display: inline-block;
 	display: inline-block;
 	white-space: nowrap;
 	white-space: nowrap;
 }
 }
-
 .btn {
 .btn {
 	display: inline-block;
 	display: inline-block;
 	min-height: 37px;
 	min-height: 37px;
@@ -114,20 +117,20 @@ a.btn {
 	background: #aaa;
 	background: #aaa;
 }
 }
 
 
-/* NAVIGATION */
+/*=== Navigation */
 .nav-list .nav-header,
 .nav-list .nav-header,
 .nav-list .item {
 .nav-list .item {
 	display: block;
 	display: block;
 	height: 35px;
 	height: 35px;
 	line-height: 35px;
 	line-height: 35px;
 }
 }
-.nav-list .item > * {
+.nav-list .item,
+.nav-list .item > a {
 	display: block;
 	display: block;
 	overflow: hidden;
 	overflow: hidden;
 	white-space: nowrap;
 	white-space: nowrap;
 	text-overflow: ellipsis;
 	text-overflow: ellipsis;
 }
 }
-
 .nav-head {
 .nav-head {
 	display: block;
 	display: block;
 }
 }
@@ -135,7 +138,7 @@ a.btn {
 	display: inline-block;
 	display: inline-block;
 }
 }
 
 
-/* HORIZONTAL-LIST */
+/*=== Horizontal-list */
 .horizontal-list {
 .horizontal-list {
 	display: table;
 	display: table;
 	table-layout: fixed;
 	table-layout: fixed;
@@ -145,7 +148,7 @@ a.btn {
 	display: table-cell;
 	display: table-cell;
 }
 }
 
 
-/* DROPDOWN */
+/*=== Dropdown */
 .dropdown {
 .dropdown {
 	position: relative;
 	position: relative;
 	display: inline-block;
 	display: inline-block;
@@ -153,7 +156,6 @@ a.btn {
 .dropdown-target {
 .dropdown-target {
 	display: none;
 	display: none;
 }
 }
-
 .dropdown-menu {
 .dropdown-menu {
 	display: none;
 	display: none;
 	min-width: 200px;
 	min-width: 200px;
@@ -175,11 +177,6 @@ a.btn {
 	display: block;
 	display: block;
 	line-height: 30px;
 	line-height: 30px;
 }
 }
-.dropdown-menu > .item.share > a {
-	display: list-item;
-	list-style-position: inside;
-	list-style-type: decimal;
-}
 .dropdown-menu > .item[aria-checked="true"] > a:before {
 .dropdown-menu > .item[aria-checked="true"] > a:before {
 	content: '✓ ';
 	content: '✓ ';
 }
 }
@@ -213,23 +210,23 @@ a.btn {
 	display: block;
 	display: block;
 	z-index: -10;
 	z-index: -10;
 }
 }
-
 .separator {
 .separator {
 	display: block;
 	display: block;
 	height: 0;
 	height: 0;
 	border-bottom: 1px solid #aaa;
 	border-bottom: 1px solid #aaa;
 }
 }
 
 
-/* ALERTS */
+/*=== Alerts */
 .alert {
 .alert {
 	display: block;
 	display: block;
 	width: 90%;
 	width: 90%;
 }
 }
 .alert-head {
 .alert-head {
 	margin: 0;
 	margin: 0;
+	font-weight: bold;
 }
 }
 
 
-/* ICÔNES */
+/*=== Icons */
 .icon {
 .icon {
 	display: inline-block;
 	display: inline-block;
 	width: 16px;
 	width: 16px;
@@ -238,17 +235,25 @@ a.btn {
 	line-height: 16px;
 	line-height: 16px;
 }
 }
 
 
-/* Prompt (centré) */
-.prompt form {
-	width: 10em;
-}
-.prompt input {
+/*=== Pagination */
+.pagination {
+	display: table;
 	width: 100%;
 	width: 100%;
+	table-layout: fixed;
+}
+.pagination .item {
+	display: table-cell;
+}
+.pagination .pager-first,
+.pagination .pager-previous,
+.pagination .pager-next,
+.pagination .pager-last {
+	width: 100px;
 }
 }
 
 
-
-
-/* STRUCTURE */
+/*=== STRUCTURE */
+/*===============*/
+/*=== Header */
 .header {
 .header {
 	display: table;
 	display: table;
 	width: 100%;
 	width: 100%;
@@ -261,18 +266,20 @@ a.btn {
 	width: 250px;
 	width: 250px;
 	white-space: nowrap;
 	white-space: nowrap;
 }
 }
-.logo {
+.header > .item.title h1 {
 	display: inline-block;
 	display: inline-block;
-	height: 32px;
-	width: 32px;
 }
 }
-.header > .item.title h1 {
+.header > .item.title .logo {
 	display: inline-block;
 	display: inline-block;
+	height: 32px;
+	width: 32px;
+	vertical-align: middle;
 }
 }
 .header > .item.configure {
 .header > .item.configure {
 	width: 100px;
 	width: 100px;
 }
 }
 
 
+/*=== Body */
 #global {
 #global {
 	display: table;
 	display: table;
 	width: 100%;
 	width: 100%;
@@ -284,54 +291,31 @@ a.btn {
 	height: 100%;
 	height: 100%;
 	width: 250px;
 	width: 250px;
 }
 }
-
-.nav-login {
-	display: none;
-}
-
-.nav_menu {
-	width: 100%;
-}
-.nav_menu .search {
-	display: none;
-}
-
-.favicon {
-	height: 16px;
-	width: 16px;
+.aside.aside_flux {
+	background: #fff;
 }
 }
 
 
-.categories {
-	padding: 0;
-	list-style: none;
-}
+/*=== Aside main page (categories) */
 .category {
 .category {
 	display: block;
 	display: block;
 	overflow: hidden;
 	overflow: hidden;
 	white-space: nowrap;
 	white-space: nowrap;
 	text-overflow: ellipsis;
 	text-overflow: ellipsis;
 }
 }
-.category .btn:first-child {
-	position: relative;
-}
-.category.stick .btn:first-child {
-	width: 160px;
-}
-.category .btn:first-child:not([data-unread="0"]):after {
+.category .btn:not([data-unread="0"]):after {
 	content: attr(data-unread);
 	content: attr(data-unread);
-	position: absolute;
-}
-.category + .feeds:not(.active) {
-	display: none;
 }
 }
+
+/*=== Aside main page (feeds) */
 .categories .feeds {
 .categories .feeds {
 	width: 100%;
 	width: 100%;
-	padding: 0;
 	list-style: none;
 	list-style: none;
 }
 }
-.categories .feeds .item .feed {
+.categories .feeds:not(.active) {
+	display: none;
+}
+.categories .feeds .feed {
 	display: inline-block;
 	display: inline-block;
-	margin: 0;
 	width: 165px;
 	width: 165px;
 	line-height: 35px;
 	line-height: 35px;
 	overflow: hidden;
 	overflow: hidden;
@@ -339,7 +323,7 @@ a.btn {
 	text-overflow: ellipsis;
 	text-overflow: ellipsis;
 	vertical-align: middle;
 	vertical-align: middle;
 }
 }
-.feed:not([data-unread="0"]):before {
+.categories .feeds .feed:not([data-unread="0"]):before {
 	content: "(" attr(data-unread) ") ";
 	content: "(" attr(data-unread) ") ";
 }
 }
 .categories .feeds .dropdown-menu {
 .categories .feeds .dropdown-menu {
@@ -348,6 +332,7 @@ a.btn {
 .categories .feeds .item .dropdown-toggle > .icon {
 .categories .feeds .item .dropdown-toggle > .icon {
 	visibility: hidden;
 	visibility: hidden;
 	cursor: pointer;
 	cursor: pointer;
+	vertical-align: top;
 }
 }
 .categories .feeds .item .dropdown-target:target ~ .dropdown-toggle > .icon,
 .categories .feeds .item .dropdown-target:target ~ .dropdown-toggle > .icon,
 .categories .feeds .item:hover .dropdown-toggle > .icon,
 .categories .feeds .item:hover .dropdown-toggle > .icon,
@@ -355,19 +340,7 @@ a.btn {
 	visibility: visible;
 	visibility: visible;
 }
 }
 
 
-.day {
-	min-height: 50px;
-	line-height: 50px;
-}
-.day .name {
-	position: absolute;
-	right: 0;
-	width: 50%;
-	overflow: hidden;
-	white-space: nowrap;
-	text-overflow: ellipsis;
-}
-
+/*=== New article notification */
 #new-article {
 #new-article {
 	display: none;
 	display: none;
 	min-height: 40px;
 	min-height: 40px;
@@ -377,10 +350,17 @@ a.btn {
 	line-height: 40px;
 	line-height: 40px;
 }
 }
 
 
-.horizontal-list > .item:not(.title):not(.website) > a {
-	display: block;
+/*=== Day indication */
+.day .name {
+	position: absolute;
+	right: 0;
+	width: 50%;
+	overflow: hidden;
+	white-space: nowrap;
+	text-overflow: ellipsis;
 }
 }
 
 
+/*=== Feed article header and footer */
 .flux_header {
 .flux_header {
 	position: relative;
 	position: relative;
 	height: 25px;
 	height: 25px;
@@ -388,20 +368,16 @@ a.btn {
 .flux .item {
 .flux .item {
 	line-height: 40px;
 	line-height: 40px;
 	white-space: nowrap;
 	white-space: nowrap;
-}
-.flux_header > .item {
-	overflow: hidden;
 	text-overflow: ellipsis;
 	text-overflow: ellipsis;
 }
 }
-.flux .item.manage {
+.flux .item.manage,
+.flux .item.link {
 	width: 40px;
 	width: 40px;
+	text-align: center;
 }
 }
 .flux .item.website {
 .flux .item.website {
 	width: 200px;
 	width: 200px;
 }
 }
-.flux .item.title a {
-	color: #000;
-}
 .flux.not_read .item.title,
 .flux.not_read .item.title,
 .flux.current .item.title {
 .flux.current .item.title {
 	font-weight: bold;
 	font-weight: bold;
@@ -412,116 +388,79 @@ a.btn {
 	max-width: calc(100% - 325px);
 	max-width: calc(100% - 325px);
 	background: #fff;
 	background: #fff;
 }
 }
+.flux .item.title a {
+	color: #000;
+	text-decoration: none;
+}
 .flux .item.date {
 .flux .item.date {
 	width: 145px;
 	width: 145px;
 }
 }
-.link {
-	width: 40px;
-}
-
-#stream.global .box-category {
-	display: inline-block;
-	width: 280px;
-	border: 1px solid #aaa;
-	vertical-align: top;
-}
-#stream.global .category {
-	width: 100%;
-}
-#stream.global .btn {
+.flux .item:not(.title) > a {
 	display: block;
 	display: block;
-	width: auto;
-	height: 35px;
-	line-height: 35px;
 }
 }
-#stream.global .box-category .feeds {
-	display: block;
-	max-height: 250px;
-	overflow: auto;
+.flux .flux_header .item,
+.flux .bottom .item.date {
+	overflow: hidden;
 }
 }
-#stream.global .box-category .feed {
-	width: 220px;
+.flux .item.share > a {
+	display: list-item;
+	list-style-position: inside;
+	list-style-type: decimal;
 }
 }
 
 
+/*=== Feed article content */
+.hide_posts > .flux:not(.active) > .flux_content {
+	display: none;
+}
 .content {
 .content {
 	min-height: 150px;
 	min-height: 150px;
 	max-width: 550px;
 	max-width: 550px;
+	margin: auto;
 	line-height: 170%;
 	line-height: 170%;
 	word-wrap: break-word;
 	word-wrap: break-word;
 }
 }
-
-img.big {
-	display: block;
-}
-.content hr {
-	height: 1px;
-}
 .content pre {
 .content pre {
 	overflow: auto;
 	overflow: auto;
 }
 }
-.content q, .content blockquote {
-	display: block;
-}
 
 
-#panel {
-	display: none;
-	position: fixed;
-	top: 10px; bottom: 10px;
-	left: 100px; right: 100px;
-	overflow: auto;
+/*=== Notification and actualize notification */
+#notification {
+	position: absolute;
+	top: 10px;
+	left: 25%; right: 25%;
+	z-index: 10;
 	background: #fff;
 	background: #fff;
+	border: 1px solid #aaa;
 }
 }
-#panel .close {
-	position: fixed;
-	top: 0; bottom: 0;
-	left: 0; right: 0;
-	display: block;
-}
-#panel .close img {
-	display: none;
-}
-
-#overlay {
+#notification.closed {
 	display: none;
 	display: none;
-	position: fixed;
-	top: 0; bottom: 0;
-	left: 0; right: 0;
-	background: rgba(0, 0, 0, 0.9);
 }
 }
-
-.hide_posts > :not(.active) > .flux_content {
-	display: none;
+#notification a.close {
+	display: inline-block;
+	width: 16px;
+	height: 16px;
+	float: right;
+	line-height: 16px;
 }
 }
 
 
-/*** PAGINATION ***/
-.pagination {
-	display: table;
-	width: 100%;
-	line-height: 200%;
-	table-layout: fixed;
-}
-.pagination .item {
-	display: table-cell;
-	line-height: 40px;
-}
-.pagination .pager-first,
-.pagination .pager-previous,
-.pagination .pager-next,
-.pagination .pager-last {
-	width: 100px;
+.actualizeProgress {
+	position: fixed;
+	top: 10px;
+	left: 25%; right: 25%;
+	background: #fff;
+	border: 1px solid #aaa;
 }
 }
-.pagination .item a {
-	display: block;
+.actualizeProgress progress {
+	max-width: 100%;
 }
 }
 
 
+/*=== Navigation menu (for articles) */
 #nav_entries {
 #nav_entries {
+	position: fixed;
+	bottom: 0; left: 0;
 	display: table;
 	display: table;
 	width: 250px;
 	width: 250px;
-	height: 40px;
-	position: fixed;
-	bottom: 0;
-	left: 0;
-	line-height: 40px;
+	background: #fff;
 	table-layout: fixed;
 	table-layout: fixed;
 }
 }
 #nav_entries .item {
 #nav_entries .item {
@@ -531,89 +470,114 @@ img.big {
 #nav_entries a {
 #nav_entries a {
 	display: block;
 	display: block;
 }
 }
-#nav_entries .i_up {
-	vertical-align: top;
-}
 
 
+/*=== "Load more" part */
 .loading {
 .loading {
 	background: url("loader.gif") center center no-repeat;
 	background: url("loader.gif") center center no-repeat;
 	font-size: 0;
 	font-size: 0;
 }
 }
-
 #bigMarkAsRead {
 #bigMarkAsRead {
 	display: block;
 	display: block;
+	padding: 40px 0;
 	text-align: center;
 	text-align: center;
 }
 }
 .bigTick {
 .bigTick {
-	font-size: 72pt;
+	font-size: 7em;
 	line-height: 1.6em;
 	line-height: 1.6em;
 }
 }
 
 
-/*** NOTIFICATION ***/
-#notification {
-	position: absolute;
-	top: 10px;
-	left: 25%; right: 25%;
-	min-height: 30px;
-	line-height: 30px;
-	z-index: 10;
+/*=== Statistiques */
+.stat table {
+	width: 100%;
+}
+
+/*=== GLOBAL VIEW */
+/*================*/
+/*=== Category boxes */
+#stream.global .box-category {
+	display: inline-block;
+	width: 280px;
 	border: 1px solid #aaa;
 	border: 1px solid #aaa;
+	vertical-align: top;
 }
 }
-#notification.closed {
-	display: none;
+#stream.global .category {
+	width: 100%;
 }
 }
-#notification a.close {
-	display: inline-block;
-	width: 16px;
-	height: 16px;
-	float: right;
-	line-height: 16px;
+#stream.global .btn {
+	display: block;
+}
+#stream.global .box-category .feeds {
+	display: block;
+	overflow: auto;
+}
+#stream.global .box-category .feed {
+	width: 220px;
 }
 }
 
 
-.toggle_aside, .btn.toggle_aside {
+/*=== Panel */
+#overlay {
 	display: none;
 	display: none;
+	position: fixed;
+	top: 0; bottom: 0;
+	left: 0; right: 0;
+	background: rgba(0, 0, 0, 0.9);
 }
 }
-
-.actualizeProgress {
+#panel {
+	display: none;
 	position: fixed;
 	position: fixed;
-	top: 10px;
-	left: 25%; right: 25%;
-	border: 1px solid #aaa;
+	top: 10px; bottom: 10px;
+	left: 100px; right: 100px;
+	overflow: auto;
+	background: #fff;
 }
 }
-.actualizeProgress progress {
-	max-width: 100%;
+#panel .close {
+	position: fixed;
+	top: 0; bottom: 0;
+	left: 0; right: 0;
+	display: block;
+}
+#panel .close img {
+	display: none;
 }
 }
 
 
-.log {
-	overflow: auto;
+/*=== DIVERS */
+/*===========*/
+.nav-login,
+.nav_menu .search,
+.nav_menu .toggle_aside {
+	display: none;
 }
 }
-.log .date {
-	display: block;
+
+.aside .toggle_aside {
+	position: absolute;
+	right: 0;
+	display: none;
+	width: 26px;
+	height: 26px;
+	line-height: 26px;
+	text-align: center;
 }
 }
 
 
+/*=== MOBILE */
+/*===========*/
 @media(max-width: 840px) {
 @media(max-width: 840px) {
 	.header,
 	.header,
 	.aside .btn-important,
 	.aside .btn-important,
 	.aside .feeds .dropdown,
 	.aside .feeds .dropdown,
 	.flux_header .item.website span,
 	.flux_header .item.website span,
-	.item.date {
+	.item.date, .day .date {
 		display: none;
 		display: none;
 	}
 	}
-	.flux_header .item.website {
-		width: 40px;
-	}
-
-	.nav-login {
+	.nav-login,
+	#panel .close img {
 		display: block;
 		display: block;
 	}
 	}
-
-	.pagination .pager-previous, .pagination .pager-next {
-		width: 100px;
-	}
-
-	.toggle_aside, .btn.toggle_aside {
+	.nav_menu .toggle_aside,
+	.aside .toggle_aside,
+	.nav_menu .search {
 		display: inline-block;
 		display: inline-block;
 	}
 	}
+
 	.aside {
 	.aside {
 		position: fixed;
 		position: fixed;
 		top: 0; left: 0;
 		top: 0; left: 0;
@@ -625,29 +589,24 @@ img.big {
 		width: 80%;
 		width: 80%;
 		overflow: auto;
 		overflow: auto;
 	}
 	}
-	.aside .toggle_aside {
-		position: absolute;
-		right: 0;
-		display: inline-block;
-		width: 26px;
-		height: 26px;
-		line-height: 26px;
-	}
 
 
-	#nav_entries {
-		width: 100%;
+	.flux_header .item.website {
+		width: 40px;
 	}
 	}
 
 
-	.nav_menu .search {
-		display: inline-block;
-		max-width: 97%;
+	.flux:not(.current):hover .item.title {
+		position: relative;
+		width: auto;
 	}
 	}
-	.nav_menu .search input {
-		max-width: 97%;
-		width: 90px;
+
+	#notification,
+	.actualizeProgress {
+		left: 10px;
+		right: 10px;
 	}
 	}
-	.nav_menu .search input:focus {
-		width: 400px;
+
+	#nav_entries {
+		width: 100%;
 	}
 	}
 
 
 	#panel {
 	#panel {
@@ -660,66 +619,37 @@ img.big {
 		width: 26px;
 		width: 26px;
 		height: 26px;
 		height: 26px;
 	}
 	}
-	#panel .close img {
-		display: block;
-	}
-
-	.day .date {
-		display: none;
-	}
-	.day .name {
-		height: 2.6em;
-	}
-
-	.flux:not(.current):hover .item.title {
-		position: relative;
-		width: auto;
-	}
-
-	.notification,
-	.actualizeProgress {
-		left: 10px;
-		right: 10px;
-	}
 }
 }
 
 
+/*=== PRINTER */
+/*============*/
 @media print {
 @media print {
-	.header,
-	.aside,
-	.nav_menu,
-	.day,
+	.header, .aside,
+	.nav_menu, .day,
 	.flux_header,
 	.flux_header,
 	.flux_content .bottom,
 	.flux_content .bottom,
-	.pagination {
+	.pagination,
+	#nav_entries {
 		display: none;
 		display: none;
 	}
 	}
-
 	html, body {
 	html, body {
 		background: #fff;
 		background: #fff;
 		color: #000;
 		color: #000;
 		font-family: Serif;
 		font-family: Serif;
 		font-size: 12pt;
 		font-size: 12pt;
 	}
 	}
-
 	#global,
 	#global,
 	.flux_content {
 	.flux_content {
 		display: block !important;
 		display: block !important;
 	}
 	}
-
 	.flux_content .content {
 	.flux_content .content {
 		width: 100% !important;
 		width: 100% !important;
-		text-align: justify;
 	}
 	}
-
 	.flux_content .content a {
 	.flux_content .content a {
 		color: #000;
 		color: #000;
 	}
 	}
 	.flux_content .content a:after {
 	.flux_content .content a:after {
-		content: " (" attr(href) ") ";
-		text-decoration: underline;
+		content: " [" attr(href) "] ";
+		font-style: italic;
 	}
 	}
 }
 }
-
-.stat > table {
-	width: 100%;
-}