oulu 0.19.1 → 1.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +0 -30
  3. data/app/assets/stylesheets/_oulu-base.sass +1 -3
  4. data/app/assets/stylesheets/_oulu.sass +9 -24
  5. data/app/assets/stylesheets/helpers/_block.sass +33 -9
  6. data/app/assets/stylesheets/helpers/_margin-padding.sass +108 -33
  7. data/app/assets/stylesheets/helpers/_position.sass +8 -32
  8. data/app/assets/stylesheets/helpers/_typoglaphy.sass +9 -25
  9. data/app/assets/stylesheets/modules/buttons/_button-base.sass +35 -89
  10. data/app/assets/stylesheets/modules/buttons/_button-helper.sass +12 -39
  11. data/app/assets/stylesheets/modules/buttons/_buttons.sass +6 -22
  12. data/app/assets/stylesheets/modules/buttons/styles/_border.sass +8 -6
  13. data/app/assets/stylesheets/modules/buttons/styles/_flat-emboss.sass +10 -8
  14. data/app/assets/stylesheets/modules/buttons/styles/_flat-round.sass +7 -5
  15. data/app/assets/stylesheets/modules/buttons/styles/_material.sass +4 -2
  16. data/app/assets/stylesheets/modules/buttons/styles/_normal.sass +13 -10
  17. data/app/assets/stylesheets/modules/buttons/styles/_super-bold-border.sass +29 -19
  18. data/app/assets/stylesheets/modules/glitch/_glitch.sass +2 -3
  19. data/app/assets/stylesheets/modules/glitch/_glitch.sass~organize-modules +31 -0
  20. data/app/assets/stylesheets/modules/web-fonts/_font-awsome.sass +17 -0
  21. data/app/assets/stylesheets/modules/web-fonts/_icomoon.sass +2 -0
  22. data/app/assets/stylesheets/settings/functions/_animation.sass +90 -0
  23. data/app/assets/stylesheets/settings/functions/_background.sass +16 -31
  24. data/app/assets/stylesheets/settings/functions/_color.sass +29 -15
  25. data/app/assets/stylesheets/settings/functions/_display.sass +1 -1
  26. data/app/assets/stylesheets/settings/functions/_length.sass +0 -7
  27. data/app/assets/stylesheets/settings/functions/_map.sass +0 -52
  28. data/app/assets/stylesheets/settings/functions/_math.sass +0 -12
  29. data/app/assets/stylesheets/settings/functions/_number.sass +2 -18
  30. data/app/assets/stylesheets/settings/functions/_string.sass +0 -19
  31. data/app/assets/stylesheets/settings/initializers/_reboot.sass +2 -24
  32. data/app/assets/stylesheets/settings/initializers/_sanitize.sass +102 -75
  33. data/app/assets/stylesheets/settings/mixins/_animation.sass +32 -0
  34. data/app/assets/stylesheets/settings/mixins/_background.sass +2 -2
  35. data/app/assets/stylesheets/settings/mixins/_balloon-tail.sass +89 -281
  36. data/app/assets/stylesheets/settings/mixins/_basic-font.sass +1 -1
  37. data/app/assets/stylesheets/settings/mixins/_block.sass +1 -29
  38. data/app/assets/stylesheets/settings/mixins/_form.sass +18 -0
  39. data/app/assets/stylesheets/settings/mixins/_grid.sass +44 -151
  40. data/app/assets/stylesheets/settings/mixins/_ie-hacks.sass +1 -7
  41. data/app/assets/stylesheets/settings/mixins/_link.sass +1 -10
  42. data/app/assets/stylesheets/settings/mixins/_list.sass +20 -0
  43. data/app/assets/stylesheets/settings/mixins/_margin-padding.sass +1 -1
  44. data/app/assets/stylesheets/settings/mixins/_rem.sass +3 -1
  45. data/app/assets/stylesheets/settings/mixins/_responsive-utilities.sass +151 -62
  46. data/app/assets/stylesheets/settings/mixins/_text.sass +27 -29
  47. data/app/assets/stylesheets/settings/mixins/grid/_grid-framework.scss +81 -0
  48. data/app/assets/stylesheets/settings/mixins/grid/_grid.scss +122 -0
  49. data/app/assets/stylesheets/settings/variables/_default.sass +115 -29
  50. data/app/assets/stylesheets/settings/variables/_modules.sass +24 -37
  51. data/bower.json +1 -1
  52. data/lib/oulu/version.rb +1 -1
  53. data/lib/oulu.rb +5 -9
  54. data/oulu.gemspec +3 -3
  55. data/package.json +1 -1
  56. metadata +20 -69
  57. data/app/assets/stylesheets/_oulu-functions-after-variables.sass +0 -6
  58. data/app/assets/stylesheets/_oulu-functions-before-variables.sass +0 -20
  59. data/app/assets/stylesheets/_oulu-functions.sass +0 -21
  60. data/app/assets/stylesheets/_oulu-helpers.sass +0 -10
  61. data/app/assets/stylesheets/_oulu-initializers.sass +0 -6
  62. data/app/assets/stylesheets/_oulu-mixins.sass +0 -28
  63. data/app/assets/stylesheets/_oulu-variables.sass +0 -7
  64. data/app/assets/stylesheets/helpers/_margin.sass +0 -36
  65. data/app/assets/stylesheets/helpers/_padding.sass +0 -35
  66. data/app/assets/stylesheets/helpers/_visibility.sass +0 -67
  67. data/app/assets/stylesheets/modules/buttons/_button-sizes.sass +0 -156
  68. data/app/assets/stylesheets/modules/buttons/styles/_flat.sass +0 -61
  69. data/app/assets/stylesheets/modules/buttons/styles/_simple.sass +0 -51
  70. data/app/assets/stylesheets/modules/buttons/styles/_standard.sass +0 -63
  71. data/app/assets/stylesheets/modules/text-style/_amazlet.sass +0 -38
  72. data/app/assets/stylesheets/modules/text-style/_disabled-h1.sass +0 -23
  73. data/app/assets/stylesheets/modules/text-style/_link-card.sass +0 -67
  74. data/app/assets/stylesheets/modules/text-style/_list.sass +0 -16
  75. data/app/assets/stylesheets/modules/text-style/_long-text-style.sass +0 -207
  76. data/app/assets/stylesheets/modules/text-style/_twitter-tweet.sass +0 -9
  77. data/app/assets/stylesheets/modules/themes/admin/_admin.sass +0 -59
  78. data/app/assets/stylesheets/modules/themes/admin/_base.sass +0 -34
  79. data/app/assets/stylesheets/modules/themes/admin/blocks/admin/_admin-page-header.sass +0 -9
  80. data/app/assets/stylesheets/modules/themes/admin/blocks/form/_admin-actions.sass +0 -36
  81. data/app/assets/stylesheets/modules/themes/admin/blocks/form/_admin-flash.sass +0 -58
  82. data/app/assets/stylesheets/modules/themes/admin/blocks/form/_admin-form-file.sass +0 -33
  83. data/app/assets/stylesheets/modules/themes/admin/blocks/form/_admin-form-inputs.sass +0 -13
  84. data/app/assets/stylesheets/modules/themes/admin/blocks/form/_admin-form-radio.sass +0 -82
  85. data/app/assets/stylesheets/modules/themes/admin/blocks/form/_admin-form.sass +0 -117
  86. data/app/assets/stylesheets/modules/themes/admin/blocks/header/_admin-header-nav.sass +0 -22
  87. data/app/assets/stylesheets/modules/themes/admin/blocks/header/_admin-header-show-mobile-nav.sass +0 -8
  88. data/app/assets/stylesheets/modules/themes/admin/blocks/header/_admin-header.sass +0 -19
  89. data/app/assets/stylesheets/modules/themes/admin/blocks/navs/_admin-breadcrumbs.sass +0 -45
  90. data/app/assets/stylesheets/modules/themes/admin/blocks/navs/_admin-stack-nav.sass +0 -51
  91. data/app/assets/stylesheets/modules/themes/admin/blocks/navs/_admin-tabs-nav.sass +0 -49
  92. data/app/assets/stylesheets/modules/themes/admin/blocks/navs/_pagination.sass +0 -63
  93. data/app/assets/stylesheets/modules/themes/admin/blocks/table/_admin-table-form.sass +0 -10
  94. data/app/assets/stylesheets/modules/themes/admin/blocks/table/_admin-table-sort.sass +0 -21
  95. data/app/assets/stylesheets/modules/themes/admin/blocks/table/_admin-table.sass +0 -82
  96. data/app/assets/stylesheets/modules/themes/admin/settings/_admin-colors.sass +0 -101
  97. data/app/assets/stylesheets/modules/themes/style-guide/_base.sass +0 -5
  98. data/app/assets/stylesheets/modules/themes/style-guide/_style-guide.sass +0 -43
  99. data/app/assets/stylesheets/modules/themes/style-guide/blocks/_style-guide-color.sass +0 -42
  100. data/app/assets/stylesheets/modules/themes/style-guide/blocks/_style-guide-global-nav.sass +0 -32
  101. data/app/assets/stylesheets/modules/themes/style-guide/blocks/_style-guide-header.sass +0 -12
  102. data/app/assets/stylesheets/modules/themes/style-guide/blocks/_style-guide-section.sass +0 -8
  103. data/app/assets/stylesheets/modules/themes/style-guide/settings/_style-guide-colors.sass +0 -33
  104. data/app/assets/stylesheets/modules/web-fonts/_playfair.sass +0 -11
  105. data/app/assets/stylesheets/settings/functions/_assign-inputs.sass +0 -35
  106. data/app/assets/stylesheets/settings/functions/_flex.sass +0 -70
  107. data/app/assets/stylesheets/settings/mixins/_break-points.sass +0 -37
  108. data/app/assets/stylesheets/settings/mixins/_flex.sass +0 -5
  109. data/app/assets/stylesheets/settings/mixins/_font-awesome.sass +0 -56
  110. data/app/assets/stylesheets/settings/mixins/_word-wrap.sass +0 -8
  111. data/app/assets/stylesheets/settings/mixins/grid/_grid-framework.sass +0 -42
  112. data/app/assets/stylesheets/settings/mixins/grid/_grid.sass +0 -15
  113. data/app/assets/stylesheets/settings/variables/_sanitize.sass +0 -20
  114. data/circle.yml +0 -13
@@ -1,207 +0,0 @@
1
- @import list
2
- @import link-card
3
- @import amazlet
4
- @import twitter-tweet
5
- @import disabled-h1
6
- @import ../web-fonts/source-code-pro
7
-
8
- $background: white !default
9
- $font: #333 !default
10
- $disabled-h1: false !default
11
-
12
- =long-text-style($pc-font-size: 1rem, $mobile-font-size: .8125rem, $background: $base-color, $font: $default-text, $disabled-h1: false)
13
- font-size: $pc-font-size
14
- +media-breakpoint-down(sm)
15
- font-size: $mobile-font-size
16
- >*:first-child
17
- margin-top: 0
18
- >*:last-child
19
- margin-bottom: 0
20
- +disabled-h1($disabled-h1, $pc-font-size, $mobile-font-size)
21
- h2
22
- +text-block(1.625em 1.4 .75em, 700)
23
- padding-bottom: .25em
24
- border-bottom: .0625rem solid mix($font, $background, 20%)
25
- h1 + h2
26
- margin-top: 1em
27
- * + h2
28
- margin-top: 1.4em
29
-
30
- * + h3,
31
- * + h4,
32
- * + h5
33
- margin-top: 1.5em
34
- h3
35
- +text-block(1.375em 1.4 .625em, 700)
36
- h4
37
- +text-block(1.25em 1.3 .625em, 700)
38
- h5
39
- +text-block(1.125em 1.3 .625em, 700)
40
- h6
41
- +text-block(1em 1.3 .625em, 700)
42
- p
43
- +text-block(1em 1.8 1.5em)
44
- a
45
- word-break: break-all
46
- +hover-link-reversal
47
- p &
48
- word-break: break-all
49
- &:hover
50
- img
51
- border-color: mix($font, $background, 16%)
52
- code
53
- +source-code-pro
54
- tab-size: 2
55
- hyphens: none
56
-
57
- pre
58
- padding: 0
59
- margin-bottom: 1.5em
60
- code
61
- border: solid .0625rem mix($font, $background, 20%)
62
- +text-block(.9375em 1.5)
63
- overflow: auto
64
- display: block
65
- width: 100%
66
- padding: .875em
67
- p,
68
- li
69
- code
70
- +text-block(.875em 1.7, $default-text inline-flex)
71
- align-items: center
72
- letter-spacing: 0
73
- +padding(horizontal, .25rem)
74
- border: solid .0625rem mix($font, $background, 20%)
75
- background-color: mix($font, $background, 4%)
76
- +margin(horizontal, .25rem)
77
- border-radius: .125rem
78
- hr
79
- display: block
80
- +margin(vertical, 1.5em 2em)
81
- &:before
82
- border-top: solid .125rem mix($font, $background, 10%)
83
- display: block
84
- img
85
- max-width: 100%
86
- height: auto
87
- display: block
88
- +margin(horizontal, auto)
89
- border: .0625rem solid mix($font, $background, 10%)
90
- +media-breakpoint-down(sm)
91
- max-width: 100% !important
92
- &.is-xs
93
- max-width: 10em
94
- &.is-sm
95
- max-width: 20em
96
- &.is-md
97
- max-width: 30em
98
-
99
- +list
100
- ul,
101
- ol
102
- list-style-position: outside
103
- margin-left: 1.75em
104
- margin-bottom: 1.5em
105
- li
106
- +text-block(1em 1.8)
107
- +margin(vertical, .5em)
108
- &:first-child
109
- margin-top: 0
110
- &:last-child
111
- margin-bottom: 0
112
- input
113
- margin-right: .25rem
114
- p + ul,
115
- p + ol
116
- margin-top: 1em
117
-
118
- table
119
- width: 100%
120
- margin-bottom: 2em
121
-
122
- th,
123
- td
124
- border: solid .0625rem mix($font, $background, 40%)
125
- padding: .5em .625em
126
- +text-block(.875em 1.4)
127
-
128
- th
129
- background-color: mix($font, $background, 8%)
130
-
131
- tbody tr
132
- &:nth-child(even)
133
- background-color: mix($font, $background, 2%)
134
-
135
- dl
136
- margin: 1.5em 0 2em
137
- +border(vertical, .0625rem solid mix($font, $background, 8%))
138
- +padding(vertical, 2em)
139
- @extend .row
140
- +media-breakpoint-down(sm)
141
- +padding(vertical, 1.5em)
142
- +border(vertical, dotted)
143
- dt
144
- +text-block(.875em 1.6 .5em, bold)
145
- margin-top: 1em
146
- padding-right: .5em
147
- @extend .col-sm-4
148
- @extend .col-xs-12
149
- +media-breakpoint-down(sm)
150
- padding: 0
151
- &:first-child
152
- margin-top: 0
153
- &+dd
154
- margin-top: 0
155
- &+dd
156
- margin-top: 1em
157
- +media-breakpoint-down(sm)
158
- margin-top: 0
159
- dd
160
- +text-block(.875em 1.6 1em)
161
- @extend .col-sm-8
162
- @extend .col-xs-12
163
- +media-breakpoint-down(sm)
164
- padding: 0
165
- &+dd
166
- @extend .offset-sm-4
167
- &:last-child
168
- margin-bottom: 0
169
-
170
- blockquote
171
- padding-left: 1.5em
172
- +margin(vertical, 1.5em 2em)
173
- +position(relative)
174
- border-left: solid .25em mix($font, $background, 10%)
175
- +list
176
- p + &
177
- +margin(vertical, 3em 2.5em)
178
- code
179
- font-style: normal
180
- >*:last-child
181
- margin-bottom: 0 !important
182
-
183
- details
184
- +text-block(.875rem 1.8 1.5em)
185
- border: solid .0625rem mix($font, $background, 20%)
186
- border-radius: .25rem
187
- summary
188
- +text-block(1em 1.8 0)
189
- cursor: pointer
190
- padding: .5em 1em
191
- outline: none
192
- & + div
193
- padding: .5em 1em
194
- *:last-child
195
- margin-bottom: 0
196
- &[open] summary
197
- border-bottom: solid .0625rem mix($font, $background, 20%)
198
-
199
- iframe
200
- display: block
201
- max-width: 100%
202
- +margin(vertical, 1.5em 2em)
203
- +margin(horizontal, auto)
204
-
205
- +amazlet
206
- +twitter-tweet
207
- +link-card
@@ -1,9 +0,0 @@
1
- =twitter-tweet
2
- .twitter-tweet
3
- +margin(horizontal, auto)
4
- margin-top: 1.5em !important
5
- margin-bottom: 2em !important
6
- &:first-child
7
- margin-top: 0 !important
8
- &:last-child
9
- margin-bottom: 0 !important
@@ -1,59 +0,0 @@
1
- //////////////
2
- //settings
3
- //////////////
4
-
5
- // functions-before-variables
6
- @import ../../../oulu-functions-before-variables
7
-
8
- // variables
9
- @import ../../../oulu-variables
10
-
11
- // oulu-functions-after-variables (functions need variables)
12
- @import ../../../oulu-functions-after-variables
13
-
14
- // mixins
15
- @import ../../../oulu-mixins
16
-
17
- @import ../../themes/admin/settings/admin-colors
18
-
19
-
20
- //////////////
21
- // initializers
22
- //////////////
23
-
24
- @import ../../../oulu-initializers
25
-
26
- //////////////
27
- // helpers
28
- //////////////
29
-
30
- @import ../../../oulu-helpers
31
-
32
- //////////////
33
- // blocks
34
- //////////////
35
-
36
- @import ../../text-style/long-text-style
37
- @import ../../buttons/buttons
38
- @import ../../themes/admin/base
39
- @import ../../themes/admin/blocks/header/admin-header-nav
40
- @import ../../themes/admin/blocks/header/admin-header
41
- @import ../../themes/admin/blocks/header/admin-header-show-mobile-nav
42
-
43
- @import ../../themes/admin/blocks/table/admin-table
44
- @import ../../themes/admin/blocks/table/admin-table-form
45
- @import ../../themes/admin/blocks/table/admin-table-sort
46
-
47
- @import ../../themes/admin/blocks/admin/admin-page-header
48
-
49
- @import ../../themes/admin/blocks/form/admin-flash
50
- @import ../../themes/admin/blocks/form/admin-form
51
- @import ../../themes/admin/blocks/form/admin-form-inputs
52
- @import ../../themes/admin/blocks/form/admin-actions
53
- @import ../../themes/admin/blocks/form/admin-form-file
54
- @import ../../themes/admin/blocks/form/admin-form-radio
55
-
56
- @import ../../themes/admin/blocks/navs/admin-breadcrumbs
57
- @import ../../themes/admin/blocks/navs/admin-stack-nav
58
- @import ../../themes/admin/blocks/navs/admin-tabs-nav
59
- @import ../../themes/admin/blocks/navs/pagination
@@ -1,34 +0,0 @@
1
- html
2
- background-color: $admin-base-color
3
- color: $admin-default-text
4
-
5
- body
6
- padding-bottom: 1.5rem
7
-
8
- .container
9
- +media-breakpoint-down(sm)
10
- +padding(horizontal, .5rem)
11
- &.is-sm
12
- max-width: 24rem
13
- &.is-md
14
- max-width: 45rem
15
- &.is-lg
16
- max-width: 54rem
17
-
18
- a
19
- transition: all .2s ease-in
20
-
21
- \:placeholder-shown
22
- color: $admin-placeholder-text
23
- ::-webkit-input-placeholder
24
- color: $admin-placeholder-text
25
- \:-moz-placeholder
26
- opacity: 1
27
- color: $admin-placeholder-text
28
- ::-moz-placeholder
29
- opacity: 1
30
- color: $admin-placeholder-text
31
- \:-ms-input-placeholder
32
- color: $admin-placeholder-text
33
- .placeholder
34
- color: $admin-placeholder-text
@@ -1,9 +0,0 @@
1
- .admin-page-header
2
- font-size: 1.25rem
3
- border-bottom: solid .0625rem $admin-border
4
- +padding(vertical, 1.25rem)
5
-
6
- .admin-page-header__title
7
- +text-block(1em 1, 700 $admin-default-text)
8
- +media-breakpoint-down(sm)
9
- font-size: 1rem
@@ -1,36 +0,0 @@
1
- .admin-actions
2
- margin-top: 1.5rem
3
-
4
- .admin-actions__items
5
- display: flex
6
- justify-content: center
7
- align-items: baseline
8
- +margin(horizontal, -.5rem)
9
- +media-breakpoint-down(sm)
10
- display: block
11
- +margin(horizontal, 0)
12
-
13
- .admin-actions__item
14
- display: block
15
- +padding(horizontal, .5rem)
16
- +media-breakpoint-down(sm)
17
- +padding(horizontal, 0)
18
- &:not(:last-child)
19
- margin-bottom: 1.25rem
20
-
21
- .admin-actions__item-action
22
- &.is-main
23
- min-width: 16rem
24
- +padding(horizontal, .75rem)
25
- +media-breakpoint-down(sm)
26
- width: 100%
27
- min-width: 0
28
- &.is-sub
29
- +hover-link-reversal
30
- +text-block(.8125rem 1, block center)
31
- color: $admin-link-text
32
- cursor: pointer
33
- i
34
- margin-right: .5rem
35
- &.is-danger
36
- color: $admin-danger-text
@@ -1,58 +0,0 @@
1
- .admin-flash
2
- overflow: hidden
3
- border-bottom: solid .0625rem
4
- &.is-alert
5
- background-color: $admin-flash-alert-background
6
- border-color: $admin-flash-alert-text
7
- color: $admin-flash-alert-text
8
- &.is-notice
9
- background-color: $admin-flash-notice-background
10
- border-color: $admin-flash-notice-text
11
- color: $admin-flash-notice-text
12
- &.is-hidden
13
- animation: fade-out 1s ease 0s forwards
14
- body.is-ie11 &,
15
- body.is-edge &
16
- display: none
17
-
18
- .admin-flash__inner
19
- padding: .75rem 2.75rem .75rem 0
20
- +position(relative)
21
- +media-breakpoint-down(sm)
22
- padding-left: 1.625rem
23
-
24
- .admin-flash__title
25
- +text-block(.875rem 1.45 .5rem)
26
-
27
- .admin-flash__item
28
- +text-block(.8125rem 1.45 .25rem)
29
- &:last-child
30
- margin-bottom: 0
31
-
32
- .admin-flash__message
33
- +text-block(.8125rem 1.45, center)
34
-
35
- .admin-flash__close
36
- +position(absolute, right 0, top -.0625rem)
37
- +size(2.75rem)
38
- +text-block(2rem 1, flex)
39
- align-items: center
40
- justify-content: center
41
- opacity: .7
42
- cursor: pointer
43
- transition: all .2s ease-in
44
- +media-breakpoint-down(sm)
45
- left: -.75rem
46
- &:hover
47
- opacity: 1
48
- *
49
- cursor: pointer
50
-
51
- .admin-flash__close-icon
52
- +position(relative, top -.1875rem)
53
-
54
- .admin-flash__body
55
- p
56
- +text-block(.8125rem 1.45, center)
57
- +media-breakpoint-down(sm)
58
- font-size: .75rem
@@ -1,33 +0,0 @@
1
- .admin-form-file
2
- text-align: center
3
-
4
- .admin-form-file__image
5
- margin-bottom: .75rem
6
- +size(6rem)
7
- display: flex
8
- align-items: center
9
- justify-content: center
10
- +margin(horizontal, auto)
11
-
12
- .admin-form-file__image-name
13
- display: none
14
- +text-block(.75rem 1 .75rem, center)
15
- &.is-shown
16
- display: block
17
-
18
- .admin-form-file__action
19
- +position(relative)
20
-
21
- [class*="is-button-"].is-file
22
- input
23
- opacity: 0
24
- +position(absolute, left 0, top 0)
25
- +size(0)
26
- overflow: hidden
27
-
28
- .admin-form-file__action-label
29
- display: none
30
- .admin-form-file.is-unuploaded &.is-unuploaded
31
- display: block
32
- .admin-form-file.is-uploaded &.is-uploaded
33
- display: block
@@ -1,13 +0,0 @@
1
- .admin-form-inputs__items
2
- display: flex
3
- flex-wrap: wrap
4
- +margin(horizontal, -.25rem)
5
- margin-bottom: -.5rem
6
-
7
- .admin-form-inputs__item
8
- +margin(horizontal, .25rem)
9
- margin-bottom: .5rem
10
- display: flex
11
- align-items: center
12
- max-width: 100%
13
- font-size: .875rem
@@ -1,82 +0,0 @@
1
- .admin-form-radio
2
- +text-block(.8125rem 1.45, flex)
3
- +position(relative)
4
- padding-left: 1rem
5
- cursor: pointer
6
- input
7
- +position(absolute, left 0, top 0)
8
- opacity: 0
9
- &::before
10
- content: ""
11
- display: block
12
- +size(.75rem)
13
- border-radius: 50%
14
- +position(absolute, left 0, top 50%)
15
- margin-top: -.375rem
16
- background-color: $admin-background-shade
17
- border: solid .0625rem $admin-border-shade
18
- box-shadow: rgba(black, .2) 0 .0625rem .0625rem inset
19
- &.is-checked
20
- &::before
21
- border-color: $admin-form-check
22
- &::after
23
- content: ""
24
- display: block
25
- +size(.5rem)
26
- border-radius: 50%
27
- +position(absolute, left .125rem, top 50%)
28
- margin-top: -.25rem
29
- background-color: $admin-form-check
30
- box-shadow: rgba(black, .2) 0 0 0 .0625rem inset
31
-
32
- .admin-form-radio__item
33
- +padding(horizontal, .5rem)
34
-
35
- .admin-form-checkbox
36
- +text-block(.8125rem 1.45, flex)
37
- +position(relative)
38
- padding-left: 1rem
39
- cursor: pointer
40
- input
41
- +position(absolute, left 0, top 0)
42
- opacity: 0
43
- &::before
44
- content: ""
45
- display: block
46
- +size(.75rem)
47
- border-radius: .125rem
48
- +position(absolute, left 0, top 50%)
49
- transform: translate(0, -50%)
50
- background-color: $admin-background-shade
51
- border: solid .0625rem $admin-border-shade
52
- box-shadow: rgba(black, .2) 0 .0625rem .0625rem inset
53
- .is-one-checkbox &
54
- padding-left: 0
55
- +size(100% 1.875rem)
56
- +margin(vertical, -.375rem)
57
- .is-one-checkbox &::before
58
- left: 50%
59
- transform: translate(-50%, -50%)
60
- margin-left: 0
61
- &.is-checked
62
- &::before
63
- border-color: $admin-form-check
64
- &::after
65
- +fa(fas "\f00c")
66
- +text-block(.75rem 1, $admin-form-check flex)
67
- align-items: center
68
- justify-content: center
69
- +size(.75rem)
70
- border-radius: 50%
71
- +position(absolute, left 0, top 50%)
72
- transform: translate(0, -50%)
73
- .is-one-checkbox &.is-checked::after
74
- left: 50%
75
- transform: translate(-50%, -50%)
76
- margin-left: 0
77
- &.is-lg
78
- &::before
79
- +size(1rem)
80
- &::after
81
- +size(1rem)
82
- font-size: 1rem
@@ -1,117 +0,0 @@
1
- =text-input-style
2
- border: solid .0625rem $admin-text-input-border
3
- background-color: $admin-text-input-background
4
- transition: color .2s ease-in, background-color .2s ease-in
5
- box-shadow: rgba(black, .1) 0 1px 1px inset
6
- padding: .375rem
7
- +text-block(.875rem 1.5)
8
- border-radius: .1875rem
9
- width: 100%
10
- +media-breakpoint-down(sm)
11
- padding: .25rem .375rem
12
- font-size: 1rem
13
- &:focus
14
- border-color: $admin-focused-text-input-border
15
- background-color: $admin-focused-text-input-background
16
- box-shadow: $admin-focused-text-input-border 0 0 .1875rem
17
- .field_with_errors &
18
- border-color: $danger
19
- background-color: tint($danger, 80%)
20
- &:focus
21
- border-color: $admin-focused-text-input-border
22
- box-shadow: $admin-focused-text-input-border 0 0 .1875rem
23
-
24
- .admin-form
25
- +padding(vertical, 1.25rem)
26
- &.is-search
27
- +padding(vertical, 1.25rem 0)
28
- .container
29
- +media-breakpoint-down(sm)
30
- +padding(horizontal, 0)
31
- .admin-form__form
32
- background-color: $admin-background
33
- border: solid .0625rem $admin-border-tint
34
- padding: 1rem
35
-
36
- .admin-form-item
37
- margin-bottom: 1.5rem
38
- &:last-child
39
- margin-bottom: 0
40
- &.is-inline
41
- +media-breakpoint-up(md)
42
- display: flex
43
- .admin-form-item__label-area
44
- flex: 0 0 12rem
45
- padding-right: 1rem
46
- margin-bottom: 0
47
- display: flex
48
- align-items: center
49
- .admin-form-item__label
50
- +text-block(.8125rem 1.45, right block)
51
- width: 100%
52
- .admin-form-item__input-area
53
- flex: 100
54
-
55
- .admin-form-item__label-area
56
- margin-bottom: .5rem
57
-
58
- .admin-form-item__label
59
- +text-block(1rem 1.45, 600 block)
60
- +media-breakpoint-down(sm)
61
- font-size: .8125rem
62
- &.is-required
63
- &::before
64
- content: "必須"
65
- +text-block(.625rem 1, 400 $danger)
66
- border: solid .0625rem $danger
67
- padding: .0625rem .125rem
68
- margin-right: .25rem
69
- +top(-.0625rem)
70
- border-radius: .125rem
71
- abbr
72
- color: $danger
73
-
74
- .admin-form-item__label-area-description
75
- p
76
- +text-block(.75rem 1.45)
77
-
78
- .admin-form-item__input-area-description
79
- margin-top: .25rem
80
- p
81
- +text-block(.75rem 1.45)
82
-
83
- .admin-form-item__text-input
84
- +text-input-style
85
- max-width: 100%
86
- &.is-xs
87
- width: 4rem
88
- &.is-sm
89
- width: 8rem
90
- &.is-md
91
- width: 14rem
92
- &.is-lg
93
- width: 20rem
94
- &.is-xl
95
- width: 26rem
96
-
97
- .admin-form-item__textarea
98
- +text-input-style
99
- min-height: 11.25rem
100
- overflow: hidden
101
-
102
- .admin-form-item__radios
103
- display: flex
104
- flex-wrap: wrap
105
- +margin(horizontal, -.5rem)
106
-
107
- .admin-form-item__radios-item
108
- +padding(horizontal, .5rem)
109
-
110
- .admin-form-item__select
111
- border: solid .0625rem
112
- cursor: pointer
113
- +text-input-style
114
- +position(relative)
115
- height: 2.25em
116
- appearance: menulist-button
117
- -webkit-appearance: menulist-button
@@ -1,22 +0,0 @@
1
- .admin-header-nav
2
- +media-breakpoint-down(sm)
3
- display: none
4
-
5
- .admin-header-nav__items
6
- display: flex
7
- border-radius: .25rem
8
- +margin(horizontal, -.25rem)
9
-
10
- .admin-header-nav__item
11
- display: block
12
- +padding(horizontal, .25rem)
13
-
14
- .admin-header-nav__item-link
15
- +text-block(.75rem 1, flex $admin-muted-text)
16
- border: solid .0625rem $admin-border
17
- +size(auto 1.75rem)
18
- +padding(horizontal, 1.4em)
19
- align-items: center
20
- border-radius: .25rem
21
- &:hover
22
- background-color: $admin-background
@@ -1,8 +0,0 @@
1
- .admin-header-show-mobile-nav
2
- +size(2.75rem)
3
- +text-block(1rem 1, flex)
4
- align-items: center
5
- justify-content: center
6
- margin-right: -.5rem
7
- +media-breakpoint-up(md)
8
- display: none