Welcome to mirror list, hosted at ThFree Co, Russian Federation.

main.scss « src « scss « examples - github.com/twbs/rfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8e7250f2d56689ed0bef72eb200fbe94637a412f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
@import "../../../scss";

// font-size property with `px` unit
.selector-1 {
  background-color: #f00;
  width: 300px;
  @include font-size(32px);
}

// font-size property with `rem` unit
.selector-2 {
  @include font-size(2rem);
}

// font-size property with !important
.selector-3 {
  @include font-size(2rem !important);
}

// rfs shorthand
.selector-4 {
  @include rfs(2rem);
}

// not supported unit
.selector-5 {
  @include font-size(2em);
}

// special value
.selector-6 {
  @include font-size(inherit);
}

// font-size property inside @support-query
@supports (display: flex) {
  .selector-7 {
    @include rfs(28px);
  }
}

// flex property with unitless values
.selector-8 {
  @include rfs(0 999 32rem, flex);
}

// padding property
.selector-9 {
  @include rfs(2rem, $property: padding);
}

// padding shorthands
.selector-10 {
  @include padding(2rem);
}

.selector-11 {
  @include padding-top(2rem);
}

.selector-12 {
  @include padding-right(2rem);
}

.selector-13 {
  @include padding-bottom(2rem);
}

.selector-14 {
  @include padding-left(2rem);
}

// margin shorthands
.selector-15 {
  @include margin(2rem);
}

.selector-16 {
  @include margin-top(2rem);
}

.selector-17 {
  @include margin-right(2rem);
}

.selector-18 {
  @include margin-bottom(2rem);
}

.selector-19 {
  @include margin-left(2rem);
}

// Multiple values
.selector-20 {
  @include margin(2rem 3rem);
}

// Multiple values with important
.selector-21 {
  @include margin(2rem 3rem !important);
}

// Zero test
.selector-22 {
  @include rfs(0);
}

// Zero combination test
.selector-23 {
  @include margin(0 3rem);
}

// Value with comma
.selector-24 {
  @include rfs(0 0 2rem #f00 #{","} 0 0 3rem #0f0, box-shadow);
}

// Custom properties
.selector-25 {
  @include rfs(3rem, --value);
}

// Test small value
.selector-26 {
  @include font-size(10px);
}

// Negative units
.selector-27 {
  @include margin(-3rem);
}

// Small negative unit
.selector-28 {
  @include margin(-.5rem);
}