Skip to content

Commit 6179e6a

Browse files
agustinprodadamwathan
authored andcommitted
utility to make both axes resizables
1 parent 45c1c48 commit 6179e6a

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

__tests__/fixtures/tailwind-output.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3498,6 +3498,10 @@ button,
34983498
resize: horizontal;
34993499
}
35003500

3501+
.resize {
3502+
resize: both;
3503+
}
3504+
35013505
.shadow {
35023506
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.10);
35033507
}
@@ -7377,6 +7381,10 @@ button,
73777381
resize: horizontal;
73787382
}
73797383

7384+
.sm\:resize {
7385+
resize: both;
7386+
}
7387+
73807388
.sm\:shadow {
73817389
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.10);
73827390
}
@@ -11249,6 +11257,10 @@ button,
1124911257
resize: horizontal;
1125011258
}
1125111259

11260+
.md\:resize {
11261+
resize: both;
11262+
}
11263+
1125211264
.md\:shadow {
1125311265
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.10);
1125411266
}
@@ -15121,6 +15133,10 @@ button,
1512115133
resize: horizontal;
1512215134
}
1512315135

15136+
.lg\:resize {
15137+
resize: both;
15138+
}
15139+
1512415140
.lg\:shadow {
1512515141
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.10);
1512615142
}
@@ -18993,6 +19009,10 @@ button,
1899319009
resize: horizontal;
1899419010
}
1899519011

19012+
.xl\:resize {
19013+
resize: both;
19014+
}
19015+
1899619016
.xl\:shadow {
1899719017
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.10);
1899819018
}

docs/source/docs/resize.blade.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
extends: _layouts.documentation
33
title: "Resize"
4-
description: "Utilities for controlling the how a textarea can be resized."
4+
description: "Utilities for controlling the how an element can be resized."
55
features:
66
responsive: true
77
customizable: false
@@ -17,17 +17,22 @@ features:
1717
[
1818
'.resize-none',
1919
'resize: none;',
20-
"Make a textarea not resizable.",
20+
"Make a element not resizable.",
21+
],
22+
[
23+
'.resize',
24+
'resize: both;',
25+
"Make a element resizable in both axes.",
2126
],
2227
[
2328
'.resize-y',
2429
'resize: vertical;',
25-
"Make a textarea resizable vertically.",
30+
"Make a element resizable vertically.",
2631
],
2732
[
2833
'.resize-x',
2934
'resize: horizontal;',
30-
"Make a textarea resizable horizontally.",
35+
"Make a element resizable horizontally.",
3136
],
3237
]
3338
])

src/generators/resize.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export default function() {
55
'resize-none': { resize: 'none' },
66
'resize-y': { resize: 'vertical' },
77
'resize-x': { resize: 'horizontal' },
8+
resize: { resize: 'both' },
89
})
910
}

0 commit comments

Comments
 (0)