taiga-front/app/styles/dependencies/typography.scss

250 lines
4.4 KiB
SCSS
Executable File

// Typography
// Font face
@each $font-face in DroidSans, DroidSans-Bold, OpenSans-CondLight-webfont, taiga {
@font-face {
font-family: '#{$font-face}';
src: url('../fonts/#{$font-face}.eot?#iefix') format('embedded-opentype'),
url('../fonts/#{$font-face}.woff') format('woff'),
url('../fonts/#{$font-face}.ttf') format('truetype'),
url('../fonts/#{$font-face}.svg#{$font-face}') format('svg');
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: $blackish;
font-weight: normal;
a {
font-weight: inherit;
}
}
// __Font Sizes__ //
%xsmall {font-size: .5rem;}
%small {font-size: .8rem;}
%medium {font-size: 1rem;}
%large {font-size: 1.2rem;}
%larger {font-size: 1.6rem;}
%xlarge {font-size: 2rem;}
%xxlarge {font-size: 3rem;}
// __Font Types__ //
%title {font-family: 'OpenSans-CondLight-webfont';}
%text {font-family: 'DroidSans';}
%bold {font-family: 'DroidSans-Bold';}
%taiga {font-family: 'taiga';}
h1 {
@extend %xxlarge;
@extend %title;
//-display: flex; // Lo borro porque poner el flex a los h1 se carga los h1 que están centrados.
line-height: 3.4rem;
margin-bottom: 1rem;
text-transform: uppercase;
span {
@extend %xxlarge;
line-height: 3.4rem;
margin-right: .5rem;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: bottom;
white-space: nowrap;
&.green,
&:last-child {
flex-shrink: 0;
}
}
.project-name {
display: inline-block;
max-width: 60%;
}
.project-name-short {
display: inline-block;
max-width: 40%;
}
.green {
color: $green-taiga;
}
.date {
color: $gray-light;
@include ellipsis(500px);
}
}
h2 {
@extend %xlarge;
@extend %title;
margin-bottom: 1rem;
}
p {
margin: 0 0 20px;
img {
margin: 0;
}
}
em { font-style: italic; }
strong {
font-weight: bold;
}
hr {
border: solid #ddd;
border-width: 1px 0 0;
clear: both;
height: 0;
margin: 10px 0 30px;
}
// __Links__
a,
a:visited {
color: $grayer;
text-decoration: none;
&:hover {
@include transition (color .3s linear);
color: $green-taiga;
}
}
// Taiga Icons
[data-icon]:before {
content: attr(data-icon);
font-family: 'taiga' !important;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-style: normal !important;
font-variant: normal !important;
font-weight: normal !important;
line-height: 1;
speak: none;
text-transform: none !important;
}
[class^='icon-']:before,
[class*=' icon-']:before {
font-family: 'taiga' !important;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-style: normal !important;
font-variant: normal !important;
font-weight: normal !important;
line-height: 1;
speak: none;
text-transform: none !important;
}
.icon-backlog:before {
content: 'a';
}
.icon-issues:before {
content: 'b';
}
.icon-kanban:before {
content: 'c';
}
.icon-search:before {
content: 'd';
}
.icon-video:before {
content: 'e';
}
.icon-wiki:before {
content: 'f';
}
.icon-settings:before {
content: 'g';
}
.icon-move:before {
content: 'h';
}
.icon-filter:before {
content: 'i';
}
.icon-arrow-up:before {
content: 'j';
}
.icon-arrow-right:before {
content: 'k';
}
.icon-arrow-left:before {
content: 'l';
}
.icon-arrow-bottom:before {
content: 'm';
}
.icon-edit:before {
content: 'n';
}
.icon-delete:before {
content: 'o';
}
.icon-iocaine:before {
content: 'p';
}
.icon-drag-h:before {
content: 'q';
}
.icon-drag-v:before {
content: 'r';
}
.icon-document:before {
content: 's';
}
.icon-plus:before {
content: 't';
}
.icon-reload:before {
content: 'u';
}
.icon-warning:before {
content: 'v';
}
.icon-notification-error:before {
content: 'w';
}
.icon-github:before {
content: 'x';
}
.icon-check-square:before {
content: 'y';
}
.icon-warning-alt:before {
content: 'z';
}
.icon-floppy:before {
content: 'A';
}
.icon-comment:before {
content: 'B';
}
.icon-documents:before {
content: 'C';
}
.icon-attachments:before {
content: 'D';
}
.icon-caret-up:before {
content: 'F';
}
.icon-caret-down:before {
content: 'G';
}
.icon-bulk:before {
content: 'H';
}
.icon-idea:before {
content: 'I';
}
.icon-spinner:before {
content: 'E';
}