work on typography

This commit is contained in:
Val Erastov (xibyte) 2020-05-21 17:17:06 -07:00
parent e6244ed8fc
commit 0014150207
15 changed files with 141 additions and 28 deletions

View file

@ -0,0 +1,19 @@
.dialog {
}
.dialog-content {
}
.dialog-buttons {
}
.dialog-ok {
}
.dialog-cancel {
}

View file

@ -1,6 +1,6 @@
.documentation-content { .documentation-content {
background: #323444; background: #323444;
font-size: 13px; font-size: 16px;
padding: 10px; padding: 10px;
} }

View file

@ -0,0 +1,24 @@
h1, .h1 {
font-size: 2em;
font-weight: bold;
}
h2, .h2 {
font-size: 1.5em;
font-weight: bold;
}
h3, .h3 {
font-size: 1.17em;
font-weight: bold;
}
h4, .h4 {
font-size: 1em;
font-weight: bold;
}
h5, .h5 {
font-size: .83em;
font-weight: bold;
}
h6, .h6 {
font-size: .67em;
font-weight: bold;
}

View file

@ -0,0 +1,46 @@
.icon-16 svg {
width: 16px;
height: 16px
}
.icon-32 svg {
width: 32px;
height: 32px
}
.icon-48 svg {
width: 48px;
height: 48px
}
.icon-64 svg {
width: 64px;
height: 64px
}
.icon-spin {
-webkit-animation: icon-spin 2s infinite linear;
animation: icon-spin 2s infinite linear;
}
@-webkit-keyframes icon-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes icon-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}

View file

@ -1,4 +1,6 @@
@import "./minireset.less"; @import "./minireset.less";
@import "./typography.less";
@import "./headers";
@import "../theme.less"; @import "../theme.less";
@import "../mixins.less"; @import "../mixins.less";
@import "./main.less"; @import "./main.less";
@ -8,4 +10,6 @@
@import "./svg.less"; @import "./svg.less";
@import "./icons.less"; @import "./icons.less";
@import "./scroll"; @import "./scroll";
@import "./tree";
@import "./documentation"; @import "./documentation";
@import "./dialog.less";

View file

@ -1,24 +1,22 @@
html, pre { html, pre {
font: @font-size 'Lucida Grande', sans-serif; .regular-typography;
font-family: 'Roboto', 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, sans-serif;
} }
body { body {
background-color: @bg-color; background-color: @bg-color;
color: @font-color; color: @font-color;
font-family: 'Roboto', 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, sans-serif;
} }
iframe { iframe {
border: 0; border: 0;
} }
.disable-selection { .disable-selection {
.no-selection(); .no-selection();
} }
.compact-font, .condensed {
font-family: 'Roboto Condensed', 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, sans-serif;
}
pre { pre {
line-height: 1.5; line-height: 1.5;
@ -26,4 +24,8 @@ pre {
.hover:hover { .hover:hover {
background-color: @color-highlight; background-color: @color-highlight;
} }
path {
stroke: currentColor;
}

View file

@ -1,5 +1,5 @@
table { table {
font-size: @font-size; .mid-typography;
} }
table.striped { table.striped {

View file

@ -0,0 +1,38 @@
.svgSize(@size) {
svg {
width: @size;
height: @size;
}
}
.small-typography {
font-size: 12px;
line-height: 1.3;
.svgSize(16px);
}
.mid-typography {
font-size: 13px;
line-height: 1.35;
.svgSize(16px);
}
.regular-typography {
font-size: 14px;
line-height: 1.4;
.svgSize(17px);
}
.comfort-typography {
font-size: 16px;
line-height: 1.5;
.svgSize(18px)
}
.condensed {
font-family: 'Roboto Condensed', 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, sans-serif;
}
.padded {
padding: 0.5em;
}

View file

@ -1,19 +0,0 @@
.icon-16 svg {
width: 16px;
height: 16px
}
.icon-32 svg {
width: 32px;
height: 32px
}
.icon-48 svg {
width: 48px;
height: 48px
}
.icon-64 svg {
width: 64px;
height: 64px
}

View file

@ -26,7 +26,6 @@
@color-text-highlight: #9cdaf7; @color-text-highlight: #9cdaf7;
@font-size: 11px;
//@work-area-toolbar-bg-color: ; //@work-area-toolbar-bg-color: ;
//@work-area-toolbar-font-color: ; //@work-area-toolbar-font-color: ;