Skip to content

Commit

Permalink
Merge pull request #3 from ArnaudBan/updates
Browse files Browse the repository at this point in the history
Some updates on styles and typos
  • Loading branch information
ArnaudBan authored Mar 12, 2020
2 parents 2082ba4 + 2ad3c01 commit 2dc52b2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
38 changes: 22 additions & 16 deletions css/admin-doc.css
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
.wp-doc-viewer{
display: flex;
.wp-doc-viewer {
display: flex;
justify-content: space-between;
}

.wp-doc-viewer__content {
max-width: 54em;
flex-grow: 1;
max-width: 54em;
flex-grow: 1;
}

.wp-doc-viewer__toc--item.current{
font-weight: 700;
.wp-doc-viewer__toc {
padding: 2em;
background-color: white;
}

.wp-doc-viewer img{
max-width: 100%;
height: auto;
.wp-doc-viewer__toc--item.current {
font-weight: 700;
}

.wp-doc-viewer ul{
list-style: disc outside;
margin-left: 3em;
.wp-doc-viewer img {
max-width: 100%;
height: auto;
}
.wp-doc-viewer blockquote{
border-left: 5px solid #0073aa;
padding-left: 1em;
margin-left: 1em;

.wp-doc-viewer ul {
list-style: disc outside;
margin-left: 3em;
}
.wp-doc-viewer blockquote {
border-left: 5px solid #0073aa;
padding-left: 1em;
margin-left: 1em;
}
6 changes: 3 additions & 3 deletions wp-doc-viewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private function add_admin_menu(): void

foreach ( $this->order_sections as $section_slug => $pages ){

$page_suffix[] = add_submenu_page( 'site-user-documentation', $section_slug, $section_slug, 'manage_options', $section_slug, array( $this, 'add_documentation_content_page'));
$page_suffix[] = add_submenu_page( 'site-user-documentation', $section_slug, ucfirst($section_slug), 'manage_options', $section_slug, array( $this, 'add_documentation_content_page'));
}

foreach ( $page_suffix as $suffix ){
Expand Down Expand Up @@ -103,7 +103,7 @@ private function get_all_child_page(): array

$meta = $parsedown->meta( file_get_contents( $file ) );

$section = 'Générale';
$section = 'Général';
if( isset( $meta['section'] ) ){
$section = $meta['section'];
} else {
Expand Down Expand Up @@ -208,7 +208,7 @@ private function toc()
foreach ( $this->order_sections as $sec => $pages ){


echo "<h3>$sec</h3>";
echo "<h3>".ucfirst($sec)."</h3>";

echo '<ul>';
foreach ( $pages as $p ){
Expand Down

0 comments on commit 2dc52b2

Please sign in to comment.