added website code for containerd.io

Signed-off-by: Patrick Chanezon <patlist@chanezon.com>
This commit is contained in:
Patrick Chanezon 2017-03-15 13:14:10 -07:00
parent 92c7ed08b4
commit ecc0cc14c6
55 changed files with 3824 additions and 0 deletions

View file

@ -0,0 +1,135 @@
// --------------------------------------------------
// Flexbox LESS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
// flex or inline-flex
.flex-display(@display: flex) {
display: ~"-webkit-@{display}";
display: ~"-moz-@{display}";
display: ~"-ms-@{display}box"; // IE10 uses -ms-flexbox
display: ~"-ms-@{display}"; // IE11
display: @display;
}
// The 'flex' shorthand
// - applies to: flex items
// <positive-number>, initial, auto, or none
.flex(@columns: initial) {
-webkit-flex: @columns;
-moz-flex: @columns;
-ms-flex: @columns;
flex: @columns;
}
// Flex Flow Direction
// - applies to: flex containers
// row | row-reverse | column | column-reverse
.flex-direction(@direction: row) {
-webkit-flex-direction: @direction;
-moz-flex-direction: @direction;
-ms-flex-direction: @direction;
flex-direction: @direction;
}
// Flex Line Wrapping
// - applies to: flex containers
// nowrap | wrap | wrap-reverse
.flex-wrap(@wrap: nowrap) {
-webkit-flex-wrap: @wrap;
-moz-flex-wrap: @wrap;
-ms-flex-wrap: @wrap;
flex-wrap: @wrap;
}
// Flex Direction and Wrap
// - applies to: flex containers
// <flex-direction> || <flex-wrap>
.flex-flow(@flow) {
-webkit-flex-flow: @flow;
-moz-flex-flow: @flow;
-ms-flex-flow: @flow;
flex-flow: @flow;
}
// Display Order
// - applies to: flex items
// <integer>
.flex-order(@order: 0) {
-webkit-order: @order;
-moz-order: @order;
-ms-order: @order;
order: @order;
}
// Flex grow factor
// - applies to: flex items
// <number>
.flex-grow(@grow: 0) {
-webkit-flex-grow: @grow;
-moz-flex-grow: @grow;
-ms-flex-grow: @grow;
flex-grow: @grow;
}
// Flex shrink
// - applies to: flex item shrink factor
// <number>
.flex-shrink(@shrink: 1) {
-webkit-flex-shrink: @shrink;
-moz-flex-shrink: @shrink;
-ms-flex-shrink: @shrink;
flex-shrink: @shrink;
}
// Flex basis
// - the initial main size of the flex item
// - applies to: flex itemsnitial main size of the flex item
// <width>
.flex-basis(@width: auto) {
-webkit-flex-basis: @width;
-moz-flex-basis: @width;
-ms-flex-basis: @width;
flex-basis: @width;
}
// Axis Alignment
// - applies to: flex containers
// flex-start | flex-end | center | space-between | space-around
.justify-content(@justify: flex-start) {
-webkit-justify-content: @justify;
-moz-justify-content: @justify;
-ms-justify-content: @justify;
justify-content: @justify;
}
// Packing Flex Lines
// - applies to: multi-line flex containers
// flex-start | flex-end | center | space-between | space-around | stretch
.align-content(@align: stretch) {
-webkit-align-content: @align;
-moz-align-content: @align;
-ms-align-content: @align;
align-content: @align;
}
// Cross-axis Alignment
// - applies to: flex containers
// flex-start | flex-end | center | baseline | stretch
.align-items(@align: stretch) {
-webkit-align-items: @align;
-moz-align-items: @align;
-ms-align-items: @align;
align-items: @align;
}
// Cross-axis Alignment
// - applies to: flex items
// auto | flex-start | flex-end | center | baseline | stretch
.align-self(@align: auto) {
-webkit-align-self: @align;
-moz-align-self: @align;
-ms-align-self: @align;
align-self: @align;
}

237
docs/style/less/layout.less Normal file
View file

@ -0,0 +1,237 @@
.container {
max-width: 1271px;
margin: 0 auto;
}
.navbar {
padding: 1rem 2rem;
.flex-display();
.justify-content(space-between);
.name {
font-size: 2rem;
font-weight: 500;
color: white;
a {
color: white;
}
.org {
font-size: 0.8rem;
margin-left: 0.5rem;
color: rgba(255,255,255,0.8);
}
}
.actions {
.flex-display();
padding-top: 1rem;
padding-right: 1rem;
.link {
margin-left: 2rem;
text-transform: uppercase;
font-weight: 600;
font-size: 0.8rem;
a {
color: rgba(255,255,255,0.6);
&:hover {
color: white;
}
}
}
}
&.white {
background-color: white;
.name {
a {
color: @gray-darkest;
}
color: @gray-darkest;
.org {
color: @gray-darkest;
}
}
.actions {
.link {
a {
color: @brand-primary;
}
}
}
}
}
@media screen and (max-width: 600px) {
.navbar {
.name {
.org {
display: block;
margin-left: 0;
margin-top: 0.5rem;
line-height: 1rem;
}
}
}
}
.hero {
background-color: @color-gradient-start;
background-image: linear-gradient(-135deg, @color-gradient-start 0%, @color-gradient-end 100%);
.hamster {
padding: 1rem 2rem 3rem 2rem;
img {
width: 100%;
max-width: 500px;
}
text-align: center;
}
h3 {
padding-top: 1.5rem;
text-align: center;
color: white;
margin-bottom: 1rem;
img {
height: 30px;
width: auto;
margin-right: 0.7rem;
position: relative;
top: 0.4rem;
}
}
p {
strong {
font-weight: 700;
}
color: white;
font-size: 1.5rem;
text-align: center;
font-weight: 300;
padding: 1rem 2rem 0 2rem;
line-height: 2rem;
}
}
.content {
background-color: white;
.flex-display();
.flex-flow(row wrap);
&.blue {
background-color: @gray-dark;
color: white;
h2 {
color: white;
}
p {
color: rgba(255,255,255,0.8);
}
}
.wrapper-details {
padding: 2rem 2.5rem;
}
.details {
.points {
.flex-display();
.flex-direction(column);
.point {
padding-top: 1rem;
border-bottom: 1px solid @color-background;
&:last-child {
border-bottom: 0;
}
}
}
}
.terminal {
.flex-display();
.align-items(center);
.justify-content(center);
img {
width: 100%;
}
}
}
.footer {
background-color: @gray-darkest;
padding: 2rem;
color: white;
h3 {
text-align: center;
color: white;
margin-bottom: 0;
img {
height: 30px;
width: auto;
margin-right: 0.7rem;
position: relative;
top: 0.4rem;
}
}
.footer-links {
.flex-display();
.justify-content(center);
margin-top: 1.5rem;
.link {
margin-right: 0.7rem;
}
}
.copyright {
text-align: center;
margin-top: 1.5rem;
color: rgba(255,255,255,0.6);
}
}
@media screen and (max-width: 960px) {
.details, .terminal {
width: 100%;
}
.wrapper-terminal {
padding: 0 2rem 2rem 2rem;
}
}
@media screen and (min-width: 960px) {
.details {
width: 60%;
}
.terminal {
width: 40%;
}
.wrapper-terminal {
padding: 0 2rem 0 0;
}
}
p {
font-size: 1.2rem;
line-height: 1.5rem;
margin-bottom: 1rem;
}
h2 {
font-size: 2rem;
font-weight: 500;
margin-bottom: 1rem;
color: @blue-dark;
}
h3 {
font-size: 1.2rem;
font-weight: 500;
margin-bottom: 0.5rem;
color: @blue-dark;
}
a {
color: @brand-primary;
text-decoration: none;
&:hover {
color: lighten(@brand-primary, 5%);
}
}
body {
font-family: @font-regular;
-webkit-font-smoothing: antialiased;
font-size: 14px;
color: @gray-darkest;
background-color: @color-background;
}

View file

@ -0,0 +1,4 @@
@import "reset.less";
@import "variables.less";
@import "flexbox.less";
@import "layout.less";

View file

@ -0,0 +1,48 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

View file

@ -0,0 +1,12 @@
@font-regular: "Helvetica Neue", Segoe UI, Arial, "Lucida Grande", sans-serif;
@brand-primary: #00DA9C;
@gray-darkest: #254451;
@gray-dark: #364449;
@blue-dark: #0077A8;
@color-background: #E7F4F9;
@color-gradient-start: #0078C5;
@color-gradient-end: #004775;