SPR-866: Title and Claim

This commit is contained in:
Silke Pisulla 2017-03-16 14:04:10 +01:00
commit eea3ecee97
2 changed files with 45 additions and 50 deletions

View file

@ -8,13 +8,15 @@
#dokuwiki__header { #dokuwiki__header {
@header-font-opacity: .7; @header-font-opacity: .7;
/* + + + wiki logo + + + */ /* + + + wiki logo + + + */
@media @screen_min-md { @media @screen_min-md {
div.claim {
display: table-cell;
height: 100%;
vertical-align: middle;
}
.logo { .logo {
/*position: absolute;
bottom: 1em;
overflow: visible;*/
padding: 1rem 0 .3rem; padding: 1rem 0 .3rem;
img { img {
@ -46,29 +48,45 @@
} }
/* + + + wiki title + + + */ /* + + + wiki title + claim + + + */
.main-title {//background-color: pink; .main-title.desktop-only {
&.desktop-only { @media @screen_min-md {
@media @screen_min-md { display: table-cell;
display: table-cell; vertical-align: middle;
vertical-align: middle; }
@media @screen_max-md {
display: block;
}
p.title {
@media @screen_max-md {
display: none;
} }
} }
&.mobile-only { p.claim {
@media @screen_max-md { @media @screen_max-md {
display: table-cell; display: block;
vertical-align: middle; padding-bottom: 1rem;
padding-left: .6rem;
} }
} }
} }
.main-title:not([class*="desktop-only"]) {
@media @screen_max-md {
display: table-cell;
vertical-align: middle;
}
}
/* + + + wiki title + + + */
p.title { p.title {
background-color: @color-site-bg;; background-color: @color-site-bg;;
opacity: @header-font-opacity; opacity: @header-font-opacity;
line-height: @line-height-default; line-height: @line-height-default;
margin-bottom: 0; margin-bottom: .5rem;
@media @screen_min-md { @media @screen_min-md {
font-size: @font-size-big; font-size: @font-size-big;
@ -77,40 +95,20 @@
@media @screen_max-md { @media @screen_max-md {
font-size: (@font-size-default + .25); font-size: (@font-size-default + .25);
padding-top: .5rem; padding-top: .5rem;
padding-bottom: .5rem; padding-left: 1rem;
} }
} }
/* + + + wiki claim + + + */ /* + + + wiki claim + + + */
div.claim { p.claim {
@media @screen_min-md {
display: table-cell;
height: 100%;
vertical-align: middle;
}
@media @screen_max-md {
min-height: 3rem;
}
}
p.claim {//background-color: deepskyblue;
opacity: @header-font-opacity; opacity: @header-font-opacity;
margin-bottom: 0; margin-bottom: 0;
padding-bottom: 1rem; font-size: @font-size-default;
@media @screen_min-xxs {
font-size: @font-size-small;
}
@media @screen_max-md { @media @screen_max-md {
padding-top: .5rem; padding-top: .5rem;
} }
@media @screen_max-xxs {
font-size: @font-size-default;
}
} }

View file

@ -99,24 +99,15 @@ $classWideContent = ($ACT === "show") ? "": "wide-content ";
/* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */ /* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */
include('tpl/main-sidebar-logo.php'); include('tpl/main-sidebar-logo.php');
} ?> } ?>
<div class="main-title mobile-only"> <div class="main-title">
<?php if ($conf['title']): <?php if ($conf['title']):
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* Wiki Title Mobile */ /* Wiki Title Mobile */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?> /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
<p class="title"><?php echo $conf['title'] ?></p> <p class="title mobile-only">MO <?php echo $conf['title'] ?></p>
<?php endif ?> <?php endif ?>
</div><!-- .main-title --> </div><!-- .main-title -->
<?php if ($conf['tagline']):
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* Wiki Tagline */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
<p class="claim"><?php echo $conf['tagline'] ?></p>
<?php endif ?>
</div><!-- .headings --> </div><!-- .headings -->
</div><!-- .col --> </div><!-- .col -->
@ -127,9 +118,15 @@ $classWideContent = ($ACT === "show") ? "": "wide-content ";
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* Wiki Title Desktop */ /* Wiki Title Desktop */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?> /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
<p class="title"><?php echo $conf['title'] ?></p> <p class="title">DO <?php echo $conf['title'] ?></p>
<?php endif ?> <?php endif ?>
<?php if ($conf['tagline']):
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* Wiki Tagline Desktop */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
<p class="claim">DO <?php echo $conf['tagline'] ?></p>
<?php endif ?>
</div><!-- .main-title --> </div><!-- .main-title -->
</div><!-- .col --> </div><!-- .col -->
</div><!-- .row --> </div><!-- .row -->