Difference between revisions of "MediaWiki:Frame.rythm"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
<meta charset="utf-8"/> | <meta charset="utf-8"/> | ||
<style> | <style> | ||
+ | /** | ||
+ | * 1. Avoid the IE 10-11 `min-height` bug. | ||
+ | * 2. Set `flex-shrink` to `0` to prevent some browsers from | ||
+ | * letting these items shrink to smaller than their content's default | ||
+ | * minimum size. See http://bit.ly/1Mn35US for details. | ||
+ | * 3. Use `%` instead of `vh` since `vh` is buggy in older mobile Safari. | ||
+ | */ | ||
+ | |||
.HolyGrail { | .HolyGrail { | ||
display: flex; | display: flex; | ||
− | + | height: 100%; /* 1, 3 */ | |
flex-direction: column; | flex-direction: column; | ||
+ | } | ||
+ | |||
+ | .HolyGrail-header, | ||
+ | .HolyGrail-footer { | ||
+ | flex: none; /* 2 */ | ||
} | } | ||
.HolyGrail-body { | .HolyGrail-body { | ||
display: flex; | display: flex; | ||
− | flex: 1; | + | flex: 1 0 auto; /* 2 */ |
− | + | flex-direction: column; | |
− | + | padding: var(--space); | |
− | |||
} | } | ||
.HolyGrail-content { | .HolyGrail-content { | ||
− | + | margin-top: var(--space); | |
+ | } | ||
+ | |||
+ | .HolyGrail-nav { | ||
+ | order: -1; | ||
} | } | ||
− | + | .HolyGrail-nav, | |
+ | .HolyGrail-ads { | ||
+ | padding: 1em; | ||
+ | border-radius: 3px; | ||
+ | background: rgba(147, 128, 108, 0.1); | ||
+ | } | ||
+ | |||
+ | @media (--break-lg) { | ||
.HolyGrail-body { | .HolyGrail-body { | ||
flex-direction: row; | flex-direction: row; | ||
− | |||
} | } | ||
.HolyGrail-content { | .HolyGrail-content { | ||
flex: 1; | flex: 1; | ||
+ | padding: 0 var(--space-lg); | ||
+ | margin: 0; | ||
+ | } | ||
+ | .HolyGrail-nav, .HolyGrail-ads { | ||
+ | flex: 0 0 12em; | ||
} | } | ||
} | } |
Revision as of 19:42, 5 February 2017
@// Rythm template for the manager for the
@// Entity Attribute which is a DocElement
@args() {
String content;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<style>
/**
* 1. Avoid the IE 10-11 `min-height` bug.
* 2. Set `flex-shrink` to `0` to prevent some browsers from
* letting these items shrink to smaller than their content's default
* minimum size. See http://bit.ly/1Mn35US for details.
* 3. Use `%` instead of `vh` since `vh` is buggy in older mobile Safari.
*/
.HolyGrail {
display: flex;
height: 100%; /* 1, 3 */
flex-direction: column;
}
.HolyGrail-header,
.HolyGrail-footer {
flex: none; /* 2 */
}
.HolyGrail-body {
display: flex;
flex: 1 0 auto; /* 2 */
flex-direction: column;
padding: var(--space);
}
.HolyGrail-content {
margin-top: var(--space);
}
.HolyGrail-nav {
order: -1;
}
.HolyGrail-nav,
.HolyGrail-ads {
padding: 1em;
border-radius: 3px;
background: rgba(147, 128, 108, 0.1);
}
@media (--break-lg) {
.HolyGrail-body {
flex-direction: row;
}
.HolyGrail-content {
flex: 1;
padding: 0 var(--space-lg);
margin: 0;
}
.HolyGrail-nav, .HolyGrail-ads {
flex: 0 0 12em;
}
}
h1 {
color: #FF8000;
}
h2 {
color: #FF8000;
}
h3 {
color: #FF8000;
}
</style>
</head>
<body>
<div class="HolyGrail-body">
<header><img src='http://wiki.bitplan.com/images/wiki/thumb/6/63/Profiwikiicon.png/264px-Profiwikiicon.png'></header>
<main class="HolyGrail-content">@(content)</main>
</div>
<footer>footer</footer>
</body>