fix(styles): fix styles for typography and buttons

This commit is contained in:
KostyaDanovsky 2017-09-15 20:01:43 +03:00
parent 660c9e508c
commit 3eb56f7e97
4 changed files with 36 additions and 7 deletions

View file

@ -6,7 +6,6 @@
@include nb-install-component() { @include nb-install-component() {
/deep/ { /deep/ {
$button-size: 50px; $button-size: 50px;
$button-border-radius: 12px;
.container-title { .container-title {
color: nb-theme(color-fg); color: nb-theme(color-fg);
@ -39,7 +38,7 @@
.state-value { .state-value {
width: $button-size; width: $button-size;
height: $button-size; height: $button-size;
border-radius: $button-border-radius; border-radius: nb-theme(btn-border-radius);
} }
.state-details { .state-details {

View file

@ -20,7 +20,7 @@
.subheader { .subheader {
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: nb-theme(font-weight-bold); font-weight: nb-theme(font-weight-bolder);
color: nb-theme(color-fg-heading); color: nb-theme(color-fg-heading);
} }
} }

View file

@ -44,7 +44,7 @@
</nb-card> </nb-card>
</div> </div>
<div class="col-sm-12 col-md-6 col-xxl-5"> <div class="col-sm-12 col-md-6 col-xxl-5">
<nb-card size="medium"> <nb-card size="medium" class="headings-card">
<nb-card-header> <nb-card-header>
Headings Headings
</nb-card-header> </nb-card-header>
@ -117,7 +117,7 @@
<p class="text-indent"> <p class="text-indent">
Far far away, behind the word mountains, far from the countries <strong>Vokalia</strong> and <strong>Consonantia</strong>, Far far away, behind the word mountains, far from the countries <strong>Vokalia</strong> and <strong>Consonantia</strong>,
there live the blind texts. there live the blind texts.
Separated they live in <strong>Bookmarksgrove</strong>. They live in <strong>Bookmarksgrove</strong>.
</p> </p>
<p class="text-indent"> <p class="text-indent">
A small <strong>river named Duden</strong> flows by their place and supplies it with the A small <strong>river named Duden</strong> flows by their place and supplies it with the
@ -182,6 +182,13 @@
Far far away, behind the your awesomeness. Far far away, behind the your awesomeness.
</div> </div>
</div> </div>
<div class="item text-link">
<div class="color bg-link"></div>
<div>
<h5 class="text-link">Link Text</h5>
Far far away, behind the your awesomeness.
</div>
</div>
<div class="item text-primary"> <div class="item text-primary">
<div class="color bg-primary"></div> <div class="color bg-primary"></div>
<div> <div>
@ -192,7 +199,7 @@
<div class="item text-success"> <div class="item text-success">
<div class="color bg-success"></div> <div class="color bg-success"></div>
<div> <div>
<h5 class="text-success">Link/Hightlight Text</h5> <h5 class="text-success">Success Text</h5>
Far far away, behind the your awesomeness. Far far away, behind the your awesomeness.
</div> </div>
</div> </div>

View file

@ -27,6 +27,21 @@
} }
} }
.headings-card {
nb-card-body {
padding: 1rem 1.25rem;
}
.header {
padding-bottom: 0.675rem;
margin-bottom: 0.675rem;
&:last-child {
padding-bottom: 0;
margin-bottom: 0;
}
}
}
.header { .header {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@ -80,7 +95,7 @@
.item { .item {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 1.5rem; margin-bottom: 1.25rem;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
@ -98,4 +113,12 @@
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
} }
} }
.text-link {
color: nb-theme(link-color);
}
.bg-link {
background: nb-theme(link-color);
}
} }