UNPKG

1.18 kBSCSSView Raw
1// Do not place here anything but variables and mixins
2
3$ring-unit: 8px;
4
5@mixin ring-clearfix() {
6 &:after {
7 clear: both;
8 content: '';
9 display: block;
10 }
11}
12
13@mixin ring-font($font-size: var(--ring-font-size)) {
14 color: var(--ring-text-color);
15
16 // This is a carefully tested set of fonts, do not touch without consulting with UI designers
17 font-size: $font-size;
18 font-family: var(--ring-font-family);
19}
20
21// To be used at large sizes
22// As close as possible to Helvetica Neue Thin (to replace Gotham)
23@mixin ring-thin-font() {
24 font-weight: 100; // Renders Helvetica Neue UltraLight on OS X
25 font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
26}
27
28@mixin ring-monospace-font() {
29 font-family: var(--ring-font-family-monospace);
30}
31
32@mixin ring-vertical-compensation($compensation: -2px, $position: relative) {
33 position: $position;
34 top: $compensation;
35}
36
37@mixin ring-input-disabled() {
38 border-color: var(--ring-border-disabled-color);
39 background-color: var(--ring-sidebar-background-color);
40 color: var(--ring-disabled-color);
41}
42
43@mixin ring-ellipsis() {
44 overflow: hidden;
45 white-space: nowrap;
46 text-overflow: ellipsis;
47}