Commit 8738f4d30456c6074f2d89d5e3ffa13a61045939
1 parent
c1af3fac
added outside dots
Showing
2 changed files
with
15 additions
and
4 deletions
Show diff stats
src/components/carousel/carousel.vue
src/styles/components/carousel.less
| ... | ... | @@ -105,11 +105,22 @@ |
| 105 | 105 | &-dots { |
| 106 | 106 | @padding: 7px; |
| 107 | 107 | |
| 108 | - position: absolute; | |
| 109 | - bottom: 10px - @padding; | |
| 108 | + position: relative; | |
| 109 | + &-inside { | |
| 110 | + position: absolute; | |
| 111 | + bottom: 10px - @padding; | |
| 112 | + } | |
| 113 | + | |
| 114 | + &-outside { | |
| 115 | + margin-top: 10px - @padding; | |
| 116 | + } | |
| 110 | 117 | |
| 111 | - list-style: none; | |
| 112 | 118 | display: block; |
| 119 | + &-none { | |
| 120 | + display: none; | |
| 121 | + } | |
| 122 | + | |
| 123 | + list-style: none; | |
| 113 | 124 | |
| 114 | 125 | text-align: center; |
| 115 | 126 | ... | ... |