Upgrade Migration Anleitung

CSS Dateien

Es wird jetzt nur noch main.css, die Fonts und eventuell die *demo.css Dateien in template/head/styles.html geladen

Page header

Einige CSS Klassen haben sich geändert:

page-header-text-title -> page-header-text-short

Text Farbe ist nicht mehr standardmäßig weiß. Dafür gibt es im Template Einstellung.

Header-Inhalt (Titel und Kurzbeschreibung) wird standardmäßig zentriert, vorher linksbündig. Das ist jetzt eine Template-Einstellung.

image

Main Content

Die main-content-wrapper (und den Div) gibt es nicht mehr template/page.html.

Es wird nicht mehr der gesamte main-content Div mit padding versehen (grid-content). Die CSS Klasse grid-content wandert von template/page.html zu den jeweiligen layouts/*.html Dateien. Auch die main-content Klasse wandert in die jeweiligen Templates.

template/page.html alt:

    <div class="main-content-wrapper">
        <div class="grid-container main-content">
            {$Template->getLayout()}
        </div>
    </div>

template/page.html neu:

    <div class="main-content-wrapper">
        <div class="grid-container main-content">
            {$Template->getLayout()}
        </div>
    </div>

Baustein Titel

Aus h1 wird jetzt h2 gemacht.

Alt:

{if $Brick->getAttribute('frontendTitle')}
    <h1 class="brick-title">{$Brick->getAttribute('frontendTitle')}</h1>
{/if}
{assign var=showTitle value=$Brick->setSetting('showTitle', false)}
{$Brick->create()}

Neu:

{if $Brick->getAttribute('frontendTitle')}
    <h2 class="tpl-brick__title">{$Brick->getAttribute('frontendTitle')}</h2>
{/if}
{assign var=showTitle value=$Brick->setSetting('showTitle', false)}

{$Brick->create()}

Seitentitel vor dem Inhalt

Seitentitel wird nicht mehr mit <header> Tag umgeschlossen.

Alt:

<header class="content-header">
    <h1 itemprop="name">
        {$Site->getAttribute('title')}
    </h1>
</header>

Neu: Alt:

<h1 itemprop="name">
    {$Site->getAttribute('title')}
</h1>

Titel

h1 und h2 Titel sind etwas größer.

CSS Klasse prefix-suffix-full-width entfernt

Diese CSS Klass hatte keine Verwendung. Daher fliegt prefix-suffix-full-width aus der .tpl-brick Wrapper weg. Es war nur in Zusammenhang mit Content Switcher Basutein in Verwendung. Der Baustein ist sowieso deprecated, daher ist das nicht relevant.

Dieser CSS Code wird entfernt
/*********************************************************************************/
/* content switcher
/*********************************************************************************/

.content-switcher .content-switcher-content {
    max-width: 580px; /* (page width : 2) */
}

.content-switcher .pull-custom {
    left: -580px; /* -1 x (page width : 2) */
}

@media screen and (max-width: 1160px) {

    .prefix-suffix-full-width .content-switcher-content.pull-50 {
        padding-left: 20px;
    }
}

@media screen and (max-width: 767px) {

    .content-switcher .content-switcher-content {
        padding-left: 0;
        padding-right: 0;
    }

    .prefix-suffix-full-width .content-switcher .content-switcher-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

Buttons

Es gibt eine neue CSS Datei buttons.css. Dafür fliegen alle button Stylings aus style.css weg. Zusätzlich werden die alten Klassen für Button-Größe entfernt. Auch die Klassen werden entfernt:

  • .button-xs
  • .button-sm
  • .button-md
  • .button-lg
  • .button-xl
  • .button__ghost
Dieser CSS Code wird entfernt
/** buttons
 * ========================================================== */

button:hover,
.qui-button:hover,
.button-black:hover,
.button-grey:hover,
.button-white:hover,
.button-silver:hover,
.button-orange:hover,
.button-red:hover,
.button-blue:hover,
.button-rosy:hover,
.button-green:hover,
.button-pink:hover,
.content-button:hover {
    border-radius: 0;
    box-shadow: none;
}

.qui-button,
.button-black,
.button-grey,
.button-white,
.button-silver,
.button-orange,
.button-red,
.button-blue,
.button-rosy,
.button-green,
.button-pink {
    border-radius: 0;
    box-shadow: none;
}

button:where(:not([name="close"])),
.button:where(:not([name="close"])),
input[type='submit'],
input[type='reset'],
input[type='button'],
button:disabled,
a.template-button,
button.qui-button {
    background: var(--qui-color-primary);
    border: 2px solid var(--qui-color-primary);
    border-radius: 0;
    box-shadow: none;
    color: var(--qui-btn-primary-color);
    cursor: pointer;
    display: inline-block;
    line-height: var(--qui-line-height);
    outline: none;
    padding: 0.5em 1.25em;
    position: relative;
    text-align: center;
    text-decoration: none;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.button__rounded {
    border-radius: 100px;
}

input[type='submit']:hover,
input[type='reset']:hover,
input[type='button']:hover,
button:hover,
.button-active,
.button:active,
.button:hover,
a.template-button:focus,
a.template-button:active,
a.template-button:hover,
button.qui-button-active,
button.qui-button:active,
button.qui-button:hover {
    background: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: var(--qui-color-primary);
    opacity: 1;
}

button:hover,
.button:hover {
    opacity: 0.8;
}

button:disabled,
button:disabled:hover {
    cursor: default;
    opacity: 0.5;
}

.button.fa:before {
    margin-right: 8px;
}

/* ... */

/* Template Button */

button,
.button {
    font-size: 1em;
    font-weight: normal;
    letter-spacing: 1px;
    padding: 0.5em 1.2em;
    position: relative;
    transition: all 0.2s;
}

:where(.button:last-of-type) {
    margin-right: 0;
}

.button-arrow:after {
    content: "\f178";
    font-family: FontAwesome;
    margin-left: 20px;
}

.button-download:after {
    content: "\f019";
    font-family: FontAwesome;
    margin-left: 20px;
}

.button.button__ghost {
    background: none;
    border-color: #fff;
    color: #fff;
}

.button.button__ghost:hover,
.button.button__ghost:active,
.button.button__ghost:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.button.button__ghost__color {
    background: none;
    border: 2px solid var(--qui-color-primary);
    color: var(--qui-color-primary);
}

.button__small {
    font-size: 0.9em;
    padding: 0.4em 1.1em;
}

.button__medium {
    font-size: 1.1em;
    padding: 1em 1.8em;
}

.button__large {
    font-size: 1.6em;
    padding: 1em 1.6em;
}

Header Template ändert sich

Für Emotion Bild wird kei Bild im Hintergrund mehr benutzt. Das setze voraus, dass sich die HTML Struktur viel ändert. Solange man template/page/header.html in seinem Projekt nicht überschrieben hat, ist dieser Punkt zu vernachlässigen.

von Michael Danielczok bearbeitet