Changed last prop to :last-of-type

This commit is contained in:
Marvin Rabe
2018-05-07 13:24:48 +02:00
parent 129fccf646
commit 17001743e1
4 changed files with 19 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
<template lang="pug">
.section(:class="{'section-last': last}")
.section
.section-header.d-flex.align-items-center
h3.mb-0(v-once)
| {{ title }}
@@ -29,7 +29,7 @@
padding-top: 1em;
}
.section-last {
.section:last-of-type {
border-bottom: 1px solid #e1e0e3;
margin-bottom: 1em;
padding-bottom: 1em;
@@ -70,9 +70,6 @@
show: {
default: true,
},
last: {
default: false,
},
},
data () {
return {