Skip to content

Commit 4f64b52

Browse files
swseverancejosephperrott
authored andcommitted
docs: adjust element spacing within examples (#15369)
* Adjusts the amount of spacing between crowded UI elements in the following examples: button-toggle-appearance, datepicker-api, datepicker-color, datepicker-locale, datepicker-value, expansion-steps, focus-monitor-directives, focus-monitor-focus-via, focus-monitor-overview, form-field-label, input-form, paginator-configurable, sidenav-backdrop, snack-bar-overview, snack-bar-position, text-field-autofill-directive, text-field-autofill-monitor, text-field-autosize-textarea
1 parent db44907 commit 4f64b52

File tree

18 files changed

+63
-13
lines changed

18 files changed

+63
-13
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/** No CSS for this example */
1+
mat-button-toggle-group {
2+
margin-left: 12px;
3+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/** No CSS for this example */
1+
mat-form-field {
2+
margin-right: 12px;
3+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/** No CSS for this example */
1+
mat-form-field {
2+
margin-right: 12px;
3+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/** No CSS for this example */
1+
mat-form-field {
2+
margin-right: 12px;
3+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/** No CSS for this example */
1+
mat-form-field {
2+
margin-right: 12px;
3+
}

src/material-examples/expansion-steps/expansion-steps-example.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77
justify-content: space-between;
88
align-items: center;
99
}
10+
11+
mat-form-field {
12+
margin-right: 12px;
13+
}

src/material-examples/focus-monitor-directives/focus-monitor-directives-example.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@
1717
.example-focus-monitor .cdk-program-focused {
1818
background: rgba(255, 0, 255, 0.5);
1919
}
20+
21+
button {
22+
margin-right: 12px;
23+
}

src/material-examples/focus-monitor-focus-via/focus-monitor-focus-via-example.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@
2121
.example-focus-monitor button:focus {
2222
box-shadow: 0 0 30px cyan;
2323
}
24+
25+
mat-form-field,
26+
button {
27+
margin-right: 12px;
28+
}

src/material-examples/focus-monitor-overview/focus-monitor-overview-example.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@
1717
.example-focus-monitor .cdk-program-focused {
1818
background: rgba(255, 0, 255, 0.5);
1919
}
20+
21+
button {
22+
margin-right: 12px;
23+
}

src/material-examples/form-field-label/form-field-label-example.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
}
1717

1818
.example-container .mat-radio-button {
19-
margin: 0 5px;
19+
margin: 0 12px;
2020
}

src/material-examples/input-form/input-form-example.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77
.example-full-width {
88
width: 100%;
99
}
10+
11+
td {
12+
padding-right: 8px;
13+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/** No CSS for this example */
1+
mat-form-field {
2+
margin-right: 12px;
3+
}
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
.example-container {
22
width: 400px;
33
height: 200px;
4-
margin: 10px;
4+
margin: 12px;
55
border: 1px solid #555;
66
}
7+
8+
mat-drawer-content {
9+
padding: 12px;
10+
display: flex;
11+
flex-direction: column;
12+
align-items: flex-start;
13+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/** No CSS for this example */
1+
mat-form-field {
2+
margin-right: 12px;
3+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/** No CSS for this example */
1+
mat-form-field {
2+
margin-right: 12px;
3+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/** No CSS for this example */
1+
mat-form-field {
2+
margin-right: 12px;
3+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/** No CSS for this example */
1+
mat-form-field {
2+
margin-right: 12px;
3+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/** No CSS for this example */
1+
mat-form-field {
2+
margin-right: 12px;
3+
}

0 commit comments

Comments
 (0)