Browse Source

New style for rss-bridge

Teromene 7 years ago
parent
commit
ab4e63b59c
2 changed files with 97 additions and 110 deletions
  1. 96 109
      css/style.css
  2. 1 1
      lib/HTMLUtils.php

+ 96 - 109
css/style.css

@@ -1,143 +1,130 @@
-/* html5 boilerplate from http://csswizardry.com/2011/01/the-real-html5-boilerplate/  */
-/*------------------------------------*\
-    RESET
-\*------------------------------------*/
-/* http://meyerweb.com/eric/tools/css/reset/ 
-    v2.0b1 | 201101 
-    NOTE:WORK IN PROGRESS
-    USE WITH CAUTION AND TEST WITH ABANDON */
-
-html,body,div,span,applet,object,iframe,
-h1,h2,h3,h4,h5,h6,p,blockquote,pre,
-a,abbr,acronym,address,big,cite,code,
-del,dfn,em,img,ins,kbd,q,s,samp,
-small,strike,strong,sub,sup,tt,var,
-b,u,i,center,
-dl,dt,dd,ol,ul,li,
-fieldset,form,label,legend,
-table,caption,tbody,tfoot,thead,tr,th,td,
-article,aside,canvas,details,figcaption,figure,
-footer,header,hgroup,menu,nav,section,summary,
-time,mark,audio,video{
-    margin:0;
-    padding:0;
-    border:0;
-    outline:0;
-    font-size:100%;
-    font:inherit;
-    vertical-align:baseline;
+html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
+
+    margin: 0;
+    padding: 0;
+    border: 0;
+    outline: 0;
+    font-size: 100%;
+    font: inherit;
+    vertical-align: baseline;
+
 }
 /* HTML5 display-role reset for older browsers */
-article,aside,details,figcaption,figure,
-footer,header,hgroup,menu,nav,section{
-    display:block;
-}
-body{
-    line-height:1;
-}
-ol,ul{
-    list-style:none;
-}
-blockquote,q{
-    quotes:none;
+article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
+
+    display: block;
+
 }
-blockquote:before,blockquote:after,
-q:before,q:after{
-    content:’’;
-    content:none;
+
+/* Let's go for the actual style */
+
+body {
+
+	background-color: #EEEEEE;
+	font-family: 'Noto Sans';
+
 }
-/* remember to define visible focus styles! 
-:focus{
-    outline:?????;
-} */
-
-/* remember to highlight inserts somehow! */
-ins{
-    text-decoration:none;
+
+header {
+
+	text-shadow:0 5px 6px rgba(150,150,150,0.69);
+	text-align: center;
+	color: #1182DB;
+
 }
-del{
-    text-decoration:line-through;
+
+header > h1 {
+
+	font-size: 300%;
+
 }
 
-table{
-    border-collapse:collapse;
-    border-spacing:0;
+header > h2 {
+
+	margin-left: 1em;
+	font-size: 120%;
+
 }
 
+section {
 
-/*------------------------------------*\
-    $MAIN
-\*------------------------------------*/
-/* GO! */
+	background-color: #FFFFFF;
+	width: 80%;
+	margin: 30px auto;
+	padding: 10px 15px;
+	text-align: center;
 
+	box-shadow: 0px 1px 2px rgba(0,0,0, 0.25);
 
-body {
-    font-family: "Segoe UI", Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif;
-    font-size: 120%;
 }
 
-h1 {
-    font-size: 300%;
-    font-weight: bold;
-    text-shadow: 0 5px 6px rgba(150,150,150,0.69);
-}
+section > h2 {
 
-h2 {
-    font-size: 120%;
-    margin-bottom: 10px;
-}
+	font-size: 200%;
+	font-weight: bold;
 
-h2 a {
-    color:black;
 }
 
-form {
-    margin-bottom: 10px;
-}
+a, a:link, a:visited {
+
+	color: #2196F3;
 
-header,footer {
-    max-width: 600px;
-    margin: 0 auto;
-    padding: 20px;
 }
 
-header h2 {
-	margin-left:1em;
+button {
+
+	line-height: 1.9em;
+	color: #FFF;
+	font-weight: bold;
+	vertical-align: middle;
+	padding: 6px 12px;
+	margin: 12px auto 0px;
+	box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
+	border-radius: 2px;
+	border: 1px solid transparent;
+	min-width: 140px;
+	background: #2196F3 none repeat scroll 0% 0%;
+	cursor: pointer;
+
+	width: calc(20% - 4px);
+
 }
 
-footer {
-    text-align: center;
-    font-size: 80%;
+.description {
+
+	margin: 10px;
+	text-decoration: underline;
+
 }
 
-section {
-    max-width: 600px;
-    margin: 30px auto;
-    padding: 10px 15px;
-    -webkit-box-shadow: 0 0 9px rgba(50,50,50,0.51);
-    -moz-box-shadow: 0 0 9px rgba(50,50,50,0.51);
-    box-shadow: 0 0 9px rgba(50,50,50,0.51);
-    background: #f5f5f5;
+h5 {
+
+	margin: 20px;
+	font-weight: bold;
+
 }
 
-.description {
-    font-size:70%;
-    margin-bottom: 10px;
-    position:relative;
-    bottom: 5px;
-    color: #555;
+form {
+
+	margin-bottom: 6px;
+
 }
 
 .maintainer {
-    font-size:60%;
-    float:right;
-    color: #777;
-}
 
-.placeholder {
-    color: #aaa;
+	font-size: 60%;
+	text-align: right;
+
 }
 
-input, label {
-    font-size: 80%;
+input[type="text"] {
+
+	background-color: white;
+	color: #404552;
+	border: 0px;
+	border-bottom: 2px solid #2196F3;
+	font-size: 1.1em;
+	margin-left: 8px;
+	padding-left: 4px;
+
 }

+ 1 - 1
lib/HTMLUtils.php

@@ -141,7 +141,7 @@ CARD;
 
 		}
 
-		$card .= '<span class="maintainer">'.$bridgeElement->maintainer.'</span>';
+		$card .= '<p class="maintainer">'.$bridgeElement->maintainer.'</p>';
 		$card .= '</section>';
 
 		return $card;