oulu 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +15 -0
- data/Rakefile +1 -0
- data/app/assets/stylesheets/_oulu-base.sass +64 -0
- data/app/assets/stylesheets/_oulu.sass +9 -0
- data/app/assets/stylesheets/helpers/_block.sass +89 -0
- data/app/assets/stylesheets/helpers/_border.sass +16 -0
- data/app/assets/stylesheets/helpers/_font-awsome.sass +11 -0
- data/app/assets/stylesheets/helpers/_margin-padding.sass +110 -0
- data/app/assets/stylesheets/helpers/_position.sass +9 -0
- data/app/assets/stylesheets/helpers/_typoglaphy.sass +26 -0
- data/app/assets/stylesheets/modules/buttons/_button-base.sass +61 -0
- data/app/assets/stylesheets/modules/buttons/_button-helper.sass +33 -0
- data/app/assets/stylesheets/modules/buttons/_buttons.sass +59 -0
- data/app/assets/stylesheets/modules/buttons/styles/_border.sass +24 -0
- data/app/assets/stylesheets/modules/buttons/styles/_flat-emboss.sass +24 -0
- data/app/assets/stylesheets/modules/buttons/styles/_flat-round.sass +23 -0
- data/app/assets/stylesheets/modules/buttons/styles/_material.sass +89 -0
- data/app/assets/stylesheets/modules/buttons/styles/_normal.sass +42 -0
- data/app/assets/stylesheets/modules/navs/_tabs-nav.sass +38 -0
- data/app/assets/stylesheets/options/amazlet/_amazlet.sass +32 -0
- data/app/assets/stylesheets/options/glitch/_glitch.sass +31 -0
- data/app/assets/stylesheets/options/web-fonts/_cousine.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_droid-sans.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_font-awsome.sass +17 -0
- data/app/assets/stylesheets/options/web-fonts/_icomoon.sass +10 -0
- data/app/assets/stylesheets/options/web-fonts/_inconsolata.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_lato.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_merriweather-sans.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_montserrat.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_old-standard.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_open-sans.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_podkova.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_pt-sans.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_raleway.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_roboto-condensed.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_roboto.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_satisfy.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_source-code-pro.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_source-sans-pro.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_special-elite.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_tauri.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_ubuntu-mono.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_ubuntu.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_varela-round.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_vt323.sass +11 -0
- data/app/assets/stylesheets/settings/functions/_animation.sass +90 -0
- data/app/assets/stylesheets/settings/functions/_background.sass +54 -0
- data/app/assets/stylesheets/settings/functions/_bool.sass +5 -0
- data/app/assets/stylesheets/settings/functions/_border.sass +45 -0
- data/app/assets/stylesheets/settings/functions/_color.sass +79 -0
- data/app/assets/stylesheets/settings/functions/_content.sass +5 -0
- data/app/assets/stylesheets/settings/functions/_cursor.sass +5 -0
- data/app/assets/stylesheets/settings/functions/_display.sass +5 -0
- data/app/assets/stylesheets/settings/functions/_image.sass +8 -0
- data/app/assets/stylesheets/settings/functions/_length.sass +20 -0
- data/app/assets/stylesheets/settings/functions/_list.sass +11 -0
- data/app/assets/stylesheets/settings/functions/_map.sass +5 -0
- data/app/assets/stylesheets/settings/functions/_math.sass +31 -0
- data/app/assets/stylesheets/settings/functions/_number.sass +95 -0
- data/app/assets/stylesheets/settings/functions/_position.sass +80 -0
- data/app/assets/stylesheets/settings/functions/_reverse.sass +22 -0
- data/app/assets/stylesheets/settings/functions/_string.sass +5 -0
- data/app/assets/stylesheets/settings/functions/_text.sass +46 -0
- data/app/assets/stylesheets/settings/initializers/_reset.sass +84 -0
- data/app/assets/stylesheets/settings/initializers/_sanitize.sass +262 -0
- data/app/assets/stylesheets/settings/mixins/_animation.sass +28 -0
- data/app/assets/stylesheets/settings/mixins/_background.sass +33 -0
- data/app/assets/stylesheets/settings/mixins/_balloon-tail.sass +100 -0
- data/app/assets/stylesheets/settings/mixins/_basic-font.sass +30 -0
- data/app/assets/stylesheets/settings/mixins/_block.sass +61 -0
- data/app/assets/stylesheets/settings/mixins/_border-radius.sass +43 -0
- data/app/assets/stylesheets/settings/mixins/_border.sass +28 -0
- data/app/assets/stylesheets/settings/mixins/_filters.sass +5 -0
- data/app/assets/stylesheets/settings/mixins/_form.sass +10 -0
- data/app/assets/stylesheets/settings/mixins/_grid.sass +93 -0
- data/app/assets/stylesheets/settings/mixins/_ie-hacks.sass +8 -0
- data/app/assets/stylesheets/settings/mixins/_image.sass +5 -0
- data/app/assets/stylesheets/settings/mixins/_line.sass +32 -0
- data/app/assets/stylesheets/settings/mixins/_link.sass +39 -0
- data/app/assets/stylesheets/settings/mixins/_list.sass +20 -0
- data/app/assets/stylesheets/settings/mixins/_margin-padding.sass +69 -0
- data/app/assets/stylesheets/settings/mixins/_overlay.sass +5 -0
- data/app/assets/stylesheets/settings/mixins/_positions.sass +33 -0
- data/app/assets/stylesheets/settings/mixins/_rem.sass +56 -0
- data/app/assets/stylesheets/settings/mixins/_resets.sass +49 -0
- data/app/assets/stylesheets/settings/mixins/_responsive-utilities.sass +196 -0
- data/app/assets/stylesheets/settings/mixins/_table.sass +32 -0
- data/app/assets/stylesheets/settings/mixins/_text.sass +44 -0
- data/app/assets/stylesheets/settings/mixins/grid/_grid-framework.scss +81 -0
- data/app/assets/stylesheets/settings/mixins/grid/_grid.scss +122 -0
- data/app/assets/stylesheets/settings/variables/_default.sass +150 -0
- data/bower.json +34 -0
- data/index.js +7 -0
- data/oulu.gemspec +26 -0
- data/package.json +20 -0
- metadata +197 -0
@@ -0,0 +1,262 @@
|
|
1
|
+
/*! sanitize.css v3.0.0 | CC0 1.0 Public Domain | github.com/10up/sanitize.css
|
2
|
+
|
3
|
+
$root-background-color: #FFFFFF !default
|
4
|
+
$root-box-sizing: border-box !default
|
5
|
+
$root-color: #000000 !default
|
6
|
+
$root-cursor: default !default
|
7
|
+
$root-font-family: sans-serif !default
|
8
|
+
$root-font-size: 100% !default
|
9
|
+
$root-line-height: 1.5 !default
|
10
|
+
$root-text-rendering: optimizeLegibility !default
|
11
|
+
|
12
|
+
$anchor-text-decoration: none !default
|
13
|
+
$background-repeat: no-repeat !default
|
14
|
+
$form-element-background-color: transparent !default
|
15
|
+
$form-element-min-height: if(unitless($root-line-height), #{$root-line-height}em, if(unit($root-line-height) != "%", $root-line-height, null)) !default
|
16
|
+
$media-element-vertical-align: middle !default
|
17
|
+
$monospace-font-family: monospace !default
|
18
|
+
$nav-list-style: none !default
|
19
|
+
$selection-background-color: #B3D4FC !default
|
20
|
+
$selection-color: #ffffff !default
|
21
|
+
$selection-text-shadow: none !default
|
22
|
+
$small-font-size: 75% !default
|
23
|
+
$table-border-collapse: collapse !default
|
24
|
+
$table-border-spacing: 0 !default
|
25
|
+
$textarea-resize: vertical !default
|
26
|
+
|
27
|
+
/*
|
28
|
+
* Normalization
|
29
|
+
|
30
|
+
audio:not([controls])
|
31
|
+
display: none // Chrome 44-, iOS 8+, Safari 9+
|
32
|
+
|
33
|
+
button
|
34
|
+
overflow: visible // Internet Explorer 11-
|
35
|
+
-webkit-appearance: button // iOS 8+
|
36
|
+
|
37
|
+
details
|
38
|
+
display: block // Edge 12+, Firefox 40+, Internet Explorer 11-, Windows Phone 8.1+
|
39
|
+
|
40
|
+
html
|
41
|
+
-ms-overflow-style: -ms-autohiding-scrollbar // Edge 12+, Internet Explorer 11-
|
42
|
+
overflow-y: scroll // All browsers without overlaying scrollbars
|
43
|
+
-webkit-text-size-adjust: 100% // iOS 8+
|
44
|
+
|
45
|
+
input
|
46
|
+
-webkit-border-radius: 0 // iOS 8+
|
47
|
+
|
48
|
+
&[type="button"], &[type="reset"], &[type="submit"]
|
49
|
+
-webkit-appearance: button // iOS 8+
|
50
|
+
|
51
|
+
&[type="number"]
|
52
|
+
width: auto // Firefox 36+
|
53
|
+
|
54
|
+
&[type="search"]
|
55
|
+
-webkit-appearance: textfield // Chrome 45+, Safari 9+
|
56
|
+
|
57
|
+
&::-webkit-search-cancel-button,
|
58
|
+
&::-webkit-search-decoration
|
59
|
+
-webkit-appearance: none // Chrome 45+, Safari 9+
|
60
|
+
|
61
|
+
main
|
62
|
+
display: block // Android 4.3-, Internet Explorer 11-, Windows Phone 8.1+
|
63
|
+
|
64
|
+
pre
|
65
|
+
overflow: auto // Internet Explorer 11-
|
66
|
+
|
67
|
+
progress
|
68
|
+
display: inline-block // Internet Explorer 11-, Windows Phone 8.1+
|
69
|
+
|
70
|
+
small
|
71
|
+
font-size: $small-font-size // All browsers
|
72
|
+
|
73
|
+
summary
|
74
|
+
display: block // Firefox 40+, Internet Explorer 11-, Windows Phone 8.1+
|
75
|
+
|
76
|
+
svg:not(:root)
|
77
|
+
overflow: hidden // Internet Explorer 11-
|
78
|
+
|
79
|
+
template
|
80
|
+
display: none // Android 4.3-, Internet Explorer 11-, iOS 7-, Safari 7-, Windows Phone 8.1+
|
81
|
+
|
82
|
+
textarea
|
83
|
+
overflow: auto // Edge 12+, Internet Explorer 11-
|
84
|
+
|
85
|
+
[hidden]
|
86
|
+
display: none // Internet Explorer 10-
|
87
|
+
|
88
|
+
/*
|
89
|
+
* Universal inheritance
|
90
|
+
|
91
|
+
*,
|
92
|
+
::before,
|
93
|
+
::after
|
94
|
+
box-sizing: inherit
|
95
|
+
|
96
|
+
*
|
97
|
+
font-size: inherit
|
98
|
+
line-height: inherit
|
99
|
+
|
100
|
+
::before,
|
101
|
+
::after
|
102
|
+
text-decoration: inherit
|
103
|
+
vertical-align: inherit
|
104
|
+
|
105
|
+
/*
|
106
|
+
* Opinionated defaults
|
107
|
+
|
108
|
+
// specify the border style and width of all elements
|
109
|
+
|
110
|
+
*,
|
111
|
+
::before,
|
112
|
+
::after
|
113
|
+
border-style: solid
|
114
|
+
border-width: 0
|
115
|
+
|
116
|
+
// specify the core styles of all elements
|
117
|
+
|
118
|
+
*
|
119
|
+
background-repeat: $background-repeat
|
120
|
+
margin: 0
|
121
|
+
padding: 0
|
122
|
+
|
123
|
+
// specify the root styles of the document
|
124
|
+
|
125
|
+
\:root
|
126
|
+
background-color: $root-background-color
|
127
|
+
box-sizing: $root-box-sizing
|
128
|
+
color: $root-color
|
129
|
+
cursor: $root-cursor
|
130
|
+
font: #{$root-font-size}/#{$root-line-height} $root-font-family
|
131
|
+
text-rendering: $root-text-rendering
|
132
|
+
|
133
|
+
// specify the text decoration of anchors
|
134
|
+
|
135
|
+
a
|
136
|
+
text-decoration: $anchor-text-decoration
|
137
|
+
|
138
|
+
// specify the alignment of media elements
|
139
|
+
|
140
|
+
audio,
|
141
|
+
canvas,
|
142
|
+
iframe,
|
143
|
+
img,
|
144
|
+
svg,
|
145
|
+
video
|
146
|
+
vertical-align: $media-element-vertical-align
|
147
|
+
|
148
|
+
// specify the background color of form elements
|
149
|
+
|
150
|
+
button,
|
151
|
+
input,
|
152
|
+
select,
|
153
|
+
textarea
|
154
|
+
background-color: $form-element-background-color
|
155
|
+
|
156
|
+
// specify the inherited color and font of form elements
|
157
|
+
|
158
|
+
button,
|
159
|
+
input,
|
160
|
+
select,
|
161
|
+
textarea
|
162
|
+
color: inherit
|
163
|
+
font-family: inherit
|
164
|
+
font-style: inherit
|
165
|
+
font-weight: inherit
|
166
|
+
|
167
|
+
// specify the minimum height of form elements
|
168
|
+
|
169
|
+
button,
|
170
|
+
[type="button"],
|
171
|
+
[type="date"],
|
172
|
+
[type="datetime"],
|
173
|
+
[type="datetime-local"],
|
174
|
+
[type="email"],
|
175
|
+
[type="month"],
|
176
|
+
[type="number"],
|
177
|
+
[type="password"],
|
178
|
+
[type="reset"],
|
179
|
+
[type="search"],
|
180
|
+
[type="submit"],
|
181
|
+
[type="tel"],
|
182
|
+
[type="text"],
|
183
|
+
[type="time"],
|
184
|
+
[type="url"],
|
185
|
+
[type="week"],
|
186
|
+
select,
|
187
|
+
textarea
|
188
|
+
min-height: $form-element-min-height
|
189
|
+
|
190
|
+
// specify the font family of code elements
|
191
|
+
|
192
|
+
code,
|
193
|
+
kbd,
|
194
|
+
pre,
|
195
|
+
samp
|
196
|
+
font-family: $monospace-font-family, monospace
|
197
|
+
|
198
|
+
// specify the list style of nav lists
|
199
|
+
|
200
|
+
nav ol,
|
201
|
+
nav ul
|
202
|
+
list-style: $nav-list-style
|
203
|
+
|
204
|
+
// specify the standard appearance of selects
|
205
|
+
|
206
|
+
select
|
207
|
+
-moz-appearance: none // Firefox 40+
|
208
|
+
-webkit-appearance: none // Chrome 45+
|
209
|
+
|
210
|
+
&::-ms-expand
|
211
|
+
display: none // Edge 12+, Internet Explorer 11-
|
212
|
+
|
213
|
+
&::-ms-value
|
214
|
+
color: currentColor // Edge 12+, Internet Explorer 11-
|
215
|
+
|
216
|
+
// specify the border styling of tables
|
217
|
+
|
218
|
+
table
|
219
|
+
border-collapse: $table-border-collapse
|
220
|
+
border-spacing: $table-border-spacing
|
221
|
+
|
222
|
+
// specify the resizability of textareas
|
223
|
+
|
224
|
+
textarea
|
225
|
+
resize: $textarea-resize
|
226
|
+
|
227
|
+
// specify the background color, font color and drop shadow of text selections
|
228
|
+
|
229
|
+
::-moz-selection
|
230
|
+
background-color: $selection-background-color // required when declaring ::selection
|
231
|
+
color: $selection-color
|
232
|
+
text-shadow: $selection-text-shadow
|
233
|
+
|
234
|
+
::selection
|
235
|
+
background-color: $selection-background-color // required when declaring ::selection
|
236
|
+
color: $selection-color
|
237
|
+
text-shadow: $selection-text-shadow
|
238
|
+
|
239
|
+
// specify the progress cursor of updating elements
|
240
|
+
|
241
|
+
[aria-busy="true"]
|
242
|
+
cursor: progress
|
243
|
+
|
244
|
+
// specify the pointer cursor of trigger elements
|
245
|
+
|
246
|
+
[aria-controls]
|
247
|
+
cursor: pointer
|
248
|
+
|
249
|
+
// specify the unstyled cursor of disabled, not-editable, or otherwise inoperable elements
|
250
|
+
|
251
|
+
[aria-disabled]
|
252
|
+
cursor: default
|
253
|
+
|
254
|
+
// specify the style of visually hidden yet accessible elements
|
255
|
+
|
256
|
+
[hidden][aria-hidden="false"]
|
257
|
+
clip: rect(0 0 0 0)
|
258
|
+
display: inherit
|
259
|
+
position: absolute
|
260
|
+
|
261
|
+
&:focus
|
262
|
+
clip: auto
|
@@ -0,0 +1,28 @@
|
|
1
|
+
=animations($value1: null, $value2: null, $value3: null, $value4: null, $value5: null, $value6: null, $value7: null, $value8: null, $value9: null, $value10: null)
|
2
|
+
$list: $value1 $value2 $value3 $value4 $value5 $value6 $value7 $value8 $value9 $value10
|
3
|
+
$animation-names: ()
|
4
|
+
$animation-durations: ()
|
5
|
+
$animation-timing-functions: ()
|
6
|
+
$animation-delays: ()
|
7
|
+
$animation-iteration-counts: ()
|
8
|
+
$animation-directions: ()
|
9
|
+
$animation-fill-modes: ()
|
10
|
+
$animation-play-states: ()
|
11
|
+
@each $value in $list
|
12
|
+
@for $i from 1 through length($value)
|
13
|
+
$animation-names: append($animation-names, if(animation_name(nth($value, $i)), nth($value, $i), null), comma)
|
14
|
+
$animation-durations: append($animation-durations, if(animation_duration(nth($value, $i)), nth($value, $i), null), comma)
|
15
|
+
$animation-timing-functions: append($animation-timing-functions, if(animation_timing_function(nth($value, $i)), nth($value, $i), null), comma)
|
16
|
+
$animation-delays: append($animation-delays, if(animation_delay(nth($value, $i)), animation_delay(nth($value, $i)), null), comma)
|
17
|
+
$animation-iteration-counts: append($animation-iteration-counts, if(animation_iteration_count(nth($value, $i)), nth($value, $i), null), comma)
|
18
|
+
$animation-directions: append($animation-directions, if(animation_direction(nth($value, $i)), nth($value, $i), null), comma)
|
19
|
+
$animation-fill-modes: append($animation-fill-modes, if(animation_fill_mode(nth($value, $i)), nth($value, $i), null), comma)
|
20
|
+
$animation-play-states: append($animation-play-states, if(animation_play_state(nth($value, $i)), nth($value, $i), null), comma)
|
21
|
+
+animation-name($animation-names)
|
22
|
+
+animation_duration($animation-durations)
|
23
|
+
+animation_timing_function($animation-timing-functions)
|
24
|
+
+animation-delay($animation-delays)
|
25
|
+
+animation-iteration-count($animation-iteration-counts)
|
26
|
+
+animation-direction($animation-directions)
|
27
|
+
+animation-fill-mode($animation-fill-modes)
|
28
|
+
+animation-play-state($animation-play-states)
|
@@ -0,0 +1,33 @@
|
|
1
|
+
=bg-size($value)
|
2
|
+
@if list($value)
|
3
|
+
@if str-slice(nth($value, 1), 1, 1) == '/'
|
4
|
+
$bg-size-value: str-slice(nth($value, 1), 2) nth($value, 2)
|
5
|
+
+background-size($bg-size-value)
|
6
|
+
@else
|
7
|
+
+background-size($value)
|
8
|
+
@else
|
9
|
+
@if str-slice(nth($value, 1), 1, 1) == '/'
|
10
|
+
$bg-size-value: str-slice(nth($value, 1), 2)
|
11
|
+
+background-size($bg-size-value)
|
12
|
+
@else
|
13
|
+
+background-size($value)
|
14
|
+
|
15
|
+
// どこでも background-color と background-image と background-position と background-repeat が書ける設定
|
16
|
+
=background-basics($value)
|
17
|
+
@if background_color($value)
|
18
|
+
background-color: $value
|
19
|
+
@else if background_image($value)
|
20
|
+
background-image: image_url("#{$value}")
|
21
|
+
@else if background_position($value)
|
22
|
+
background-position: $value
|
23
|
+
@else if background_repeat($value)
|
24
|
+
background-repeat: $value
|
25
|
+
@else if background_attachment($value)
|
26
|
+
background-attachment: $value
|
27
|
+
@else if background_size($value)
|
28
|
+
+bg-size($value)
|
29
|
+
|
30
|
+
// +bg(black 'image.png' (left center) no-repeat fixed (/ 20px 30px))
|
31
|
+
=bg($value)
|
32
|
+
@for $i from 1 through length($value)
|
33
|
+
+background-basics(nth($value, $i))
|
@@ -0,0 +1,100 @@
|
|
1
|
+
=balloon-tail-setting($tail-direction: false, $tail-color: false)
|
2
|
+
position: absolute
|
3
|
+
content: ""
|
4
|
+
display: block
|
5
|
+
+border(all, solid transparent)
|
6
|
+
+border(reverse($tail-direction), $tail-color)
|
7
|
+
|
8
|
+
=tail-border-setting($tail-direction, $tail-width, $tail-height)
|
9
|
+
+border(horizontal, if(position_vertical($tail-direction), $tail-width, $tail-height))
|
10
|
+
+border(vertical, if(position_vertical($tail-direction), $tail-height, $tail-width))
|
11
|
+
+rem($tail-direction, $tail-height*2*-1)
|
12
|
+
|
13
|
+
=tail-position-manual($tail-direction: false, $tail-border-color: false, $parent-boder-width: false, $tail-position-manuals: false)
|
14
|
+
@each $key, $value in $tail-position-manuals
|
15
|
+
@if position_vertical($tail-direction) and position_horizontal($key)
|
16
|
+
// 矢印の向きが上下で manual が left or right の場合
|
17
|
+
+rem($key, $value + if($tail-border-color, $parent-boder-width, 0))
|
18
|
+
@else if position_horizontal($tail-direction) and position_vertical($key)
|
19
|
+
// 矢印の向きが左右で manual が top or bottom の場合
|
20
|
+
+rem($key, $value + if($tail-border-color, $parent-boder-width, 0))
|
21
|
+
@else if reverse($tail-direction) == $key
|
22
|
+
// 上向き矢印 で manual が bottom の場合 or 下向き矢印 で manual が top の場合
|
23
|
+
+rem($key, $value - if($tail-border-color, 0, $parent-boder-width))
|
24
|
+
|
25
|
+
=tail-border-position-manual($tail-direction: false, $tail-position-manuals: false)
|
26
|
+
@each $key, $value in $tail-position-manuals
|
27
|
+
@if position_vertical($tail-direction) and position_horizontal($key)
|
28
|
+
//矢印の向きが上下で manual が left or right の場合
|
29
|
+
+rem($key, $value)
|
30
|
+
@else if position_horizontal($tail-direction) and position_vertical($key)
|
31
|
+
// 矢印の向きが左右で manual が top or bottom の場合
|
32
|
+
+rem($key, $value)
|
33
|
+
@else if reverse($tail-direction) == $key
|
34
|
+
// 上向き矢印 で manual が bottom の場合 or 下向き矢印 で manual が top の場合
|
35
|
+
+rem($key, $value)
|
36
|
+
|
37
|
+
// +balloon-tail(top red 12px 16px 1px, left 20px, blck)
|
38
|
+
=balloon-tail($tail, $tail-position-manual: false, $tail-border-color: false)
|
39
|
+
// $tail
|
40
|
+
$tail-direction: optional_nth($tail, 1)
|
41
|
+
$tail-color: optional_nth($tail, 2)
|
42
|
+
$tail-width: optional_nth($tail, 3, 0)
|
43
|
+
$tail-height: optional_nth($tail, 4, 0)
|
44
|
+
$parent-boder-width: optional_nth($tail, 5, 0)
|
45
|
+
//$tail-position-manual
|
46
|
+
$tail-position-manual-direction1: optional_nth($tail-position-manual, 1)
|
47
|
+
$tail-position-manual-value1: optional_nth($tail-position-manual, 2)
|
48
|
+
$tail-position-manual-direction2: optional_nth($tail-position-manual, 3)
|
49
|
+
$tail-position-manual-value2: optional_nth($tail-position-manual, 4)
|
50
|
+
$tail-position-manuals: ($tail-position-manual-direction1: $tail-position-manual-value1, $tail-position-manual-direction2: $tail-position-manual-value2)
|
51
|
+
&:#{if($tail-border-color, after, before)}
|
52
|
+
+balloon-tail-setting($tail-direction, $tail-color)
|
53
|
+
@if position_vertical($tail-direction)
|
54
|
+
// 矢印の向きが上下
|
55
|
+
+border(vertical, $tail-height)
|
56
|
+
+border(horizontal, $tail-width/2)
|
57
|
+
+rem($tail-direction, $tail-height*2*-1 - if($tail-border-color, 0, $parent-boder-width))
|
58
|
+
@if not $tail-position-manual or (length($tail-position-manual) == 2 and position_vertical($tail-position-manual-direction1))
|
59
|
+
// manual なし、または 一つだけ指定 上下方向 の場合
|
60
|
+
left: 50%
|
61
|
+
+rem('margin-left', $tail-width/2*-1)
|
62
|
+
@if $tail-position-manual
|
63
|
+
+tail-position-manual($tail-direction, $tail-border-color, $parent-boder-width, $tail-position-manuals)
|
64
|
+
@if position_horizontal($tail-direction)
|
65
|
+
// 矢印の向きが左右
|
66
|
+
+border(horizontal, $tail-height)
|
67
|
+
+border(vertical, $tail-width/2)
|
68
|
+
+rem($tail-direction, $tail-height*2*-1 - if($tail-border-color, 0, $parent-boder-width))
|
69
|
+
@if not $tail-position-manual or (length($tail-position-manual) == 2 and position_horizontal($tail-position-manual-direction1))
|
70
|
+
// manual なし、または 一つだけ指定 上下方向 の場合
|
71
|
+
top: 50%
|
72
|
+
+rem('margin-top', ($tail-width/2)*-1)
|
73
|
+
@if $tail-position-manual
|
74
|
+
+tail-position-manual($tail-direction, $tail-border-color, $parent-boder-width, $tail-position-manuals)
|
75
|
+
|
76
|
+
@if $tail-border-color
|
77
|
+
// tail border があるとき - 以下 tail-border の設定
|
78
|
+
&:before
|
79
|
+
$tail-width: round($tail-width + $parent-boder-width*2)/2
|
80
|
+
$tail-height: round($tail-height + $parent-boder-width*2)
|
81
|
+
$tail-color: $tail-border-color
|
82
|
+
+balloon-tail-setting($tail-direction, $tail-color)
|
83
|
+
@if position_vertical($tail-direction)
|
84
|
+
// 矢印の向きが上下
|
85
|
+
+tail-border-setting($tail-direction, $tail-width, $tail-height)
|
86
|
+
@if not $tail-position-manual or (length($tail-position-manual) == 2 and position_vertical($tail-position-manual-direction1))
|
87
|
+
// manual なし もしくは 一つだけ指定 上下方向 の場合
|
88
|
+
left: 50%
|
89
|
+
+rem('margin-left', round($tail-width*-1))
|
90
|
+
@if $tail-position-manual
|
91
|
+
+tail-border-position-manual($tail-direction, $tail-position-manuals)
|
92
|
+
@if position_horizontal($tail-direction)
|
93
|
+
// 矢印の向きが左右
|
94
|
+
+tail-border-setting($tail-direction, $tail-width, $tail-height)
|
95
|
+
@if not $tail-position-manual or (length($tail-position-manual) == 2 and position_horizontal($tail-position-manual-direction1))
|
96
|
+
// manual なし もしくは 一つだけ指定 左右方向 の場合
|
97
|
+
top: 50%
|
98
|
+
+rem('margin-top', $tail-width*-1)
|
99
|
+
@if $tail-position-manual
|
100
|
+
+tail-border-position-manual($tail-direction, $tail-position-manuals)
|
@@ -0,0 +1,30 @@
|
|
1
|
+
=basic-font($text-rendering: true)
|
2
|
+
font-family: $basic-sans-serif
|
3
|
+
*font-family: $basic-legacy-ie-sans-serif
|
4
|
+
@if $text-rendering
|
5
|
+
text-rendering: optimizelegibility
|
6
|
+
|
7
|
+
=sans-serif($text-rendering: true)
|
8
|
+
font-family: $basic-sans-serif
|
9
|
+
*font-family: $basic-legacy-ie-sans-serif
|
10
|
+
@if $text-rendering
|
11
|
+
text-rendering: optimizelegibility
|
12
|
+
|
13
|
+
=maru-serif($text-rendering: true)
|
14
|
+
font-family: $basic-maru
|
15
|
+
*font-family: $basic-legacy-ie-sans-serif
|
16
|
+
@if $text-rendering
|
17
|
+
text-rendering: optimizelegibility
|
18
|
+
|
19
|
+
=bold-ja($text-rendering: true)
|
20
|
+
font-family: $basic-bold-sans-serif
|
21
|
+
*font-family: $basic-legacy-ie-sans-serif
|
22
|
+
font-weight: bold
|
23
|
+
@if $text-rendering
|
24
|
+
text-rendering: optimizelegibility
|
25
|
+
|
26
|
+
=serif($text-rendering: true)
|
27
|
+
font-family: $basic-serif
|
28
|
+
*font-family: $basic-legacy-ie-sans-serif
|
29
|
+
@if $text-rendering
|
30
|
+
text-rendering: optimizelegibility
|
@@ -0,0 +1,61 @@
|
|
1
|
+
=block-size($values)
|
2
|
+
@if equal_nth($values, 2)
|
3
|
+
+rem('width', nth($values, 1))
|
4
|
+
+rem('height', nth($values, 2))
|
5
|
+
@else
|
6
|
+
+rem('width', nth($values, 1))
|
7
|
+
+rem('height', nth($values, 1))
|
8
|
+
|
9
|
+
=center-block($values)
|
10
|
+
$block-width: optional_nth($values, 1)
|
11
|
+
$block-height: optional_nth($values, 2)
|
12
|
+
$block-z-index: optional_nth($values, 3)
|
13
|
+
+block-size($block-width $block-height)
|
14
|
+
+fixed(left 50%, top 50%, $block-z-index)
|
15
|
+
+rem('margin-top', $block-height / 2 * -1)
|
16
|
+
+rem('margin-left', $block-width / 2 * -1)
|
17
|
+
|
18
|
+
=horizontal-center-block($values)
|
19
|
+
$block-width: optional_nth($values, 1)
|
20
|
+
$block-z-index: optional_nth($values, 2)
|
21
|
+
+rem('width', $block-width)
|
22
|
+
+fixed(left 50%, $block-z-index)
|
23
|
+
+rem('margin-left', $block-width / 2 * -1)
|
24
|
+
|
25
|
+
=square-block($values)
|
26
|
+
$square-block-size: optional_nth($values, 1)
|
27
|
+
$square-block-height: optional_nth($values, 2)
|
28
|
+
$square-block-line-height: optional_nth($values, 3)
|
29
|
+
+rem('width', $square-block-size)
|
30
|
+
+rem('height', if($square-block-height, $square-block-height, $square-block-size))
|
31
|
+
@if $square-block-line-height
|
32
|
+
+rem('line-height', $square-block-line-height)
|
33
|
+
@else if $square-block-height
|
34
|
+
+rem('line-height', $square-block-height)
|
35
|
+
@else
|
36
|
+
+rem('line-height', $square-block-size)
|
37
|
+
|
38
|
+
=overflow($values)
|
39
|
+
$overflow-x: optional_nth($values, 1)
|
40
|
+
$overflow-y: optional_nth($values, 2)
|
41
|
+
@if equal_nth($values, 2)
|
42
|
+
overflow-x: $overflow-x
|
43
|
+
overflow-y: $overflow-y
|
44
|
+
@else
|
45
|
+
overflow: $overflow-x
|
46
|
+
|
47
|
+
=inline-block($value: null)
|
48
|
+
display: inline-block
|
49
|
+
vertical-align: $value
|
50
|
+
|
51
|
+
=background-size($values)
|
52
|
+
+prefixer(background-size, $values, webkit moz spec)
|
53
|
+
|
54
|
+
=background-clip($value)
|
55
|
+
+prefixer(background-clip, $value, webkit moz spec)
|
56
|
+
|
57
|
+
=box-shadow($values...)
|
58
|
+
+rem(box-shadow, $values)
|
59
|
+
|
60
|
+
=text-shadow($values...)
|
61
|
+
+rem(text-shadow, $values)
|
@@ -0,0 +1,43 @@
|
|
1
|
+
// 使い方
|
2
|
+
// +border-radius(vertical, 4px)
|
3
|
+
|
4
|
+
=border-radius($value1: null, $value2: null)
|
5
|
+
@if number(nth($value1, 1))
|
6
|
+
+rem('border-radius', $value1)
|
7
|
+
@else
|
8
|
+
@for $i from 1 through length($value1)
|
9
|
+
@if nth($value1, $i) == 'all'
|
10
|
+
+rem('border-radius', $value2)
|
11
|
+
@else if top(nth($value1, $i))
|
12
|
+
+rem('border-top-left-radius', $value2)
|
13
|
+
+rem('border-top-right-radius', $value2)
|
14
|
+
@else if bottom(nth($value1, $i))
|
15
|
+
+rem('border-bottom-left-radius', $value2)
|
16
|
+
+rem('border-bottom-right-radius', $value2)
|
17
|
+
@else if left(nth($value1, $i))
|
18
|
+
+rem('border-top-left-radius', $value2)
|
19
|
+
+rem('border-bottom-left-radius', $value2)
|
20
|
+
@else if right(nth($value1, $i))
|
21
|
+
+rem('border-top-right-radius', $value2)
|
22
|
+
+rem('border-bottom-right-radius', $value2)
|
23
|
+
|
24
|
+
// 使い方
|
25
|
+
// +reset-border-radius(vertical, 4px)
|
26
|
+
=reset-border-radius($value: 'all')
|
27
|
+
@for $i from 1 through length($value1)
|
28
|
+
@if nth($value1, $i) == 'all'
|
29
|
+
border-radius: 0
|
30
|
+
@else if vertical(nth($value1, $i))
|
31
|
+
border-top-radius: 0
|
32
|
+
border-bottom-radius: 0
|
33
|
+
@else if horizontal(nth($value1, $i))
|
34
|
+
border-left-radius: 0
|
35
|
+
border-right-radius: 0
|
36
|
+
@else if top(nth($value1, $i))
|
37
|
+
border-top-radius: 0
|
38
|
+
@else if bottom(nth($value1, $i))
|
39
|
+
border-bottom-radius: 0
|
40
|
+
@else if left(nth($value1, $i))
|
41
|
+
border-left-radius: 0
|
42
|
+
@else if right(nth($value1, $i))
|
43
|
+
border-right-radius: 0
|
@@ -0,0 +1,28 @@
|
|
1
|
+
=assign-border-position($border-position, $border-values)
|
2
|
+
#{if($border-position, border-#{$border-position}, border)}:
|
3
|
+
@for $i from 1 through length($border-values)
|
4
|
+
@if border-width(nth($border-values, $i))
|
5
|
+
+rem('width', nth($border-values, $i))
|
6
|
+
@else if border-style(nth($border-values, $i))
|
7
|
+
style: nth($border-values, $i)
|
8
|
+
@else if border-color(nth($border-values, $i))
|
9
|
+
color: nth($border-values, $i)
|
10
|
+
|
11
|
+
// 使い方
|
12
|
+
// +border(vertical left, solid white 4px)
|
13
|
+
=border($value1: null, $value2: null)
|
14
|
+
@for $i from 1 through length($value1)
|
15
|
+
@if all(nth($value1, $i))
|
16
|
+
+assign-border-position(false, $value2)
|
17
|
+
@else if vertical(nth($value1, $i))
|
18
|
+
$border-positions: $vertical
|
19
|
+
@each $border-position in $border-positions
|
20
|
+
+assign-border-position($border-position, $value2)
|
21
|
+
@else if horizontal(nth($value1, $i))
|
22
|
+
$border-positions: $horizontal
|
23
|
+
@each $border-position in $border-positions
|
24
|
+
+assign-border-position($border-position, $value2)
|
25
|
+
@else if four_positions(nth($value1, $i))
|
26
|
+
$border-positions: nth($value1, $i)
|
27
|
+
@each $border-position in $border-positions
|
28
|
+
+assign-border-position($border-position, $value2)
|
@@ -0,0 +1,10 @@
|
|
1
|
+
=placeholder
|
2
|
+
&::-webkit-input-placeholder
|
3
|
+
@content
|
4
|
+
&:-moz-placeholder
|
5
|
+
@content
|
6
|
+
&.placeholder
|
7
|
+
@content
|
8
|
+
|
9
|
+
$inputs-en-list: 'input[type="email"]', 'input[type="number"]', 'input[type="search"]', 'input[type="tel"]', 'input[type="url"]', 'input[type="color"]', 'input[type="date"]', 'input[type="datetime"]', 'input[type="datetime-local"]', 'input[type="time"]'
|
10
|
+
$all-en-text-inputs: assign-inputs($inputs-en-list)
|