Skip to content

Commit

Permalink
Mise à jour pour la version alpha7 du CMS.
Browse files Browse the repository at this point in the history
  • Loading branch information
noelma committed Jul 29, 2019
1 parent a4a2056 commit 345e9b6
Show file tree
Hide file tree
Showing 12 changed files with 91 additions and 49 deletions.
92 changes: 70 additions & 22 deletions assets/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,17 @@
/* --------------------------- */
.input-file-img {
max-height: 200px;
width: auto;
max-width: 100%;
}
input.form-file-name,
input.form-file-reset{
vertical-align: middle;


/* --------------------------- */
/* -------- FORM FLEX-- ------ */
/* --------------------------- */
.form-group-flex{
display: flex;
}
input.form-file-name{
.form-group-flex input {
-webkit-border-top-right-radius: 0;
-webkit-border-bottom-right-radius: 0;
-moz-border-radius-topright: 0;
Expand All @@ -48,21 +52,18 @@ input.form-file-name{
border-bottom-right-radius: 0;
border-right: 0;
}
input.form-file-reset{
.form-group-flex button{
-webkit-border-top-left-radius: 0;
-webkit-border-bottom-left-radius: 0;
-moz-border-radius-topleft: 0;
-moz-border-radius-bottomleft: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-left: 0;
font-weight: bold;
}
input.form-file-reset[disabled] {
cursor: not-allowed;
pointer-events: visible;
padding: 0em 1em;
}


/* --------------------------- */
/* ---------- USER ----------- */
/* --------------------------- */
Expand Down Expand Up @@ -181,12 +182,12 @@ input.form-file-reset[disabled] {
overflow:hidden !important;
text-align:left;
font-weight: 600;
padding-left: .5em;
}
.responsive tbody tr th{
background-color:#dd7682;
color: #fff !important;
text-align: center;
padding: .75em;
}
}

Expand All @@ -197,24 +198,25 @@ input.form-file-reset[disabled] {
label[data-tooltip] {
display: block;
}
label[data-tooltip] {
[data-tooltip] {
cursor: help;
position: relative;
}
label[data-tooltip]:before,
label[data-tooltip]:after {
[data-tooltip]:before,
[data-tooltip]:after {
opacity: 0;
visibility: hidden;
z-index: 9999;
}
label[data-tooltip]:before {
[data-tooltip]:before {
bottom: 100%;
background: #20222d;
background: rgba(32, 34, 45, 0.8);
color: #fff;
content: attr(data-tooltip);
font-size: 14px;
left: -10px;
transform: translateX(-50%) translateY(0);
margin-bottom: 9px;
padding: 8px 10px;
position: absolute;
Expand All @@ -223,7 +225,7 @@ label[data-tooltip]:before {
transform: none;
}
/* Triangle */
label[data-tooltip]:after {
[data-tooltip]:after {
border-top: 10px solid #20222d;
border-right: 10px solid transparent;
border-left: 10px solid transparent;
Expand All @@ -232,13 +234,14 @@ label[data-tooltip]:after {
left: 0;
position: absolute;
}
label[data-tooltip]:hover:before,
label[data-tooltip]:hover:after {
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
opacity: 1;
transition: opacity .5s;
visibility: visible;
}


/* --------------------------- */
/* -------- MODULES ---------- */
/* --------------------------- */
Expand All @@ -255,12 +258,57 @@ label[data-tooltip]:hover:after {
border-radius: 4em;
font-size: 1em;
}
.table > tbody > tr > th{
padding: 0;
}
@media (max-width: 768px) {
.module-icon {
width: 100%;
border-radius: 0;
}
.table-modules > tbody > tr > th{
padding: 0;
}
}

/* --------------------------- */
/* ---------- MENU ----------- */
/* --------------------------- */
.nested-sortable {
cursor: move;
list-style-type: none;
padding: 0;
}
.nested-sortable .link-item {
background-color: #fff;
border: 1px solid rgba(0,0,0,.125);
margin-top: 1em;
padding: 1em;
}
.nested-sortable .link-item:hover {
border: 1px dashed rgba(0,0,0,.5);
}
.nested-sortable .link-item.placeholder {
background: #e1e4e8;
opacity: .5;
}
.nested-sortable .link-title {
margin-bottom: 5px;
}



/* --------------------------- */
/* ---------- NODE ----------- */
/* --------------------------- */
.icon-notPublish,
.icon-publish{
border-radius: 32px;
width: 16px;
height: 16px;
margin-left: auto;
margin-right: auto;
}
.icon-notPublish{
background-color: #d14;
}
.icon-publish{
background-color: #2ecc71;
}
2 changes: 1 addition & 1 deletion html.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<?php echo $block[ 'page' ] ?>
<?php echo $section[ 'page' ] ?>
</div>
<!-- Scripts -->
<script src="<?php echo $base_theme; ?>assets/js/jquery.min.js"></script>
Expand Down
16 changes: 0 additions & 16 deletions images/logo.svg

This file was deleted.

Binary file removed images/pic01.jpg
Binary file not shown.
Binary file removed images/pic02.jpg
Binary file not shown.
Binary file removed images/pic03.jpg
Binary file not shown.
Binary file removed images/pic04.jpg
Binary file not shown.
Binary file removed images/pic05.jpg
Binary file not shown.
Binary file removed images/pic06.jpg
Binary file not shown.
10 changes: 10 additions & 0 deletions menu.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<ul>
<?php foreach ($menu as $link): ?>

<li class="<?php echo $link[ 'link_active' ] ? 'current' : ''; ?> <?php echo !empty($link[ 'submenu' ]) ? 'submenu' : ''; ?>">
<a href="<?php echo $link[ 'link' ]; ?>" target="<?php echo $link[ 'target_link' ]; ?>" <?php if ($link[ 'target_link' ] === '_blank'): ?> rel="noopener noreferrer" <?php endif; ?>>
<?php echo !empty($link['icon']) ? "<i class='{$link['icon']}' aria-hidden='true'></i> {$link[ 'title_link' ]}" : $link[ 'title_link' ]; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
10 changes: 5 additions & 5 deletions page-front.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<!-- Nav -->
<nav id="nav">
<?php echo $block[ 'main_menu' ]; ?>
<?php echo $section[ 'main_menu' ]; ?>
</nav>

<!-- Main -->
Expand All @@ -23,11 +23,11 @@
<div class="content">
<header class="major">
<h2><?php echo $title_main; ?></h2>
<?php if (!empty($block[ 'messages' ])): ?>
<?php echo $block[ 'messages' ]; ?>
<?php if (!empty($section[ 'messages' ])): ?>
<?php echo $section[ 'messages' ]; ?>
<?php endif; ?>
</header>
<?php echo $block[ 'content' ] ?>
<?php echo $section[ 'content' ] ?>
</div>
</div>
</section>
Expand Down Expand Up @@ -60,7 +60,7 @@
<li><a href="#" class="icon fab fa-github alt"><span class="label">GitHub</span></a></li>
<li><a href="#" class="icon fab fa-dribbble alt"><span class="label">Dribbble</span></a></li>
</ul>
<?php echo $block[ 'second_menu' ]; ?>
<?php echo $section[ 'second_menu' ]; ?>
</section>

<p class="copyright">
Expand Down
10 changes: 5 additions & 5 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</header>
<!-- Nav -->
<nav id="nav">
<?php echo $block[ 'main_menu' ]; ?>
<?php echo $section[ 'main_menu' ]; ?>
</nav>
<!-- Main -->
<div id="main">
Expand All @@ -19,11 +19,11 @@
<div class="content">
<header class="major">
<h2><?php echo $title_main; ?></h2>
<?php if (!empty($block[ 'messages' ])): ?>
<?php echo $block[ 'messages' ]; ?>
<?php if (!empty($section[ 'messages' ])): ?>
<?php echo $section[ 'messages' ]; ?>
<?php endif; ?>
</header>
<?php echo $block[ 'content' ] ?>
<?php echo $section[ 'content' ] ?>
</div>
</div>
</section>
Expand Down Expand Up @@ -54,7 +54,7 @@
<li><a href="#" class="icon fab fa-github alt"><span class="label">GitHub</span></a></li>
<li><a href="#" class="icon fab fa-dribbble alt"><span class="label">Dribbble</span></a></li>
</ul>
<?php echo $block[ 'second_menu' ]; ?>
<?php echo $section[ 'second_menu' ]; ?>
</section>
<p class="copyright">
Built by <a href="https://twitter.com/ajlkn">@ajlkn</a> for <a href="https://html5up.net">HTML5 UP</a> |
Expand Down

0 comments on commit 345e9b6

Please sign in to comment.