[Major] proper polymer styles definition

This commit is contained in:
Robert von Burg 2018-09-07 14:43:44 +02:00
parent 799b890617
commit d1d30e9456
2 changed files with 449 additions and 445 deletions

View File

@ -1,8 +1,8 @@
{ {
"name": "strolch-wc-styles", "name": "strolch-wc-styles",
"description": "Strolch WebComponent Styles", "description": "Strolch WebComponent Styles",
"version": "0.1.7", "version": "0.2.0",
"authors": "Robert von Burg", "authors": ["Robert von Burg"],
"keywords": [ "keywords": [
"strolch", "strolch",
"styles" "styles"

View File

@ -1,445 +1,449 @@
<link rel="import" href="../polymer/polymer.html"> <link rel="import" href="../polymer/polymer.html">
<style is="strolch-wc-styles"> <dom-module id="strolch-wc-styles">
<template>
.g-card { <style>
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 1px 5px 0 rgba(0, 0, 0, 0.12), .g-card {
0 3px 1px -2px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 1px 5px 0 rgba(0, 0, 0, 0.12),
border-radius: 2px; 0 3px 1px -2px rgba(0, 0, 0, 0.2);
}
border-radius: 2px;
/* }
* data definition list
*/ /*
.g-dl { * data definition list
padding: 0.5em; */
} .g-dl {
padding: 0.5em;
.g-dl dt { }
float: left;
clear: left; .g-dl dt {
min-width: 130px; float: left;
text-align: right; clear: left;
font-weight: bold; min-width: 130px;
padding-right: 0.5em; text-align: right;
} font-weight: bold;
padding-right: 0.5em;
.g-dl dd { }
padding: 0 0 0.5em 0;
} .g-dl dd {
padding: 0 0 0.5em 0;
/* }
* Alignment
*/ /*
.g-middle { * Alignment
vertical-align: middle; */
} .g-middle {
vertical-align: middle;
.g-center { }
text-align: center;
} .g-center {
text-align: center;
.g-right { }
text-align: right;
} .g-right {
text-align: right;
.g-left { }
text-align: left;
} .g-left {
text-align: left;
.g-pull-right { }
float: right;
} .g-pull-right {
float: right;
.g-pull-left { }
float: left;
} .g-pull-left {
float: left;
.g-auto-center { }
margin-left: auto !important;
margin-right: auto !important; .g-auto-center {
} margin-left: auto !important;
margin-right: auto !important;
.g-auto-middle { }
margin-top: auto !important;
margin-bottom: auto !important; .g-auto-middle {
} margin-top: auto !important;
margin-bottom: auto !important;
/* }
* Tables
*/ /*
.g-table { * Tables
text-align: left; */
border-collapse: collapse !important; .g-table {
table-layout: fixed; text-align: left;
width: calc(100% - 2 * 1.2em); border-collapse: collapse !important;
margin: 1.2em 1.2em 1rem; table-layout: fixed;
} width: calc(100% - 2 * 1.2em);
margin: 1.2em 1.2em 1rem;
.g-table.g-table-word-break { }
word-wrap: break-word;
} .g-table.g-table-word-break {
word-wrap: break-word;
.g-table td, }
.g-table th {
background-color: #fff !important; .g-table td,
} .g-table th {
background-color: #fff !important;
.g-table th, }
.g-table td {
padding: 0.5rem; .g-table th,
vertical-align: top; .g-table td {
border-top: 1px solid #eceeef; padding: 0.5rem;
} vertical-align: top;
border-top: 1px solid #eceeef;
.g-table thead th { }
vertical-align: bottom;
border-bottom: 2px solid #eceeef; .g-table thead th {
} vertical-align: bottom;
border-bottom: 2px solid #eceeef;
.g-table tbody + tbody { }
border-top: 2px solid #eceeef;
} .g-table tbody + tbody {
border-top: 2px solid #eceeef;
.g-table.g-table-middle td { }
vertical-align: middle;
} .g-table.g-table-middle td {
vertical-align: middle;
.g-table.g-table-no-border td, }
.g-table.g-table-no-border tbody + tbody {
border-top: none; .g-table.g-table-no-border td,
} .g-table.g-table-no-border tbody + tbody {
border-top: none;
.g-table.g-table-no-border th { }
border-bottom: none;
} .g-table.g-table-no-border th {
border-bottom: none;
.g-table.g-table-small { }
width: inherit;
} .g-table.g-table-small {
width: inherit;
/* }
* Grid
*/ /*
.g-container { * Grid
display: block; */
width: 100%; .g-container {
} display: block;
width: 100%;
.g-row { }
display: flex;
} .g-row {
display: flex;
.g-1 { }
width: 8.3333333%;
max-width: 8.3333333%; .g-1 {
} width: 8.3333333%;
max-width: 8.3333333%;
.g-2 { }
width: 16.666666667%;
max-width: 16.666666667%; .g-2 {
} width: 16.666666667%;
max-width: 16.666666667%;
.g-3 { }
width: 25%;
max-width: 25%; .g-3 {
} width: 25%;
max-width: 25%;
.g-4 { }
width: 33.333333333%;
max-width: 33.333333333%; .g-4 {
} width: 33.333333333%;
max-width: 33.333333333%;
.g-5 { }
width: 41.666666667%;
max-width: 41.666666667%; .g-5 {
} width: 41.666666667%;
max-width: 41.666666667%;
.g-6 { }
width: 50%;
max-width: 50%; .g-6 {
} width: 50%;
max-width: 50%;
.g-7 { }
width: 58.3333333%;
max-width: 58.3333333%; .g-7 {
} width: 58.3333333%;
max-width: 58.3333333%;
.g-8 { }
width: 66.666666667%;
max-width: 66.666666667%; .g-8 {
} width: 66.666666667%;
max-width: 66.666666667%;
.g-9 { }
width: 75%;
max-width: 75%; .g-9 {
} width: 75%;
max-width: 75%;
.g-10 { }
width: 83.333333333%;
max-width: 83.333333333%; .g-10 {
} width: 83.333333333%;
max-width: 83.333333333%;
.g-11 { }
width: 91.666666667%;
max-width: 91.666666667%; .g-11 {
} width: 91.666666667%;
max-width: 91.666666667%;
.g-12 { }
width: 100%;
max-width: 100%; .g-12 {
} width: 100%;
max-width: 100%;
.g-offset-1 { }
margin-left: 8.3333333%;
} .g-offset-1 {
margin-left: 8.3333333%;
.g-offset-2 { }
margin-left: 16.666666667%;
} .g-offset-2 {
margin-left: 16.666666667%;
.g-offset-3 { }
margin-left: 25%;
} .g-offset-3 {
margin-left: 25%;
.g-offset-4 { }
margin-left: 33.333333333%;
} .g-offset-4 {
margin-left: 33.333333333%;
.g-offset-5 { }
margin-left: 41.666666667%;
} .g-offset-5 {
margin-left: 41.666666667%;
.g-offset-6 { }
margin-left: 50%;
} .g-offset-6 {
margin-left: 50%;
.g-offset-7 { }
margin-left: 58.3333333%;
} .g-offset-7 {
margin-left: 58.3333333%;
.g-offset-8 { }
margin-left: 66.666666667%;
} .g-offset-8 {
margin-left: 66.666666667%;
.g-offset-9 { }
margin-left: 75%;
} .g-offset-9 {
margin-left: 75%;
.g-offset-10 { }
margin-left: 83.333333333%;
} .g-offset-10 {
margin-left: 83.333333333%;
.g-offset-11 { }
margin-left: 91.666666667%;
} .g-offset-11 {
margin-left: 91.666666667%;
/* }
* margins
*/ /*
.g-m-0 { * margins
margin: 0.0em !important; */
} .g-m-0 {
margin: 0.0em !important;
.g-m-1 { }
margin: 0.2em !important;
} .g-m-1 {
margin: 0.2em !important;
.g-m-2 { }
margin: 0.4em !important;
} .g-m-2 {
margin: 0.4em !important;
.g-m-3 { }
margin: 0.8em !important;
} .g-m-3 {
margin: 0.8em !important;
.g-m-4 { }
margin: 1.2em !important;
} .g-m-4 {
margin: 1.2em !important;
.g-ml-0 { }
margin-left: 0.0em !important;
} .g-ml-0 {
margin-left: 0.0em !important;
.g-ml-1 { }
margin-left: 0.2em !important;
} .g-ml-1 {
margin-left: 0.2em !important;
.g-ml-2 { }
margin-left: 0.4em !important;
} .g-ml-2 {
margin-left: 0.4em !important;
.g-ml-3 { }
margin-left: 0.8em !important;
} .g-ml-3 {
margin-left: 0.8em !important;
.g-ml-4 { }
margin-left: 1.2em !important;
} .g-ml-4 {
margin-left: 1.2em !important;
.g-mr-0 { }
margin-right: 0.0em !important;
} .g-mr-0 {
margin-right: 0.0em !important;
.g-mr-1 { }
margin-right: 0.2em !important;
} .g-mr-1 {
margin-right: 0.2em !important;
.g-mr-2 { }
margin-right: 0.4em !important;
} .g-mr-2 {
margin-right: 0.4em !important;
.g-mr-3 { }
margin-right: 0.8em !important;
} .g-mr-3 {
margin-right: 0.8em !important;
.g-mr-4 { }
margin-right: 1.2em !important;
} .g-mr-4 {
margin-right: 1.2em !important;
.g-mt-0 { }
margin-top: 0.0em !important;
} .g-mt-0 {
margin-top: 0.0em !important;
.g-mt-1 { }
margin-top: 0.2em !important;
} .g-mt-1 {
margin-top: 0.2em !important;
.g-mt-2 { }
margin-top: 0.4em !important;
} .g-mt-2 {
margin-top: 0.4em !important;
.g-mt-3 { }
margin-top: 0.8em !important;
} .g-mt-3 {
margin-top: 0.8em !important;
.g-mt-4 { }
margin-top: 1.2em !important;
} .g-mt-4 {
margin-top: 1.2em !important;
.g-mb-0 { }
margin-bottom: 0.0em !important;
} .g-mb-0 {
margin-bottom: 0.0em !important;
.g-mb-1 { }
margin-bottom: 0.2em !important;
} .g-mb-1 {
margin-bottom: 0.2em !important;
.g-mb-2 { }
margin-bottom: 0.4em !important;
} .g-mb-2 {
margin-bottom: 0.4em !important;
.g-mb-3 { }
margin-bottom: 0.8em !important;
} .g-mb-3 {
margin-bottom: 0.8em !important;
.g-mb-4 { }
margin-bottom: 1.2em !important;
} .g-mb-4 {
margin-bottom: 1.2em !important;
/* }
* padding
*/ /*
.g-p-0 { * padding
padding: 0.0em !important; */
} .g-p-0 {
padding: 0.0em !important;
.g-p-1 { }
padding: 0.2em !important;
} .g-p-1 {
padding: 0.2em !important;
.g-p-2 { }
padding: 0.4em !important;
} .g-p-2 {
padding: 0.4em !important;
.g-p-3 { }
padding: 0.8em !important;
} .g-p-3 {
padding: 0.8em !important;
.g-p-4 { }
padding: 1.2em !important;
} .g-p-4 {
padding: 1.2em !important;
.g-pl-0 { }
padding-left: 0.0em !important;
} .g-pl-0 {
padding-left: 0.0em !important;
.g-pl-1 { }
padding-left: 0.2em !important;
} .g-pl-1 {
padding-left: 0.2em !important;
.g-pl-2 { }
padding-left: 0.4em !important;
} .g-pl-2 {
padding-left: 0.4em !important;
.g-pl-3 { }
padding-left: 0.8em !important;
} .g-pl-3 {
padding-left: 0.8em !important;
.g-pl-4 { }
padding-left: 1.2em !important;
} .g-pl-4 {
padding-left: 1.2em !important;
.g-pr-0 { }
padding-right: 0.0em !important;
} .g-pr-0 {
padding-right: 0.0em !important;
.g-pr-1 { }
padding-right: 0.2em !important;
} .g-pr-1 {
padding-right: 0.2em !important;
.g-pr-2 { }
padding-right: 0.4em !important;
} .g-pr-2 {
padding-right: 0.4em !important;
.g-pr-3 { }
padding-right: 0.8em !important;
} .g-pr-3 {
padding-right: 0.8em !important;
.g-pr-4 { }
padding-right: 1.2em !important;
} .g-pr-4 {
padding-right: 1.2em !important;
.g-pt-0 { }
padding-top: 0.0em !important;
} .g-pt-0 {
padding-top: 0.0em !important;
.g-pt-1 { }
padding-top: 0.2em !important;
} .g-pt-1 {
padding-top: 0.2em !important;
.g-pt-2 { }
padding-top: 0.4em !important;
} .g-pt-2 {
padding-top: 0.4em !important;
.g-pt-3 { }
padding-top: 0.8em !important;
} .g-pt-3 {
padding-top: 0.8em !important;
.g-pt-4 { }
padding-top: 1.2em !important;
} .g-pt-4 {
padding-top: 1.2em !important;
.g-pb-0 { }
padding-bottom: 0.0em !important;
} .g-pb-0 {
padding-bottom: 0.0em !important;
.g-pb-1 { }
padding-bottom: 0.2em !important;
} .g-pb-1 {
padding-bottom: 0.2em !important;
.g-pb-2 { }
padding-bottom: 0.4em !important;
} .g-pb-2 {
padding-bottom: 0.4em !important;
.g-pb-3 { }
padding-bottom: 0.8em !important;
} .g-pb-3 {
padding-bottom: 0.8em !important;
.g-pb-4 { }
padding-bottom: 1.2em !important;
} .g-pb-4 {
padding-bottom: 1.2em !important;
</style> }
</style>
</template>
</dom-module>