Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Features

* **component:** Add Split component (#326)
* **component:** New picto component, deprecating the previous picto card (#382)
* **template:** New multi-column layout container with up to four even columns (#233)
* **css:** Add a theme class for alt background colors
Expand Down
87 changes: 87 additions & 0 deletions src/assets/sass/demos/split.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

/* -------------------------------------------------------------------------- */
// Split demo

@import '../protocol/includes/lib';
@import '../docs/protocol';
@import '../docs/protocol-components';

#config {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-column-gap: 80px;
grid-row-gap: $layout-md;

fieldset fieldset {
margin-bottom: $layout-sm;
}

legend {
@include font-size(16px);
}
}

#config-preset {
grid-column-start: 1;
grid-column-end: 4;
}

.demo {
.mzp-c-split,
.mzp-c-split-bg,
.mzp-c-split-container,
.mzp-c-split-media,
.mzp-c-split-body {
position: relative;

&:before {
content: attr(class);
background-color: #fff;
color: #000;
display: block;
font-family: monospace;
font-size: 12px;
left: 0;
padding: 0 2px;
position: absolute;
bottom: 100%;
z-index: 1;
}
}

.mzp-c-split:before {
top: 0;
bottom: auto;
}
.mzp-c-split {
outline: 1px solid red;
}

.mzp-c-split-container {
background-color: rgba(0, 0, 255, 0.1);
}

.mzp-c-split-media {
background-color: rgba(0, 255, 0, 0.1);
}

.mzp-c-split-body {
background-color: rgba(255, 0, 0, 0.1);
}
}

.spacer {
align-items: center;
background-color: rgba(0, 0, 0, 0.2);
display: flex;
justify-content: center;
height: 200px;
margin: 20px;
}

.mzp-l-split-h-center select {
margin: 0 auto;
}
Loading