File tree Expand file tree Collapse file tree 10 files changed +26
-21
lines changed Expand file tree Collapse file tree 10 files changed +26
-21
lines changed Original file line number Diff line number Diff line change 16
16
@import " objects/o-ratio" ;
17
17
@import " objects/o-wrapper" ;
18
18
@import " objects/o-slider" ;
19
+ @import " objects/o-module" ;
19
20
20
21
// 6. Components
21
22
@import " components/c-link" ;
Original file line number Diff line number Diff line change 1
- .m-section {
2
- margin-top : var (--#{$spacing} , var (--#{$spacing}--md ));
3
- margin-bottom : var (--#{$spacing} , var (--#{$spacing}--md ));
4
- }
Original file line number Diff line number Diff line change
1
+ .o-module {
2
+ $self : &;
3
+
4
+ overflow : hidden ;
5
+ position : relative ;
6
+ background-color : var (--#{$color}-background );
7
+ color : var (--#{$color}-text );
8
+ padding-bottom : var (--#{$spacing} , var (--#{$spacing}-10 ));
9
+
10
+ & .u-theme--dark + & .u-theme--light ,
11
+ & .u-theme--light + & .u-theme--dark {
12
+ padding-top : var (--#{$spacing} , var (--#{$spacing}-10 ));
13
+ }
14
+ }
Original file line number Diff line number Diff line change 19
19
background-color : var (--#{$color}-background );
20
20
color : var (--#{$color}-text );
21
21
}
22
-
23
- .u-theme--dark > .u-theme--light ,
24
- .u-theme--light > .u-theme--dark {
25
- padding-top : var (--#{$spacing} , 0 );
26
- padding-bottom : var (--#{$spacing} , 0 );
27
- }
28
-
29
- .u-theme--dark > .u-theme--light + .u-theme--light ,
30
- .u-theme--light > .u-theme--dark + .u-theme--dark {
31
- margin-top : calc (-1 * var (--#{$spacing} , 0 ));
32
- }
Original file line number Diff line number Diff line change 13
13
{{- $column_left := $params.column_left | default slice -}}
14
14
{{- $column_right := $params.column_right | default slice -}}
15
15
16
- < section class ="m-section {{ with $class_name }}{{ . }}{{ end }} ">
16
+ < section class ="o-module m-section{{ with $class_name }} {{ . }}{{ end }} ">
17
17
< div class ="o-wrapper ">
18
18
< div class ="m-columns__body ">
19
19
{{- range (slice $column_left $column_right) -}}
Original file line number Diff line number Diff line change 13
13
{{- $layout := $params.layout -}}
14
14
{{- $columns := $params.columns | default 4 -}}
15
15
16
- < section class ="m-section {{ with $class_name }}{{ . }}{{ end }} " style ="--columns-desktop: {{ $columns }}; ">
16
+ < section class ="o-module m-section {{ with $class_name }}{{ . }}{{ end }} " style ="--columns-desktop: {{ $columns }}; ">
17
17
< div class ="o-wrapper ">
18
18
{{- with $body -}}
19
19
{{- $content := . -}}
Original file line number Diff line number Diff line change 13
13
{{- $layout := $params.layout -}}
14
14
{{- $columns := $params.columns | default 4 -}}
15
15
16
- < section class ="m-section {{ with $class_name }}{{ . }}{{ end }} " style ="--columns-desktop: {{ $columns }}; ">
16
+ < section class ="o-module m-section {{ with $class_name }}{{ . }}{{ end }} " style ="--columns-desktop: {{ $columns }}; ">
17
17
< div class ="o-wrapper ">
18
18
< div class ="m-list__body o-slider js-slider " data-loop ="true ">
19
19
< div class ="o-slider__outer-wrapper ">
Original file line number Diff line number Diff line change 12
12
{{- $body := $params.body -}}
13
13
{{- $layout := $params.layout -}}
14
14
15
- < section class ="{{ with $class_name }}{{ . }}{{ end }} ">
15
+ < section class ="o-module {{ with $class_name }} {{ . }}{{ end }} ">
16
16
< div class ="o-wrapper ">
17
17
{{- with $body -}}
18
18
{{- $content := . -}}
Original file line number Diff line number Diff line change 3
3
{{- $options := .options | default dict -}}
4
4
{{- $params := (merge $context $options) -}}
5
5
{{- $modifier := cond (reflect.IsSlice $params.modifier) $params.modifier (cond (ne $params.modifier nil) (slice $params.modifier) dict ) -}}
6
- {{- $class_name := $params.class_name -}}
6
+
7
+ {{- $class_name := partialCached "utils/get-class-names" (dict
8
+ "class" "m-stage"
9
+ "context" $params
10
+ ) . -}}
7
11
8
12
{{- $title := $params.title -}}
9
13
{{- $subtitle := $params.subtitle -}}
18
22
{{- if and (ne $layout "default") (templates.Exists ( printf "partials/%s" $partialPath )) -}}
19
23
{{- partial $partialPath . -}}
20
24
{{- else -}}
21
- < section class ="m-stage m-stage-- {{ $layout }}{{ range $modifier }} m-stage--{{ . }}{{ end }}{{ with $layout }} m-stage--{{ . }}{{end}}{{ with $ class_name }} {{ . }}{{end}} ">
25
+ < section class ="o-module {{ with $class_name }} {{ . }}{{ end }} ">
22
26
< div class ="m-stage__body ">
23
27
{{- with $media -}}
24
28
{{- partial "utils/get-partial" (dict
Original file line number Diff line number Diff line change 9
9
{{- partial "utils/get-partial" (dict
10
10
"context" .
11
11
"globals" $globals
12
+ "options" (dict "theme" $theme)
12
13
) -}}
13
14
{{- end -}}
14
15
{{- range $modules -}}
You can’t perform that action at this time.
0 commit comments