From 7fe8f7453d70eb21f304413f95b1942fe206fc75 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 5 Apr 2016 19:37:12 +0800 Subject: update tooltips code and examples --- src/tooltips.less | 6 +++--- src/typography.less | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/tooltips.less b/src/tooltips.less index 4d0f680..1ccc98b 100644 --- a/src/tooltips.less +++ b/src/tooltips.less @@ -30,7 +30,7 @@ } } - &[data-tooltip-pos="right"] { + &.tooltip-right { &::after { bottom: 50%; left: 100%; @@ -42,7 +42,7 @@ } } } - &[data-tooltip-pos="bottom"] { + &.tooltip-bottom { &::after { top: 100%; bottom: auto; @@ -54,7 +54,7 @@ } } } - &[data-tooltip-pos="left"] { + &.tooltip-left { &::after { right: 100%; bottom: 50%; diff --git a/src/typography.less b/src/typography.less index 94a596f..4a9476f 100644 --- a/src/typography.less +++ b/src/typography.less @@ -50,6 +50,24 @@ blockquote { color: lighten(@body-font-color, 50%); } } +code, +pre { + display: block; + margin-top: 1em; + margin-bottom: 1em; + border-left: .2rem solid #ddd; + line-height: 1.8rem; + background-color: @core-border-color; +} +code { + padding: 1rem 2rem; +} +pre code { + background-color: transparent; + border-left: 0; + margin-top: 0; + margin-bottom: 0; +} ul, ol { margin: 0 0 1rem; -- cgit v1.3.1-23-gd82d From cc2c46c583451fef05a262cd63d023399ed3cbb7 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 6 Apr 2016 10:18:21 +0800 Subject: update buttons, forms, labels, tables, tooltips and example docs --- demo/index.html | 60 +++++++++++++++++---------- dist/spectre.css | 114 ++++++++++++++++++++++------------------------------ src/buttons.less | 6 +-- src/forms.less | 4 ++ src/labels.less | 12 +++--- src/tables.less | 2 +- src/tooltips.less | 12 ++++-- src/typography.less | 4 +- 8 files changed, 112 insertions(+), 102 deletions(-) (limited to 'src') diff --git a/demo/index.html b/demo/index.html index 426e943..54801fe 100644 --- a/demo/index.html +++ b/demo/index.html @@ -7,13 +7,18 @@ @@ -21,7 +26,7 @@

Project Spectre

introduction

-
+

Project Spectre is a lightweight and clean CSS framework for faster and extendable development.

  • lightweight and clean starting point for your project
  • @@ -33,7 +38,7 @@

    typography

    -
    +

    typography.less sets default styles for headings, paragraphs, blockquote, lists elements and some text related utilities.

    @@ -89,8 +94,9 @@

    flexbox layout

    -
    +

    layout.less includes flexbox based grid system with 12 columns.

    +

    Add the class columns to a container. Add any element you want with class column inside the container. These columns will take up the space equally. You can specific the width of each column by adding class col-[1-12].

    @@ -144,7 +150,11 @@

    tables

    - +
    +

    tables.less sets default styles for tables and data sets.

    +

    Add the class <table> to any table element. The class will add padding, border and emphasized table header. Adding the class selected to a <tr> element will highlight the whole table row.

    +
    +
    @@ -184,8 +194,9 @@

    buttons

    -
    -

    buttons.less includes simple button style for actions in different types and sizes. Buttons can show loading indicators.

    +
    +

    buttons.less includes simple button style for actions in different types and sizes.

    +

    Add the class btn to <a>, <input> or <button> elements for a default button. There are classes btn-primary and btn-link for predefined primary and link buttons. A button with the class loading can show loading indicator.

    @@ -197,16 +208,19 @@
    +
    button sizes
    +
    +

    Add the class btn-sm or btn-lg for small or large size. Also, you can add the class btn-block for a full-width button.

    +
    - - - - + + + +
    -
    @@ -217,6 +231,9 @@

    button groups

    +
    +

    If you want to use buttons as a group, add the class btn-group to the container.

    +
    @@ -479,7 +496,7 @@

    file icons

    -
    +

    fileicons.less includes a set of file icons. This part is written entirely in CSS as well.

    @@ -498,8 +515,9 @@

    tooltips

    -
    -

    tooltips.less is built entirely in CSS. Add the attribute data-tooltip and class tooltip to non self closing elements. And add the class name tooltip-right, tooltip-bottom or tooltip-left to define the position of a tooltip. By default, the tooltip appears above the element.

    +
    +

    tooltips.less is a label-like component that appears on hover and focus.

    +

    Add the class tooltip and the attribute data-tooltip, which contains the tooltip content, to non self closing elements. And add the class name tooltip-right, tooltip-bottom or tooltip-left to define the position of a tooltip. By default, the tooltip appears above the element.

    <button class="btn btn-primary tooltip tooltip-right" data-tooltip="Lorem ipsum dolor sit amet">right tooltip</button>
    @@ -553,13 +571,13 @@
    - + Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    - + Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    @@ -567,25 +585,25 @@
    - + Efficiently unleash cross-media information without cross-media value.
    - + Efficiently unleash cross-media information without cross-media value.
    - + Efficiently unleash cross-media information without cross-media value.
    - + Efficiently unleash cross-media information without cross-media value.
    diff --git a/dist/spectre.css b/dist/spectre.css index b7002db..d197a20 100644 --- a/dist/spectre.css +++ b/dist/spectre.css @@ -460,9 +460,9 @@ pre { display: block; margin-top: 1em; margin-bottom: 1em; - border-left: .2rem solid #ddd; + border-left: 0.2rem solid #5764c6; line-height: 1.8rem; - background-color: #efefef; + background-color: #f9f9f9; } code { padding: 1rem 2rem; @@ -639,23 +639,22 @@ ol ol { max-width: 100%; height: auto; } -table { +.table { width: 100%; } -table th, -table td { +.table th, +.table td { text-align: left; padding: 1.5rem 1rem; border-bottom: 0.1rem solid #efefef; } -table th { +.table th { border-color: #c9c9c9; } -table tr.selected { +.table tr.selected { background-color: #f4f4f4; } -.btn, -button { +.btn { display: inline-block; height: 3.2rem; padding: .7rem 1.5rem; @@ -678,27 +677,21 @@ button { outline: 0; } .btn:hover, -button:hover, -.btn:focus, -button:focus { +.btn:focus { color: #fff; background-color: #5764c6; } .btn:active, -button:active, -.btn.active, -button.active { +.btn.active { color: #fff; background-color: #4452c0; } -.btn.loading, -button.loading { +.btn.loading { color: transparent !important; position: relative; pointer-events: none; } -.btn.loading::after, -button.loading::after { +.btn.loading::after { border: 2px solid #5764c6; border-right-color: transparent; border-top-color: transparent; @@ -716,79 +709,64 @@ button.loading::after { animation: loading 500ms infinite linear; } .btn[disabled], -button[disabled] { +.btn .disabled { opacity: .5; cursor: default; } -.btn.btn-primary, -button.btn-primary { +.btn.btn-primary { color: #fff; border-color: #4452c0; background-color: #5764c6; } .btn.btn-primary:hover, -button.btn-primary:hover, -.btn.btn-primary:focus, -button.btn-primary:focus { +.btn.btn-primary:focus { color: #fff; border-color: #3b49af; background-color: #4452c0; } .btn.btn-primary:active, -button.btn-primary:active, -.btn.btn-primary.active, -button.btn-primary.active { +.btn.btn-primary.active { color: #fff; border-color: #3b49af; background-color: #3b49af; } -.btn.btn-primary.loading::after, -button.btn-primary.loading::after { +.btn.btn-primary.loading::after { border-color: #fff; border-right-color: transparent; border-top-color: transparent; } -.btn.btn-link, -button.btn-link { +.btn.btn-link { color: #5764c6; border-color: transparent; background-color: transparent; } .btn.btn-link:hover, -button.btn-link:hover, -.btn.btn-link:focus, -button.btn-link:focus { +.btn.btn-link:focus { color: #35419c; } .btn.btn-link:active, -button.btn-link:active, -.btn.btn-link.active, -button.btn-link.active { +.btn.btn-link.active { color: #283176; } -.btn.btn-sm, -button.btn-sm { +.btn.btn-sm { height: 2.4rem; border-radius: 2px; font-size: 1.2rem; line-height: 1.4rem; padding: .4rem 1rem; } -.btn.btn-lg, -button.btn-lg { +.btn.btn-lg { height: 4.2rem; border-radius: 4px; font-size: 1.8rem; line-height: 2rem; padding: 1rem 1.8rem; } -.btn.btn-block, -button.btn-block { +.btn.btn-block { width: 100%; display: block; } -.btn.btn-clear, -button.btn-clear { +.btn.btn-clear { width: 1.4rem; height: 1.4rem; padding: 0; @@ -801,14 +779,11 @@ button.btn-clear { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } -.btn.btn-clear:hover, -button.btn-clear:hover { +.btn.btn-clear:hover { opacity: .75; } .btn.btn-clear::before, -button.btn-clear::before, -.btn.btn-clear::after, -button.btn-clear::after { +.btn.btn-clear::after { content: ""; display: block; position: absolute; @@ -816,15 +791,13 @@ button.btn-clear::after { left: 50%; background-color: #333; } -.btn.btn-clear::before, -button.btn-clear::before { +.btn.btn-clear::before { width: 1rem; height: .2rem; margin-left: -0.5rem; margin-top: -0.1rem; } -.btn.btn-clear::after, -button.btn-clear::after { +.btn.btn-clear::after { width: .2rem; height: 1rem; margin-left: -0.1rem; @@ -1093,6 +1066,13 @@ textarea.form-input { border-radius: .3rem; background-color: #efefef; } +.input-group .input-group-addon, +.input-group .input-group-btn { + -webkit-box-flex: 1; + -webkit-flex: 1 0 auto; + -ms-flex: 1 0 auto; + flex: 1 0 auto; +} .input-group .form-input:first-child:not(:last-child), .input-group .input-group-addon:first-child:not(:last-child), .input-group .input-group-btn:first-child:not(:last-child) { @@ -1328,15 +1308,15 @@ textarea.form-input { } .label { display: inline-block; - padding: .3rem .5rem; - font-size: 80%; - line-height: 1; - color: #666; + padding: .3rem .4rem; + font-size: 90%; + line-height: 1em; + color: #737373; background-color: #efefef; text-align: center; white-space: nowrap; vertical-align: middle; - margin: -0.3rem 0.5rem 0 0.5rem; + margin: -0.3rem 0.1em 0 0.1em; border-radius: .2rem; } .label.label-primary { @@ -1362,7 +1342,7 @@ textarea.form-input { .label.label-lg { font-size: 100%; line-height: 1.2; - padding: .3rem .8rem; + padding: .3rem .5rem; } .menu { display: block; @@ -1602,7 +1582,8 @@ textarea.form-input { -webkit-transition: all .216s ease; transition: all .216s ease; } -.tooltip:hover::after { +.tooltip:hover::after, +.tooltip:focus::after { opacity: 1; -webkit-transform: translate(-50%, -0.5rem); transform: translate(-50%, -0.5rem); @@ -1613,7 +1594,8 @@ textarea.form-input { -webkit-transform: translate(0, 50%); transform: translate(0, 50%); } -.tooltip.tooltip-right:hover::after { +.tooltip.tooltip-right:hover::after, +.tooltip.tooltip-right:focus::after { -webkit-transform: translate(0.5rem, 50%); transform: translate(0.5rem, 50%); } @@ -1623,7 +1605,8 @@ textarea.form-input { -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); } -.tooltip.tooltip-bottom:hover::after { +.tooltip.tooltip-bottom:hover::after, +.tooltip.tooltip-bottom:focus::after { -webkit-transform: translate(-50%, 0.5rem); transform: translate(-50%, 0.5rem); } @@ -1634,7 +1617,8 @@ textarea.form-input { -webkit-transform: translate(0, 50%); transform: translate(0, 50%); } -.tooltip.tooltip-left:hover::after { +.tooltip.tooltip-left:hover::after, +.tooltip.tooltip-left:focus::after { -webkit-transform: translate(-0.5rem, 50%); transform: translate(-0.5rem, 50%); } diff --git a/src/buttons.less b/src/buttons.less index ef95627..47f10ff 100644 --- a/src/buttons.less +++ b/src/buttons.less @@ -1,6 +1,5 @@ // Buttons -.btn, -button { +.btn { display: inline-block; height: 3.2rem; padding: .7rem 1.5rem; @@ -53,7 +52,8 @@ button { } } - &[disabled] { + &[disabled], + .disabled { opacity: .5; cursor: default; } diff --git a/src/forms.less b/src/forms.less index eaab29d..996056c 100644 --- a/src/forms.less +++ b/src/forms.less @@ -262,6 +262,10 @@ border-radius: .3rem; background-color: @core-border-color; } + .input-group-addon, + .input-group-btn { + flex: 1 0 auto; + } .form-input, .input-group-addon, diff --git a/src/labels.less b/src/labels.less index ac11630..1c16f40 100644 --- a/src/labels.less +++ b/src/labels.less @@ -1,15 +1,15 @@ // Labels .label { display: inline-block; - padding: .3rem .5rem; - font-size: 80%; - line-height: 1; - color: #666; + padding: .3rem .4rem; + font-size: 90%; + line-height: 1em; + color: lighten(@body-font-color, 25%); background-color: @core-border-color; text-align: center; white-space: nowrap; vertical-align: middle; - margin: -.3rem .5rem 0 .5rem; + margin: -.3rem .1em 0 .1em; border-radius: .2rem; &.label-primary { @@ -36,6 +36,6 @@ &.label-lg { font-size: 100%; line-height: 1.2; - padding: .3rem .8rem; + padding: .3rem .5rem; } } \ No newline at end of file diff --git a/src/tables.less b/src/tables.less index 920f488..6ad7b93 100644 --- a/src/tables.less +++ b/src/tables.less @@ -1,5 +1,5 @@ // Tables -table { +.table { width: 100%; th, diff --git a/src/tooltips.less b/src/tooltips.less index 1ccc98b..ab3e754 100644 --- a/src/tooltips.less +++ b/src/tooltips.less @@ -23,7 +23,8 @@ pointer-events: none; transition: all .216s ease; } - &:hover { + &:hover, + &:focus { &::after { opacity: 1; transform: translate(-50%, -.5rem); @@ -36,7 +37,8 @@ left: 100%; transform: translate(0, 50%); } - &:hover { + &:hover, + &:focus { &::after { transform: translate(.5rem, 50%); } @@ -48,7 +50,8 @@ bottom: auto; transform: translate(-50%, 0); } - &:hover { + &:hover, + &:focus { &::after { transform: translate(-50%, .5rem); } @@ -61,7 +64,8 @@ left: auto; transform: translate(0, 50%); } - &:hover { + &:hover, + &:focus { &::after { transform: translate(-.5rem, 50%); } diff --git a/src/typography.less b/src/typography.less index 4a9476f..bd4c576 100644 --- a/src/typography.less +++ b/src/typography.less @@ -55,9 +55,9 @@ pre { display: block; margin-top: 1em; margin-bottom: 1em; - border-left: .2rem solid #ddd; + border-left: .2rem solid @core-color; line-height: 1.8rem; - background-color: @core-border-color; + background-color: lighten(@core-border-color, 4%); } code { padding: 1rem 2rem; -- cgit v1.3.1-23-gd82d From d01d23d1a60807fb5453c4a250a6544652436f60 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 6 Apr 2016 14:20:32 +0800 Subject: add cards code and update new demo images --- demo/img/apple-el-capitan.jpg | Bin 347819 -> 0 bytes demo/img/osx-el-capitan-2.jpg | Bin 0 -> 122992 bytes demo/img/osx-el-capitan.jpg | Bin 0 -> 148156 bytes demo/img/osx-yosemite-2.jpg | Bin 0 -> 145142 bytes demo/img/osx-yosemite.jpg | Bin 0 -> 142436 bytes demo/index.html | 69 ++++++++++++++++++++++++++++++++++--- dist/spectre.css | 78 +++++++++++++++++++++++++++++++++--------- spectre.less | 2 +- src/buttons.less | 10 +++--- src/cards.less | 47 +++++++++++++++++++++++++ src/navigation.less | 4 +-- 11 files changed, 182 insertions(+), 28 deletions(-) delete mode 100644 demo/img/apple-el-capitan.jpg create mode 100644 demo/img/osx-el-capitan-2.jpg create mode 100644 demo/img/osx-el-capitan.jpg create mode 100644 demo/img/osx-yosemite-2.jpg create mode 100644 demo/img/osx-yosemite.jpg create mode 100644 src/cards.less (limited to 'src') diff --git a/demo/img/apple-el-capitan.jpg b/demo/img/apple-el-capitan.jpg deleted file mode 100644 index f469599..0000000 Binary files a/demo/img/apple-el-capitan.jpg and /dev/null differ diff --git a/demo/img/osx-el-capitan-2.jpg b/demo/img/osx-el-capitan-2.jpg new file mode 100644 index 0000000..6e56bff Binary files /dev/null and b/demo/img/osx-el-capitan-2.jpg differ diff --git a/demo/img/osx-el-capitan.jpg b/demo/img/osx-el-capitan.jpg new file mode 100644 index 0000000..7337afb Binary files /dev/null and b/demo/img/osx-el-capitan.jpg differ diff --git a/demo/img/osx-yosemite-2.jpg b/demo/img/osx-yosemite-2.jpg new file mode 100644 index 0000000..0b5befa Binary files /dev/null and b/demo/img/osx-yosemite-2.jpg differ diff --git a/demo/img/osx-yosemite.jpg b/demo/img/osx-yosemite.jpg new file mode 100644 index 0000000..80b1cb1 Binary files /dev/null and b/demo/img/osx-yosemite.jpg differ diff --git a/demo/index.html b/demo/index.html index 54801fe..767a41a 100644 --- a/demo/index.html +++ b/demo/index.html @@ -243,7 +243,7 @@
    -
    +
    @@ -400,7 +400,10 @@

    media

    - + +
    +
    +
    @@ -800,20 +803,21 @@

    This is the content inside the modal.

    -

    Lorem ipsum

    +

    Lorem ipsum

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent risus leo, dictum in vehicula sit amet, feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare consequat.

    Climb leg rub face on everything give attitude nap all day for under the bed. Chase mice attack feet but rub face on everything hopped up on goofballs.

    -

    Cupcake ipsum

    +

    Cupcake ipsum

    Jelly-o sesame snaps halvah croissant oat cake cookie. Cheesecake bear claw topping. Chupa chups apple pie carrot cake chocolate cake caramels.

    De braaaiiiins apocalypsi gorger omero prefrontal cortex undead survivor fornix dictum mauris. Hi brains mindless mortuis limbic cortex soulless creaturas optic nerve.

    +

    Candy ipsum

    Efficiently unleash cross-media information without cross-media value. Quickly maximize timely deliverables for real-time schemas. Dramatically maintain clicks-and-mortar.

    @@ -831,6 +835,63 @@
    +
    +

    cards

    +
    +
    +
    +
    + +
    +
    +

    Microsoft

    +
    Software and hardware
    +
    +
    + Empower every person and every organization on the planet to achieve more. +
    + +
    +
    +
    +
    +
    +

    Apple

    +
    Hardware and software
    +
    +
    + +
    +
    + To make a contribution to the world by making tools for the mind that advance humankind. +
    + +
    +
    +
    +
    +
    +

    Google

    +
    Software and hardware
    +
    +
    + Organize the world’s information and make it universally accessible and useful. +
    + +
    +
    +
    +
    \ No newline at end of file diff --git a/dist/spectre.css b/dist/spectre.css index d197a20..5f698ed 100644 --- a/dist/spectre.css +++ b/dist/spectre.css @@ -804,21 +804,16 @@ ol ol { margin-top: -0.5rem; } .btn-group { - display: inline-block; - vertical-align: middle; -} -.btn-group::after { - content: ""; - display: table; - clear: both; -} -.btn-group::after { - content: ""; - display: table; - clear: both; + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; } .btn-group .btn { - float: left; + -webkit-box-flex: 1; + -webkit-flex: 1 0 auto; + -ms-flex: 1 0 auto; + flex: 1 0 auto; } .btn-group .btn:first-child:not(:last-child) { border-top-right-radius: 0; @@ -835,6 +830,12 @@ ol ol { border-bottom-left-radius: 0; z-index: 99; } +.btn-group.btn-group-block { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; +} .form-group:not(:last-child) { margin-bottom: 1rem; } @@ -1179,6 +1180,51 @@ textarea.form-input { overflow: hidden; text-overflow: ellipsis; } +.card { + display: block; + text-align: left; + margin: 0; + padding: 0; + border-radius: .3rem; + background-color: #fff; + z-index: 999; + box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.3); +} +.card .card-header, +.card .card-image, +.card .card-content, +.card .card-footer { + padding: 1.5rem 1.5rem 0 1.5rem; +} +.card .card-header:last-child, +.card .card-image:last-child, +.card .card-content:last-child, +.card .card-footer:last-child { + padding-bottom: 1.5rem; +} +.card .card-image { + padding-left: 0; + padding-right: 0; +} +.card .card-image:first-child { + padding-top: 0; +} +.card .card-image:first-child img { + border-top-left-radius: .3rem; + border-top-right-radius: .3rem; +} +.card .card-title { + margin-top: 0; + margin-bottom: .5rem; + font-size: 1.6em; + line-height: 1; +} +.card .card-meta { + margin-top: 0; + margin-bottom: 0; + font-size: 1em; + color: #b3b3b3; +} .chip { display: -webkit-inline-box; display: -webkit-inline-flex; @@ -1517,9 +1563,9 @@ textarea.form-input { .tab.tab-block .tab-item { float: none; -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; + -webkit-flex: 1 0 auto; + -ms-flex: 1 0 auto; + flex: 1 0 auto; text-align: center; } .toast { diff --git a/spectre.less b/spectre.less index 288c031..3332c4b 100644 --- a/spectre.less +++ b/spectre.less @@ -19,6 +19,7 @@ // Components @import 'src/avatars.less'; @import 'src/badges.less'; +@import 'src/cards.less'; @import 'src/chips.less'; @import 'src/fileicons.less'; @import 'src/labels.less'; @@ -27,7 +28,6 @@ @import 'src/navigation.less'; @import 'src/toasts.less'; @import 'src/tooltips.less'; -//@import 'src/cards.less'; //@import 'src/animations.less'; // Utility classes diff --git a/src/buttons.less b/src/buttons.less index 47f10ff..29c8e18 100644 --- a/src/buttons.less +++ b/src/buttons.less @@ -169,12 +169,10 @@ } .btn-group { - display: inline-block; - vertical-align: middle; - .clearfix(); + display: inline-flex; .btn { - float: left; + flex: 1 0 auto; &:first-child:not(:last-child) { border-top-right-radius: 0; @@ -192,4 +190,8 @@ z-index: 99; } } + + &.btn-group-block { + display: flex; + } } \ No newline at end of file diff --git a/src/cards.less b/src/cards.less new file mode 100644 index 0000000..3a9abc5 --- /dev/null +++ b/src/cards.less @@ -0,0 +1,47 @@ +// Cards +.card { + display: block; + text-align: left; + margin: 0; + padding: 0; + border-radius: .3rem; + background-color: #fff; + z-index: 999; + .shadow; + + .card-header, + .card-image, + .card-content, + .card-footer { + padding: 1.5rem 1.5rem 0 1.5rem; + + &:last-child { + padding-bottom: 1.5rem; + } + } + .card-image { + padding-left: 0; + padding-right: 0; + + &:first-child { + padding-top: 0; + + img { + border-top-left-radius: .3rem; + border-top-right-radius: .3rem; + } + } + } + .card-title { + margin-top: 0; + margin-bottom: .5rem; + font-size: 1.6em; + line-height: 1; + } + .card-meta { + margin-top: 0; + margin-bottom: 0; + font-size: 1em; + color: lighten(@body-font-color, 50%); + } +} \ No newline at end of file diff --git a/src/navigation.less b/src/navigation.less index 2e0436f..d119099 100644 --- a/src/navigation.less +++ b/src/navigation.less @@ -72,10 +72,8 @@ .tab-item { float: none; - flex: 1; + flex: 1 0 auto; text-align: center; } } } - -// TODO: Tabs with icons -- cgit v1.3.1-23-gd82d
    name