]> git.mxchange.org Git - friendica.git/commitdiff
Merge develop into 20180425_-_fix_help_aside
authorrabuzarus <trebor@central-unit>
Mon, 30 Apr 2018 12:56:25 +0000 (14:56 +0200)
committerrabuzarus <trebor@central-unit>
Mon, 30 Apr 2018 12:56:25 +0000 (14:56 +0200)
mod/help.php
view/global.css
view/theme/frio/css/style.css

index e4442f7ca3608e909e07fd72eb7611f2f0ed23eb..981fe97f70759103fa16ab8c50dcbadb8f316d57 100644 (file)
@@ -69,7 +69,7 @@ function help_content(App $a) {
        if ($filename !== "Home") {
                // create TOC but not for home
                $lines = explode("\n", $html);
-               $toc="<style>aside ul {padding-left: 1em;}aside h1{font-size:2em}</style><h2>TOC</h2><ul id='toc'>";
+               $toc="<h2>TOC</h2><ul id='toc'>";
                $lastlevel=1;
                $idnum = [0,0,0,0,0,0,0];
                foreach($lines as &$line){
@@ -94,16 +94,9 @@ function help_content(App $a) {
                for($k=0;$k<$lastlevel; $k++) $toc.="</ul>";
                $html = implode("\n",$lines);
 
-               $a->page['aside'] = '<section class="help-aside-wrapper">' . $toc . $a->page['aside'] . '</section>';
+               $a->page['aside'] = '<div class="help-aside-wrapper widget"><div id="toc-wrapper">' . $toc . '</div>' . $a->page['aside'] . '</div>';
        }
 
-       $html = "
-               <style>
-               .md_warning {
-                       padding: 1em; border: #ff0000 solid 2px;
-                       background-color: #f9a3a3; color: #ffffff;
-               }
-               </style>".$html;
        return $html;
 
 }
index 9d62cf03061619bd5b5c556a7b2159387f2802c9..0e6a36e2c61ad0a9e49eb65fc4a482f40b9a29d5 100644 (file)
@@ -464,6 +464,22 @@ td.federation-data {
   opacity: 0.3;
 }
 
+/* help widget */
+aside .help-aside-wrapper ul {
+  padding-left: 1em;
+}
+
+aside .help-aside-wrapper h1 {
+  font-size:2em
+}
+
+.md_warning {
+  padding: 1em;
+  border: #ff0000 solid 2px;
+  background-color: #f9a3a3;
+  color: #ffffff;
+}
+
 #forum-widget-collapse:hover {
   opacity: 1.0;
 }
index 18b2f4208899a4dc945fdbd89fba7569b944ce77..e1ac4f4da50a0e9bba131ac8202ba812a8a04a2c 100644 (file)
@@ -99,7 +99,6 @@ blockquote {
 code {
     white-space: pre-wrap;
 }
-.help-content-wrapper code, .help-aside-wrapper code {display: inline}
 
 /**
  * mobile aside
@@ -1056,6 +1055,25 @@ aside > #datebrowse-sidebar .posted-date-selector-months > ul > li:hover{
     padding-left: 27px;
 }
 
+/* help page widget */
+aside > .help-content-wrapper code, .help-aside-wrapper code {
+    display: inline
+}
+aside > .help-aside-wrapper p strong:first-child {
+    display: block;
+    margin: 1em 0 0em;
+}
+aside > .help-aside-wrapper h1 {
+    font-weight: bold;
+    font-size: 16px;
+    margin: 0;
+    padding: 20px 0 10px;
+}
+aside > .help-aside-wrapper h2 {
+    font-weight: bold;
+    font-size: 14px;
+}
+
 /* vcard / h-card */
 aside .vcard #profile-photo-wrapper{
     margin: 0;