Skip to content

Commit 7502554

Browse files
Samuell1marcosmoura
authored andcommitted
docs: refactor to new layout (vuematerial#1371)
* docs(MdSelect): update layout classes * docs(MdAutocomplete): update layout classes * docs(Form): update layout classes * docs(MdSelect): update layout classes
1 parent 637e914 commit 7502554

File tree

7 files changed

+28
-34
lines changed

7 files changed

+28
-34
lines changed

docs/app/pages/Components/Autocomplete/Autocomplete.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
<h2>Search Algorithms</h2>
4848

4949
<p>Vue Material autocomplete comes with 2 ways of search: <a href="https://en.wikipedia.org/wiki/Approximate_string_matching" target="_blank">Fuzzy search</a> and search by whole term. The fuzzy search tries to match the results by approximation, finding patterns inside the available options. This will help with accidental type errors and improve the results. If you think that this may be confusing, you can disable this. Example:</p>
50-
<div class="md-layout-row">
51-
<div class="md-flex-40">
50+
<div class="md-layout md-gutter">
51+
<div class="md-layout-item md-size-40">
5252
<p>
5353
<strong>Fuzzy search</strong> - search term: <code>pam</code>
5454
</p>
@@ -66,7 +66,7 @@
6666
</div>
6767
</div>
6868

69-
<div class="md-flex-40">
69+
<div class="md-layout-item md-size-40">
7070
<p>
7171
<strong>Normal Search</strong> - search term: <code>pam</code>
7272
</p>

docs/app/pages/Components/Form/examples/FormValidation.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<template>
22
<div>
3-
<form novalidate class="md-layout-row md-gutter" @submit.prevent="validateUser">
4-
<md-card class="md-flex-50 md-flex-small-100">
3+
<form novalidate class="md-layout" @submit.prevent="validateUser">
4+
<md-card class="md-layout-item md-size-50 md-small-size-100">
55
<md-card-header>
66
<div class="md-title">Users</div>
77
</md-card-header>
88

99
<md-card-content>
10-
<div class="md-layout-row md-layout-wrap md-gutter">
11-
<div class="md-flex md-flex-small-100">
10+
<div class="md-layout md-gutter">
11+
<div class="md-layout-item md-small-size-100">
1212
<md-field :class="getValidationClass('firstName')">
1313
<label for="first-name">First Name</label>
1414
<md-input name="first-name" id="first-name" autocomplete="given-name" v-model="form.firstName" :disabled="sending" />
@@ -17,7 +17,7 @@
1717
</md-field>
1818
</div>
1919

20-
<div class="md-flex md-flex-small-100">
20+
<div class="md-layout-item md-small-size-100">
2121
<md-field :class="getValidationClass('lastName')">
2222
<label for="last-name">Last Name</label>
2323
<md-input name="last-name" id="last-name" autocomplete="family-name" v-model="form.lastName" :disabled="sending" />
@@ -27,8 +27,8 @@
2727
</div>
2828
</div>
2929

30-
<div class="md-layout-row md-gutter md-layout-wrap">
31-
<div class="md-flex md-flex-small-100">
30+
<div class="md-layout md-gutter">
31+
<div class="md-layout-item md-small-size-100">
3232
<md-field :class="getValidationClass('gender')">
3333
<label for="gender">Gender</label>
3434
<md-select name="gender" id="gender" v-model="form.gender" md-dense :disabled="sending">
@@ -40,7 +40,7 @@
4040
</md-field>
4141
</div>
4242

43-
<div class="md-flex md-flex-small-100">
43+
<div class="md-layout-item md-small-size-100">
4444
<md-field :class="getValidationClass('age')">
4545
<label for="age">Age</label>
4646
<md-input type="number" id="age" name="age" autocomplete="age" v-model="form.age" :disabled="sending" />

docs/app/pages/Components/Select/examples/BasicSelect.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div>
3-
<div class="md-layout-row md-gutter">
4-
<div class="md-flex">
3+
<div class="md-layout md-gutter">
4+
<div class="md-layout-item">
55
<md-field>
66
<label for="movie">Movie</label>
77
<md-select v-model="movie" name="movie" id="movie">
@@ -16,7 +16,7 @@
1616
</md-field>
1717
</div>
1818

19-
<div class="md-flex">
19+
<div class="md-layout-item">
2020
<md-field>
2121
<md-select v-model="country" name="country" id="country" placeholder="Country">
2222
<md-option value="australia">Australia</md-option>
@@ -27,7 +27,7 @@
2727
</md-field>
2828
</div>
2929

30-
<div class="md-flex">
30+
<div class="md-layout-item">
3131
<md-field>
3232
<label for="font">Font</label>
3333
<md-select v-model="font" name="font" id="font">

docs/app/pages/Components/Select/examples/DenseSelect.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div>
3-
<div class="md-layout-row md-gutter">
4-
<div class="md-flex">
3+
<div class="md-layout md-gutter">
4+
<div class="md-layout-item">
55
<md-field>
66
<label for="movies">Movies</label>
77
<md-select v-model="movies" name="movies" id="movies" md-dense multiple>
@@ -16,7 +16,7 @@
1616
</md-field>
1717
</div>
1818

19-
<div class="md-flex">
19+
<div class="md-layout-item">
2020
<md-field>
2121
<label for="country">Country</label>
2222
<md-select v-model="country" name="country" id="country" md-dense>
@@ -28,7 +28,7 @@
2828
</md-field>
2929
</div>
3030

31-
<div class="md-flex">
31+
<div class="md-layout-item">
3232
<md-field>
3333
<label for="font">Font</label>
3434
<md-select v-model="font" name="font" id="font" md-dense>

docs/app/pages/Components/Select/examples/DisabledSelect.vue

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<div class="md-layout-row md-gutter">
3-
<div class="md-flex">
2+
<div class="md-layout md-gutter">
3+
<div class="md-layout-item">
44
<md-field>
55
<label for="movie">Disabled Select</label>
66
<md-select v-model="movie" name="movie" id="movie" disabled>
@@ -15,7 +15,7 @@
1515
</md-field>
1616
</div>
1717

18-
<div class="md-flex">
18+
<div class="md-layout-item">
1919
<md-field>
2020
<label for="country">Disabled Options</label>
2121
<md-select v-model="country" name="country" id="country">
@@ -27,7 +27,7 @@
2727
</md-field>
2828
</div>
2929

30-
<div class="md-flex">
30+
<div class="md-layout-item">
3131
<md-field>
3232
<label for="food">Disabled groups</label>
3333
<md-select v-model="food" name="food" id="food">
@@ -64,9 +64,3 @@
6464
})
6565
}
6666
</script>
67-
68-
<style lang="scss" scoped>
69-
.md-field {
70-
max-width: 300px;
71-
}
72-
</style>

docs/app/pages/Components/Select/examples/MultipleSelect.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<div class="md-layout-row md-gutter">
3-
<div class="md-flex">
2+
<div class="md-layout md-gutter">
3+
<div class="md-layout-item">
44
<md-field>
55
<label for="movies">Movies</label>
66
<md-select v-model="selectedMovies" name="movies" id="movies" multiple>

docs/app/pages/Components/Select/examples/OptgroupSelect.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<div class="md-layout-row md-gutter">
3-
<div class="md-flex">
2+
<div class="md-layout md-gutter">
3+
<div class="md-layout-item">
44
<md-field>
55
<label for="food">Food</label>
66
<md-select v-model="food1" name="food" id="food">
@@ -25,7 +25,7 @@
2525
</md-field>
2626
</div>
2727

28-
<div class="md-flex">
28+
<div class="md-layout-item">
2929
<md-field>
3030
<label for="food">Food</label>
3131
<md-select v-model="food2" name="food" id="food" md-dense>

0 commit comments

Comments
 (0)