Files
exchange-2.0/resources/assets/sass/modules/_typography.scss
T
2022-04-16 23:53:12 +08:00

895 lines
16 KiB
SCSS
Vendored

/*------------------------------------------------------------------
[5. Typography]
*/
/* Standard elements
--------------------------------------------------
*/
/* To Load Hinted Fonts for Windows */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600');
@import url('https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,500,600');
@import url('https://fonts.googleapis.com/css?family=Orbitron:400,500,600');
html{
font-size: 100%;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body{
color: $color-master;
font-family: 'Open Sans', sans-serif !important;
font-size: 14px;
font-weight: normal;
letter-spacing: 0.01em;
-webkit-font-smoothing:antialiased;
-webkit-text-size-adjust:100%;
-ms-text-size-adjust:100%;
-webkit-font-feature-settings: "kern" 1;
-moz-font-feature-settings: "kern" 1;
}
/* Headings
------------------------------------
*/
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 10px 0;
font-family: "Segoe UI","Helvetica Neue", Helvetica, Arial, sans-serif;
-webkit-font-smoothing:antialiased;
-webkit-text-size-adjust:100%;
-ms-text-size-adjust:100%;
font-weight: 300;
color: $color-master-dark;
}
h1 {
font-size: 44px;
line-height: 55px;
letter-spacing: -0.08px;
}
h2 {
font-size: 31px;
line-height: 40px;
}
h3 {
font-size: 27px;
line-height: 35px;
}
h4 {
font-size: 22px;
line-height: 31.88px;
}
h5{
font-size: 18px;
line-height: 25.88px;
}
h3 small,
h4 small,
h5 small {
font-weight: 300;
}
h1.block,
h2.block,
h3.block,
h4.block,
h5.block,
h6.block {
padding-bottom: 10px;
}
/* Lins and Others
------------------------------------
*/
a {
text-shadow: none !important;
color: $color-primary-dark;
transition: color 0.1s linear 0s,background-color 0.1s linear 0s,opacity 0.2s linear 0s !important;
}
a:focus, a:hover, a:active {
color: $color-primary;
}
a,a:focus, a:hover, a:active {
outline: 0 !important;
text-decoration: none;
}
a[ng-click] {
cursor: pointer;
}
br {
line-height: normal;
clear: both;
}
code{
color:$color-danger-dark;
background-color: $color-master-lighter;
&:hover {
background-color: $color-danger-lighter;
}
}
p {
display: block;
font-size: 14px;
font-weight: normal;
letter-spacing: 0.01em;
line-height: 22px;
margin: 0px 0px 10px 0px;
font-style: normal;
white-space: normal;
}
small,
.small{
line-height: 18px;
font-size: 85%;
}
label {
&.inline {
display: inline-block;
position: relative;
top: 0px;
font-size: 13px;
}
}
ul,ol {
margin-bottom: 10px;
& > li {
padding-left: 3px;
line-height: 24px;
}
&.lg-icon{
& > li {
font-size: 21px;
& span {
font-size: 14px;
}
}
}
&.no-style{
list-style: none;
padding-left: 5px;
}
}
address {
margin-bottom: 0px;
a{
color:$color-master;
}
}
blockquote {
padding: 0 0 0 18px;
border-left:0;
&:before{
content: '';
font-family: FontAwesome;
content: "\f10d";
margin-right: 13px;
float: left;
}
p {
font-size: 16px;
}
small {
line-height: 29px;
color: #8b91a0;
padding-left: 30px;
&:before {
content: "";
}
}
&.pull-right {
border-right:0;
&:before{
float: right;
content: '';
font-family: FontAwesome;
content: "\f10d";
margin-left: 13px;
margin-right: 0;
}
small {
padding-right: 30px;
&:after {
content: "";
}
}
}
}
hr{
border-color:$color-master-light;
&.double{
border-width:2px;
}
&.dotted{
border-style:dotted none none;
}
}
/* Font Sizes
------------------------------------
*/
.small-text {
font-size: 12px !important;
}
.normal-text {
font-size: 13px !important;
}
.large-text {
font-size: 15px !important;
}
/* Font Weights
------------------------------------
*/
.normal {
font-weight: normal;
}
.semi-bold {
font-weight: 400 !important;
}
.bold {
font-weight: bold !important;
}
.light {
font-weight: 300 !important;
}
.lightest {
font-weight: 100 !important;
}
/* Misc
------------------------------------
*/
.logo {
margin: 18px 14px;
}
.all-caps {
text-transform: uppercase;
}
.muted {
color: lighten($color-master,50%);
}
.hint-text{
opacity: .7;
}
.no-decoration{
text-decoration:none !important;
}
/* Monochrome Colors
------------------------------------
*/
.bg-master{
background-color: $color-master !important;
}
.bg-master-light{
background-color: $color-master-light !important;
}
.bg-master-lighter{
background-color: $color-master-lighter !important;
}
.bg-master-lightest{
background-color: $color-master-lightest !important;
}
.bg-master-dark{
background-color: $color-master-dark !important;
}
.bg-master-darker{
background-color: $color-master-darker !important;
}
.bg-master-darkest{
background-color: $color-master-darkest !important;
}
/* Contextual Colors
------------------------------------
*/
.bg-primary-complete-gradient {
background: linear-gradient(to right, $color-complete, $color-primary);
}
/* Primary
------------------------------------
*/
.bg-primary {
background-color: $color-primary !important;
}
.bg-primary-dark {
background-color: $color-primary-dark !important;
}
.bg-primary-darker {
background-color: $color-primary-darker !important;
}
.bg-primary-light {
background-color: $color-primary-light !important;
}
.bg-primary-lighter {
background-color: $color-primary-lighter !important;
}
.bg-primary-lighter-hover {
&:hover {
background-color: $color-primary-lighter !important;
}
}
/* Complete
------------------------------------
*/
.bg-complete {
background-color: $color-complete !important;
}
.bg-complete-dark {
background-color: $color-complete-dark !important;
}
.bg-complete-darker {
background-color: $color-complete-darker !important;
}
.bg-complete-light {
background-color: $color-complete-light !important;
}
.bg-complete-lighter {
background-color: $color-complete-lighter !important;
}
/* Success
------------------------------------
*/
.bg-success {
background-color: $color-success !important;
}
.bg-success-dark {
background-color: $color-success-dark !important;
}
.bg-success-darker {
background-color: $color-success-darker !important;
}
.bg-success-light {
background-color: $color-success-light !important;
}
.bg-success-lighter {
background-color: $color-success-lighter !important;
}
/* Info
------------------------------------
*/
.bg-info{
background-color: $color-info !important;
}
.bg-info-dark{
background-color: $color-info-dark !important;
}
.bg-info-darker{
background-color: $color-info-darker !important;
}
.bg-info-light{
background-color: $color-info-light !important;
}
.bg-info-lighter{
background-color: $color-info-lighter !important;
}
/* Danger
------------------------------------
*/
.bg-danger {
background-color: $color-danger !important;;
}
.bg-danger-dark {
background-color: $color-danger-dark !important;
}
.bg-danger-darker {
background-color: $color-danger-darker !important;
}
.bg-danger-light {
background-color: $color-danger-light !important;
}
.bg-danger-lighter {
background-color: $color-danger-lighter !important;
}
/* Warning
------------------------------------
*/
.bg-warning {
background-color: $color-warning !important;
}
.bg-warning-dark {
background-color: $color-warning-dark !important;
}
.bg-warning-darker {
background-color: $color-warning-darker !important;
}
.bg-warning-light {
background-color: $color-warning-light !important;
}
.bg-warning-lighter {
background-color: $color-warning-lighter !important;
}
/* More Color Options
------------------------------------
*/
/* Menu
------------------------------------
*/
.bg-menu-dark{
background-color: $color-menu-dark;
}
.bg-menu{
background-color: $color-menu;
}
.bg-menu-light{
background-color: $color-menu-light;
}
/* Gradients
------------------------------------
*/
.gradient-grey {
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 75%);
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 75%);
}
.gradient-black {
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 75%);
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 75%);
}
.gradient-white {
background: -webkit-linear-gradient(top, rgba(255,255,255, 0.5) 0%, rgba(255,255,255, 0.9) 75%);
background: linear-gradient(to bottom, rgba(255,255,255, 0.5) 0%, rgba(255,255,255, 0.9) 75%);
}
/* Other Colors
------------------------------------
*/
.bg-white{
background-color: #fff;
}
.bg-transparent{
background-color: transparent !important;
}
/* Text Colors */
.link{
opacity: .7;
&:hover{
opacity: 1;
}
}
.text-black {
color: $color-master-dark !important;
}
.hover-black {
color: $color-master-dark !important;
}
.text-white {
color: #fff !important;
}
.hover-white {
&:hover {
color: $color-white !important;
}
}
.text-master {
color: $color-master !important;
}
.text-master-dark {
color: $color-master-dark !important;
}
.text-master-darker {
color: $color-master-darker !important;
}
.text-master-light {
color: $color-master-light !important;
}
.text-master-lighter {
color: $color-master-lighter !important;
}
.hover-master {
&:hover {
color: $color-master !important;
}
}
.text-complete {
color: $color-complete !important;
}
.text-complete-dark {
color: $color-complete-dark !important;
}
.text-complete-darker {
color: $color-complete-darker !important;
}
.text-complete-light {
color: $color-complete-light !important;
}
.text-complete-lighter {
color: $color-complete-lighter !important;
}
.hover-complete {
&:hover {
color: $color-complete !important;
}
}
.text-success {
color: $color-success !important;
}
.text-success-dark {
color: $color-success-dark !important;
}
.text-success-darker {
color: $color-success-darker !important;
}
.text-success-light {
color: $color-success-light !important;
}
.text-success-lighter {
color: $color-success-lighter !important;
}
.hover-success {
&:hover {
color: $color-success !important;
}
}
.text-info {
color: $color-info !important;
}
.text-info-dark {
color: $color-info-dark !important;
}
.text-info-darker {
color: $color-info-darker !important;
}
.text-info-light {
color: $color-info-light !important;
}
.text-info-lighter {
color: $color-info-lighter !important;
}
.hover-warning {
color: $color-warning !important;
}
.hover-info {
&:hover {
color: $color-info !important;
}
}
.text-warning-dark {
color: $color-warning-dark !important;
}
.text-warning-darker {
color: $color-warning-darker !important;
}
.text-warning-light {
color: $color-warning-light !important;
}
.text-warning-lighter {
color: $color-warning-lighter !important;
}
.hover-warning {
&:hover {
color: $color-warning !important;
}
}
.text-danger {
color: $color-danger !important;
}
.text-danger-dark {
color: $color-danger-dark !important;
}
.text-danger-darker {
color: $color-danger-darker !important;
}
.text-danger-light {
color: $color-danger-light !important;
}
.text-danger-lighter {
color: $color-danger-lighter !important;
}
.hover-danger {
&:hover{
color: $color-danger !important;
}
}
.text-primary {
color: $color-primary !important;
}
.text-primary-dark {
color: $color-primary-dark !important;
}
.text-primary-darker {
color: $color-primary-darker !important;
}
.text-primary-light {
color: $color-primary-light !important;
}
.text-primary-lighter {
color: $color-primary-lighter !important;
}
.hover-primary {
&:hover {
color: $color-primary !important;
}
}
/* Text Aligngments
------------------------------------
*/
.text-right {
text-align: right !important;
}
.text-left {
text-align: left !important;
}
.text-center {
text-align: center !important;
}
.text-underline {
text-decoration: underline !important;
}
.pointer {
cursor: pointer !important;
}
/* Labels
------------------------------------
*/
.label {
padding: 3px 9px;
font-size: 11px;
line-height: 1;
text-shadow: none;
background-color: $color-master-light;
font-weight: 600;
color: $color-master;
border-radius: .25em;
}
.label-success {
background-color: $color-success;
color: #fff;
}
.label-warning{
background-color: $color-warning;
color: #fff;
}
.label-important, .label-danger {
background-color: $color-danger;
color: #fff;
}
.label-info{
background-color: $color-success;
color: #fff;
}
.label-inverse {
background-color: $color-complete-dark;
color: #fff;
}
.label-white {
background-color: #fff;
color: $color-master;
}
/* Line-heights
------------------------------------
*/
.lh-normal{
line-height: normal;
}
/* Font Faces
------------------------------------
*/
.font-arial{
font-family: Arial, sans-serif !important;
}
.font-opensans{
font-family: 'Open Sans', sans-serif !important;
}
.font-montserrat{
font-family: 'Montserrat', sans-serif !important;
}
.font-lato{
font-family: 'Lato', sans-serif !important;
}
.font-orbitron{
font-family: 'Orbitron', sans-serif !important;
}
.font-georgia{
font-family: 'Georgia', sans-serif !important;
}
.font-heading{
font-family: "Segoe UI","Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* Wells
------------------------------------
*/
.well {
background-color: $color-master-light;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
border: none;
background-image: none;
&.well-large {
padding: 24px;
width: auto;
}
&.well-small {
padding: 13px;
width: auto;
}
&.green {
background-color: $color-complete;
color: $color-white ;
border: none;
}
}
.overflow-ellipsis{
text-overflow:ellipsis;
overflow: hidden;
white-space: nowrap;
}
.jumbotron {
@include border-radius(0);
p{
font-size: 14px;
font-weight: normal;
margin-bottom: inherit;
&.small{
font-size: 85%;
}
}
}
/* Responsive Handlers : Typo
------------------------------------
*/
@media (max-width: 1400px) {
body, p{
font-size: 13px;
line-height: 20px;
}
h1 {
font-size: 33px;
line-height: 44px;
letter-spacing: -0.08px;
}
h2 {
font-size: 28px;
line-height: 40px;
}
h3 {
font-size: 24px;
line-height: 35.88px;
}
h4 {
font-size: 18px;
line-height: 33.88px;
}
h5{
font-size: 16px;
line-height: 25.88px;
}
small, .small{
font-size: 89%;
line-height: 17px;
}
}
/* For Windows : Fixes
------------------------------------
*/
.windows {
body,
p{
font-size: 13px;
letter-spacing: normal;
}
h3{
font-size: 29px;
line-height: 33px;
}
h4{
font-size: 23px;
line-height: 32px;
}
h5{
font-size: 19px;
line-height: 28px;
font-weight: normal;
}
h1,
h2,
h3,
h4,
h5{
font-weight: 300;
letter-spacing: normal;
}
.jumbotron p{
font-size: 13px;
&.small{
font-size: 85%;
}
}
small,
.small{
// font-size: 85%;
font-size: 89%;
}
}
.alert {
& > p, & > ul {
margin-bottom: 0;
}
}
.table{
& > tbody{
& > tr{
& > td, & > th{
line-height: 1.42857143;
}
}
}
& > tfoot{
& > tr{
& > td, & > th{
line-height: 1.42857143;
}
}
}
& > thead{
& > tr{
& > td, & > th{
line-height: 1.42857143;
}
}
}
}
.fa {
line-height: 18px !important;
}