Ready to Test
This commit is contained in:
@ -0,0 +1,341 @@
|
||||
@import "../variables";
|
||||
|
||||
// STYLES NOT RELATED TO THE STYLE GUIDE
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.paragraph-styles p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.paragraph-styles,
|
||||
.brand-color {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 960px;
|
||||
margin: 100px auto;
|
||||
}
|
||||
|
||||
.style-guide-header {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.g-row {
|
||||
margin-left: -20px;
|
||||
margin-right: -20px;
|
||||
}
|
||||
|
||||
.brand-color {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.g-title-small {
|
||||
padding-top: 15px;
|
||||
border-top: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.container :first-of-type .g-title-small {
|
||||
border: none
|
||||
}
|
||||
|
||||
.container .flex-group .g-title-small {
|
||||
border-top: 1px solid #ddd
|
||||
}
|
||||
|
||||
.g-box-color {
|
||||
flex: 1;
|
||||
margin: 10px 20px;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.g-box-text {
|
||||
flex: 1;
|
||||
margin: 10px 20px;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.inherit {
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.section {
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
.flex-group {
|
||||
display: flex;
|
||||
> * {
|
||||
flex: 1;
|
||||
margin: 10px 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.serif-font {
|
||||
font-family: @font-family-serif;
|
||||
}
|
||||
|
||||
.section-column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
.g-input-field {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.g-input-field {
|
||||
margin-bottom: 15px;
|
||||
padding: 0 10px;
|
||||
&:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.g-label {
|
||||
margin-bottom: 5px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.g-flex-row-start {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.checkbox-wrap {
|
||||
margin-bottom: 10px;
|
||||
&:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="radio"],
|
||||
input[type="checkbox"] {
|
||||
margin: 0 5px 2px 0;
|
||||
}
|
||||
|
||||
// STYLES NOT RELATED TO THE STYLE GUIDE END!!!
|
||||
|
||||
/*
|
||||
STYLE GUIDE STYLES
|
||||
=======================
|
||||
*/
|
||||
body {
|
||||
font-family: @font-family-sans-serif;
|
||||
background: @body-bg;
|
||||
color: @text-color;
|
||||
line-height: @line-height-base;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
font-family: @headings-font-family;
|
||||
font-weight: @headings-font-weight;
|
||||
line-height: @headings-line-height;
|
||||
color: @headings-color;
|
||||
}
|
||||
|
||||
// Title styles
|
||||
h1 {
|
||||
font-size: @font-size-h1;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: @font-size-h2;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: @font-size-h3;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: @font-size-h4;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: @font-size-h5;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: @font-size-h6;
|
||||
}
|
||||
|
||||
// Links Styles
|
||||
a {
|
||||
color: @link-color;
|
||||
&:hover {
|
||||
color: @link-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
// Brand colors
|
||||
.bg-primary {
|
||||
background: @brand-primary;
|
||||
}
|
||||
|
||||
.bg-success {
|
||||
background: @brand-success;
|
||||
}
|
||||
|
||||
.bg-info {
|
||||
background: @brand-info;
|
||||
}
|
||||
|
||||
.bg-warning {
|
||||
background: @brand-warning;
|
||||
}
|
||||
|
||||
.bg-danger {
|
||||
background: @brand-danger;
|
||||
}
|
||||
|
||||
// Gray colors
|
||||
.bg-gray-base {
|
||||
background: @gray-base;
|
||||
}
|
||||
|
||||
.bg-gray-darker {
|
||||
background: @gray-darker;
|
||||
}
|
||||
|
||||
.bg-gray-dark {
|
||||
background: @gray-dark;
|
||||
}
|
||||
|
||||
.bg-gray {
|
||||
background: @gray;
|
||||
}
|
||||
|
||||
.bg-gray-light {
|
||||
background: @gray-light;
|
||||
}
|
||||
|
||||
.bg-gray-lighter {
|
||||
background: @gray-lighter;
|
||||
}
|
||||
|
||||
// Text color
|
||||
.text-color {
|
||||
color: @text-color;
|
||||
}
|
||||
|
||||
.text-muted {
|
||||
color: @text-muted;
|
||||
}
|
||||
|
||||
// Alert text styles
|
||||
.alert-box {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.text-success {
|
||||
color: @state-success-text;
|
||||
background: @state-success-bg;
|
||||
border: 1px solid @state-success-border;
|
||||
}
|
||||
|
||||
.text-info {
|
||||
color: @state-info-text;
|
||||
background: @state-info-bg;
|
||||
border: 1px solid @state-info-border;
|
||||
}
|
||||
|
||||
.text-warning {
|
||||
color: @state-warning-text;
|
||||
background: @state-warning-bg;
|
||||
border: 1px solid @state-warning-border;
|
||||
}
|
||||
|
||||
.text-danger {
|
||||
color: @state-danger-text;
|
||||
background: @state-danger-bg;
|
||||
border: 1px solid @state-danger-border;
|
||||
}
|
||||
|
||||
/* Forms, inputs...*/
|
||||
.g-input-field {
|
||||
height: @input-height-base;
|
||||
background: @input-bg;
|
||||
color: @input-color;
|
||||
border: 1px solid @input-border;
|
||||
border-radius: @input-border-radius;
|
||||
&:focus {
|
||||
border-color: @input-border-focus;
|
||||
}
|
||||
}
|
||||
|
||||
.input--large {
|
||||
height: @input-height-large;
|
||||
}
|
||||
|
||||
.input--small {
|
||||
height: @input-height-small;
|
||||
}
|
||||
|
||||
.g-input-field[disabled] {
|
||||
background: @input-bg-disabled;
|
||||
}
|
||||
|
||||
.has-error {
|
||||
.g-label {
|
||||
color: @label-danger-bg;
|
||||
}
|
||||
.g-input-field {
|
||||
border-color: @brand-danger;
|
||||
}
|
||||
}
|
||||
|
||||
.has-warning {
|
||||
.g-label {
|
||||
color: @label-warning-bg;
|
||||
}
|
||||
.g-input-field {
|
||||
border-color: @brand-warning;
|
||||
}
|
||||
}
|
||||
|
||||
.has-success {
|
||||
.g-label {
|
||||
color: @label-success-bg;
|
||||
}
|
||||
.g-input-field {
|
||||
border-color: @brand-success;
|
||||
}
|
||||
}
|
||||
|
||||
// Placeholder styles
|
||||
|
||||
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
|
||||
color: @input-color-placeholder;
|
||||
}
|
||||
|
||||
::-moz-placeholder { /* Firefox 19+ */
|
||||
color: @input-color-placeholder;
|
||||
}
|
||||
|
||||
:-ms-input-placeholder { /* IE 10+ */
|
||||
color: @input-color-placeholder;
|
||||
}
|
||||
|
||||
:-moz-placeholder { /* Firefox 18- */
|
||||
color: @input-color-placeholder;
|
||||
}
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
.paragraph-styles p,body{margin:0}.g-box-color,.text-center{text-align:center}.brand-color,.flex-group,.paragraph-styles,.section-column{display:flex}body{padding:0}.container{max-width:960px;margin:100px auto}.style-guide-header{margin-bottom:40px}.g-row{margin-left:-20px;margin-right:-20px}.g-box-color,.g-box-text{flex:1;margin:10px 20px}.brand-color{color:#fff}.g-title-small{padding-top:15px;border-top:1px solid #ddd}.container :first-of-type .g-title-small{border:none}.container .flex-group .g-title-small{border-top:1px solid #ddd}.g-box-color{padding:20px}.text-right{text-align:right}.text-left{text-align:left}.inherit{color:#555}.section{margin-bottom:50px}.flex-group>*{flex:1;margin:10px 20px}.serif-font{font-family:Georgia,"Times New Roman",Times,serif}body,h1,h2,h3,h4,h5,h6{font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif}.section-column{flex-direction:column;align-items:flex-start}.section-column .g-input-field{width:100%}.g-input-field{margin-bottom:15px;padding:0 10px}.g-input-field:last-of-type{margin-bottom:0}.g-label{margin-bottom:5px;margin-top:15px}.g-flex-row-start{display:flex;align-items:center;justify-content:flex-start}.checkbox-wrap{margin-bottom:10px}.checkbox-wrap:last-of-type{margin-bottom:0}input[type=radio],input[type=checkbox]{margin:0 5px 2px 0}body{background:#fff;color:#222;line-height:1.4}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:10px;font-weight:300;line-height:1.1;color:inherit}h1{font-size:39px}h2{font-size:32px}h3{font-size:26px}h4{font-size:19px}h5{font-size:15px}h6{font-size:13px}a,a:hover{color:#008cba}.bg-primary{background:#008cba}.bg-success{background:#43ac6a}.bg-info{background:#5bc0de}.bg-warning{background:#E99002}.bg-danger{background:#F04124}.bg-gray-base{background:#000}.bg-gray-darker{background:#222}.bg-gray-dark{background:#333}.bg-gray{background:#6f6f6f}.bg-gray-light{background:#999}.bg-gray-lighter{background:#eee}.text-color{color:#222}.text-muted{color:#999}.alert-box{padding:5px}.text-success{color:#43ac6a;background:#dff0d8;border:1px solid #3c9a5f}.text-info{color:#5bc0de;background:#d9edf7;border:1px solid #3db5d8}.text-warning{color:#E99002;background:#fcf8e3;border:1px solid #d08002}.text-danger{color:#F04124;background:#f2dede;border:1px solid #ea2f10}.g-input-field{height:39px;background:#fff;color:#6f6f6f;border:1px solid #ccc;border-radius:0}.g-input-field:focus{border-color:#66afe9}.input--large{height:60px}.input--small{height:36px}.g-input-field[disabled]{background:#eee}.has-error .g-label{color:#F04124}.has-error .g-input-field{border-color:#F04124}.has-warning .g-label{color:#E99002}.has-warning .g-input-field{border-color:#E99002}.has-success .g-label{color:#43ac6a}.has-success .g-input-field{border-color:#43ac6a}::-webkit-input-placeholder{color:#999}::-moz-placeholder{color:#999}:-ms-input-placeholder{color:#999}:-moz-placeholder{color:#999}
|
@ -0,0 +1,168 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Style guide</title>
|
||||
<link rel="stylesheet" href="style-guide.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<header class="style-guide-header">
|
||||
<h1 class="g-title-big">
|
||||
Style guide - yeti
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<section class="section">
|
||||
<h3 class="g-title-small">Brand Colors</h3>
|
||||
<div class="g-row brand-color">
|
||||
<div class="g-box-color bg-primary">#008cba</div>
|
||||
<div class="g-box-color bg-success">#43ac6a</div>
|
||||
<div class="g-box-color bg-info">#5bc0de</div>
|
||||
<div class="g-box-color bg-warning">#E99002</div>
|
||||
<div class="g-box-color bg-danger">#F04124</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<h3 class="g-title-small">Gray Colors</h3>
|
||||
<div class="g-row brand-color">
|
||||
<div class="g-box-color bg-gray-base">#000000</div>
|
||||
<div class="g-box-color bg-gray-darker">#222222</div>
|
||||
<div class="g-box-color bg-gray-dark">#333333</div>
|
||||
<div class="g-box-color bg-gray">#6f6f6f</div>
|
||||
<div class="g-box-color bg-gray-light">#999999</div>
|
||||
<div class="g-box-color bg-gray-lighter inherit">#eeeeee</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<h3 class="g-title-small">Paragraph styles</h3>
|
||||
<div class="g-row paragraph-styles">
|
||||
<div class="g-box-text text-left">
|
||||
<h4>Text Left</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab architecto cum molestias necessitatibus nihil pariatur placeat veniam voluptates. Accusamus alias beatae ea est illo quibusdam quidem quod velit veniam vitae!</p>
|
||||
</div>
|
||||
<div class="g-box-text text-center">
|
||||
<h4>Text Center</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab architecto cum molestias necessitatibus nihil pariatur placeat veniam voluptates. Accusamus alias beatae ea est illo quibusdam quidem quod velit veniam vitae!</p>
|
||||
</div>
|
||||
<div class="g-box-text text-right">
|
||||
<h4>Text Right</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab architecto cum molestias necessitatibus nihil pariatur placeat veniam voluptates. Accusamus alias beatae ea est illo quibusdam quidem quod velit veniam vitae!</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section serif-font">
|
||||
<h3 class="g-title-small">Serif font</h3>
|
||||
<div class="g-row paragraph-styles">
|
||||
<div class="g-box-text text-left">
|
||||
<h4>Text Left</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab architecto cum molestias necessitatibus nihil pariatur placeat veniam voluptates. Accusamus alias beatae ea est illo quibusdam quidem quod velit veniam vitae!</p>
|
||||
</div>
|
||||
<div class="g-box-text text-center">
|
||||
<h4>Text Center</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab architecto cum molestias necessitatibus nihil pariatur placeat veniam voluptates. Accusamus alias beatae ea est illo quibusdam quidem quod velit veniam vitae!</p>
|
||||
</div>
|
||||
<div class="g-box-text text-right">
|
||||
<h4>Text Right</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab architecto cum molestias necessitatibus nihil pariatur placeat veniam voluptates. Accusamus alias beatae ea est illo quibusdam quidem quod velit veniam vitae!</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<h3 class="g-title-small">Links Styles</h3>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur <a href="#">Link in paragraph</a> elit. </p>
|
||||
<a href="#">This is a link</a>
|
||||
</section>
|
||||
|
||||
<div class="g-row">
|
||||
<div class="flex-group">
|
||||
<section class="section">
|
||||
<h3 class="g-title-small">Titles Styles</h3>
|
||||
<br>
|
||||
<h1>This is h1 title</h1>
|
||||
<h2>This is h2 title</h2>
|
||||
<h3>This is h3 title</h3>
|
||||
<h4>This is h4 title</h4>
|
||||
<h5>This is h5 title</h5>
|
||||
<h6>This is h6 title</h6>
|
||||
</section>
|
||||
<section class="section">
|
||||
<h3 class="g-title-small">Text color</h3>
|
||||
<p class="text-color">Default text color example</p>
|
||||
<p class="text-muted">Muted text color example</p>
|
||||
|
||||
<h3 class="g-title-small">Alerts Styles</h3>
|
||||
|
||||
<p class="alert-box text-success"> Success alert box example</p>
|
||||
<p class="alert-box text-info"> Info alert box example</p>
|
||||
<p class="alert-box text-warning"> Warning alert box example</p>
|
||||
<p class="alert-box text-danger"> Danger alert box example</p>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="g-row">
|
||||
<div class="flex-group">
|
||||
<section class="section">
|
||||
<h3 class="g-title-small">Form fields</h3>
|
||||
<form>
|
||||
<div class="section-column">
|
||||
<label class="g-label" for="g-larg-input">Large input</label>
|
||||
<input id="g-larg-input" class="g-input-field input--large" placeholder="Placeholder" type="text">
|
||||
</div>
|
||||
<div class="section-column">
|
||||
<label class="g-label" for="g-disabled-input">Disabled input</label>
|
||||
<input id="g-disabled-input" class="g-input-field" disabled placeholder="Placeholder" type="text">
|
||||
</div>
|
||||
<div class="section-column has-error">
|
||||
<label class="g-label" for="g-error-input">Input Error</label>
|
||||
<input id="g-error-input" class="g-input-field input--small" placeholder="Placeholder" type="text">
|
||||
</div>
|
||||
<div class="section-column has-warning">
|
||||
<label class="g-label" for="g-warning-input">Input Warning</label>
|
||||
<input id="g-warning-input" class="g-input-field input--small" placeholder="Placeholder" type="text">
|
||||
</div>
|
||||
<div class="section-column has-success">
|
||||
<label class="g-label" for="g-success-input">Input Success</label>
|
||||
<input id="g-success-input" class="g-input-field input--small" placeholder="Placeholder" type="text">
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
<section class="section">
|
||||
<h3 class="g-title-small">Checkboxs</h3>
|
||||
<label class="checkbox-wrap g-flex-row-start">
|
||||
<input type="checkbox"> <span>Checkbox</span>
|
||||
</label>
|
||||
<label class="checkbox-wrap g-flex-row-start">
|
||||
<input type="checkbox"> <span>Checkbox</span>
|
||||
</label>
|
||||
<label class="checkbox-wrap g-flex-row-start">
|
||||
<input type="checkbox"> <span>Checkbox</span>
|
||||
</label>
|
||||
|
||||
<h3 class="g-title-small">Radio buttons</h3>
|
||||
<label class="g-flex-row-start">
|
||||
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked="">
|
||||
Option one is this
|
||||
</label>
|
||||
<label class="g-flex-row-start">
|
||||
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2" checked="">
|
||||
Option one is this
|
||||
</label>
|
||||
<label class="g-flex-row-start">
|
||||
<input type="radio" name="optionsRadios" id="optionsRadios3" value="option3" checked="">
|
||||
Option one is this
|
||||
</label>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user