Skip to content

Commit

Permalink
Merge pull request #147 from picturepan2/feature/bars
Browse files Browse the repository at this point in the history
Feature/bars
  • Loading branch information
picturepan2 authored Feb 28, 2017
2 parents cae547e + 437bf2a commit 22eef43
Show file tree
Hide file tree
Showing 30 changed files with 806 additions and 388 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ Read [the documentation](http://picturepan2.github.io/spectre/) to learn more.

### Getting started

There are 3 ways to get started with Spectre CSS framework in your projects. You can either manually install or use NPM and Bower.
There are 4 ways to get started with Spectre CSS framework in your projects. You can either manually install or use NPM, Yarn and Bower.

##### Install manually
Download the compiled and minified [Spectre CSS file](https://github.com/picturepan2/spectre/tree/master/dist).

##### Install with NPM
`$ npm install spectre.css --save`

##### Install with Yarn
`$ yarn add spectre.css`

##### Install with Bower
`$ bower install spectre.css --save`

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spectre.css",
"version": "0.2.2",
"version": "0.2.3",
"description": "Spectre.css: a lightweight, responsive and modern CSS framework.",
"homepage": "http://picturepan2.github.io/spectre",
"repository": "picturepan2/spectre",
Expand Down
94 changes: 94 additions & 0 deletions dist/spectre-exp.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*! Spectre.css Experimentals | MIT License | github.com/picturepan2/spectre */
.progress {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: 0;
color: #5764c6;
height: .4rem;
width: 100%;
}
.progress::-webkit-progress-bar {
background: #efefef;
border-radius: .2rem;
}
.progress::-webkit-progress-value {
background: #5764c6;
border-radius: .2rem;
}
.progress::-moz-progress-bar {
background: #5764c6;
border-radius: .2rem;
}
.slider {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: transparent;
display: block;
height: 2.4rem;
width: 100%;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
background: #5764c6;
border-radius: 50%;
height: 1.4rem;
margin-top: -.5rem;
transition: transform .2s ease, -webkit-transform .2s ease;
transition: transform .2s ease;
transition: -webkit-transform .2s ease;
width: 1.4rem;
}
.slider::-moz-range-thumb {
background: #5764c6;
border: 0;
border-radius: 50%;
height: 1.4rem;
transition: transform .2s ease, -webkit-transform .2s ease;
transition: transform .2s ease;
transition: -webkit-transform .2s ease;
width: 1.4rem;
}
.slider::-ms-thumb {
background: #5764c6;
border: 0;
border-radius: 50%;
height: 1.4rem;
transition: transform .2s ease, -webkit-transform .2s ease;
transition: transform .2s ease;
transition: -webkit-transform .2s ease;
width: 1.4rem;
}
.slider:active::-webkit-slider-thumb {
-webkit-transform: scale(1.25);
transform: scale(1.25);
}
.slider:active::-moz-range-thumb {
transform: scale(1.25);
}
.slider:active::-ms-thumb {
-ms-transform: scale(1.25);
transform: scale(1.25);
}
.slider::-webkit-slider-runnable-track {
background: #efefef;
border-radius: .2rem;
height: .4rem;
width: 100%;
}
.slider::-moz-range-track {
background: #efefef;
border-radius: .2rem;
height: .4rem;
width: 100%;
}
.slider::-ms-track {
background: #efefef;
border-radius: .2rem;
height: .4rem;
width: 100%;
}
.slider::-ms-fill-lower {
background: #5764c6;
}
1 change: 1 addition & 0 deletions dist/spectre-exp.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

125 changes: 73 additions & 52 deletions dist/spectre.css
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ textarea.form-input {
cursor: pointer;
display: inline-block;
line-height: 2rem;
padding: .3rem 2rem .3rem 3.6rem;
padding: .2rem 2rem .2rem 3.6rem;
position: relative;
}
.form-switch .form-icon {
Expand All @@ -1034,7 +1034,7 @@ textarea.form-input {
outline: none;
padding: 0;
position: absolute;
top: .4rem;
top: .3rem;
vertical-align: top;
width: 3rem;
}
Expand Down Expand Up @@ -1116,6 +1116,23 @@ textarea.form-input {
display: -ms-inline-flexbox;
display: -webkit-inline-flex;
}
.form-horizontal {
padding: 1rem;
}
.form-horizontal .form-group {
display: flex;
display: -ms-flexbox;
display: -webkit-flex;
}
.form-horizontal .form-label {
margin-bottom: 0;
padding: .8rem .4rem;
}
.form-horizontal .form-checkbox,
.form-horizontal .form-radio,
.form-horizontal .form-switch {
margin: .4rem 0;
}
.label {
background: #f8f8f8;
border-radius: .2rem;
Expand All @@ -1137,27 +1154,6 @@ textarea.form-input {
background: #e85600;
color: #fff;
}
.progress {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: 0;
color: #5764c6;
height: .4rem;
width: 100%;
}
.progress::-webkit-progress-bar {
background: #efefef;
border-radius: .2rem;
}
.progress::-webkit-progress-value {
background: #5764c6;
border-radius: .2rem;
}
.progress::-moz-progress-bar {
background: #5764c6;
border-radius: .2rem;
}
.img-responsive {
display: block;
height: auto;
Expand Down Expand Up @@ -1576,22 +1572,6 @@ textarea.form-input {
width: 8.33333333%;
}
}
.form-horizontal {
padding: 1rem;
}
.form-horizontal .form-group {
display: flex;
display: -ms-flexbox;
display: -webkit-flex;
}
.form-horizontal .form-label {
margin-bottom: 0;
padding: .8rem .4rem;
}
.form-horizontal .form-checkbox,
.form-horizontal .form-radio {
margin: .4rem 0;
}
@media screen and (max-width: 480px) {
.hide-xs {
display: none !important;
Expand Down Expand Up @@ -1769,6 +1749,7 @@ textarea.form-input {
transform: translate(-50%, -50%) scale(.65);
}
.badge {
display: inline-block;
position: relative;
}
.badge[data-badge]::after,
Expand All @@ -1780,12 +1761,9 @@ textarea.form-input {
color: #fff;
content: attr(data-badge);
display: inline-block;
position: absolute;
right: 0;
top: 0;
-webkit-transform: translate(100%, -50%);
-ms-transform: translate(100%, -50%);
transform: translate(100%, -50%);
-webkit-transform: translate(-.4rem, -1rem);
-ms-transform: translate(-.4rem, -1rem);
transform: translate(-.4rem, -1rem);
}
.badge[data-badge]::after {
font-size: 1.2rem;
Expand All @@ -1803,6 +1781,54 @@ textarea.form-input {
padding: 0;
width: .8rem;
}
.badge.btn::after {
position: absolute;
right: 0;
top: 0;
-webkit-transform: translate(50%, -50%);
-ms-transform: translate(50%, -50%);
transform: translate(50%, -50%);
}
.bar {
background: #efefef;
border-radius: .2rem;
display: flex;
display: -ms-flexbox;
display: -webkit-flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
height: 1.6rem;
width: 100%;
}
.bar.bar-sm {
height: .4rem;
}
.bar .bar-item {
background: #5764c6;
color: #fff;
display: block;
-ms-flex-negative: 0;
-webkit-flex-shrink: 0;
flex-shrink: 0;
font-size: 1.2rem;
height: 100%;
line-height: 1;
padding: .2rem 0;
text-align: center;
width: 0;
}
.bar .bar-item:first-of-type {
border-bottom-left-radius: .2rem;
border-top-left-radius: .2rem;
}
.bar .bar-item:last-of-type {
border-bottom-right-radius: .2rem;
border-top-right-radius: .2rem;
-ms-flex-negative: 1;
-webkit-flex-shrink: 1;
flex-shrink: 1;
}
.card {
background: #fff;
border: .1rem solid #efefef;
Expand Down Expand Up @@ -1866,6 +1892,7 @@ textarea.form-input {
color: #fff;
}
.chip .avatar {
margin-left: -.4rem;
margin-right: .4rem;
}
.dropdown {
Expand Down Expand Up @@ -2104,15 +2131,9 @@ textarea.form-input {
-ms-transform: translate(0, 0);
transform: translate(0, 0);
}
.tab:not(.tab-block) a.badge {
.tab:not(.tab-block) .badge {
padding-right: 0;
}
.tab:not(.tab-block) a.badge::after {
position: static;
-webkit-transform: translate(-.2rem, -1rem);
-ms-transform: translate(-.2rem, -1rem);
transform: translate(-.2rem, -1rem);
}
.pagination {
display: flex;
display: -ms-flexbox;
Expand Down
2 changes: 1 addition & 1 deletion dist/spectre.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 22eef43

Please # to comment.