Skip to content

Commit

Permalink
Refine alignment and area usage
Browse files Browse the repository at this point in the history
  • Loading branch information
stp-ip committed Oct 8, 2017
1 parent 6941ec3 commit 3f025d9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions layouts/partials/fragments/item-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
{{- printf " justify-content-end" -}}
{{- end -}}
">
<div class="col-12 col-lg-7 order-12
<div class="col-12 col-lg-8
{{- if eq $data.align "left" -}}
{{- printf " order-lg-1" -}}
{{- printf " order-lg-1 pr-lg-5" -}}
{{- else -}}
{{- printf " order-lg-12 pl-lg-5" -}}
{{- end -}}
">
{{ if $data.title }}
Expand Down Expand Up @@ -59,19 +61,19 @@ <h5>
">{{ $data.description | markdownify}}</div>
{{ end }}
</div>
<div class="col-12 col-lg-4 order-12 mt-5
<div class="col-12 col-lg-4 mt-5
{{- if eq $data.align "left" -}}
{{- printf " ml-auto" -}}
{{- printf " order-lg-12 ml-auto" -}}
{{- else -}}
{{- printf " order-lg-1 mr-auto" -}}
{{- end -}}
">
<div class="row">
<div class="col-12 text-center
{{- if eq $data.align "left" -}}
{{- printf " text-lg-left" -}}
{{- printf " text-lg-left pl-lg-5" -}}
{{- else if eq $data.align "right" -}}
{{- printf " text-lg-right" -}}
{{- printf " text-lg-right pr-lg-5" -}}
{{- end -}}
">
{{ range $data.buttons }}
Expand Down
14 changes: 8 additions & 6 deletions layouts/partials/fragments/item.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
{{- printf " justify-content-end" -}}
{{- end -}}
">
<div class="col-12 col-lg-7 order-12
<div class="col-12 col-lg-8
{{- if eq $data.align "left" -}}
{{- printf " order-lg-1" -}}
{{- printf " order-lg-1 pr-lg-5" -}}
{{- else -}}
{{- printf " order-lg-12 pl-lg-5" -}}
{{- end -}}
">
{{ if $data.title }}
Expand Down Expand Up @@ -59,19 +61,19 @@ <h5>
">{{ $data.description | markdownify}}</div>
{{ end }}
</div>
<div class="col-12 col-lg-4 order-12 text-center mt-5
<div class="col-12 col-lg-4 text-center mt-5
{{- if eq $data.align "left" -}}
{{- printf " ml-auto" -}}
{{- printf " order-lg-12 ml-auto" -}}
{{- else -}}
{{- printf " order-lg-1 mr-auto" -}}
{{- end -}}
">
<div class="row">
<div class="col-12
{{- if eq $data.align "left" -}}
{{- printf " text-lg-left mr-lg-auto" -}}
{{- printf " text-lg-left pl-lg-5" -}}
{{- else if eq $data.align "right" -}}
{{- printf " text-lg-right ml-lg-auto" -}}
{{- printf " text-lg-right pr-lg-5" -}}
{{- end -}}
">
{{ if $data.icon }}
Expand Down

0 comments on commit 3f025d9

Please sign in to comment.