Skip to content

Commit 4814039

Browse files
committed
Edit demo css
1 parent bd2cb81 commit 4814039

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/Example.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="titles">
44
<h1>VUE DATEPCIKER COMPONENT</h1>
55
<div class="using">
6-
<div>
6+
<div class="package">
77
<span class="install">npm install vue-datepicker-ui</span> or
88
<span class="install">yarn add vue-datepicker-ui</span>
99
</div>
@@ -148,12 +148,20 @@ export default {
148148
align-items: center;
149149
margin-top: 20px;
150150
}
151+
.titles .using .package {
152+
display: flex;
153+
flex-wrap: wrap;
154+
align-items: baseline;
155+
}
151156
.titles .using .install{
152157
font-size: 16px;
153158
background: #000;
154159
border-radius: 4px;
155160
color: #ffb00f;
156161
padding: 10px;
162+
margin-left: 5px;
163+
margin-right: 5px;
164+
margin-bottom: 30px;
157165
}
158166
.titles .using .code {
159167
background: #000;
@@ -162,11 +170,12 @@ export default {
162170
color: #1bba67;
163171
padding: 20px;
164172
font-size: 16px;
165-
margin-top: 30px;
166173
border-radius: 4px;
167174
text-align: left;
168-
max-width: 100%;
175+
max-width: 94vw;
169176
word-break: break-all;
177+
margin-left: auto;
178+
margin-right: auto;
170179
}
171180
.examples {
172181
display: grid;

0 commit comments

Comments
 (0)