From 84e181657217962909dc88f698412cdaa4431797 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Thu, 26 Dec 2019 15:43:47 -0500 Subject: [PATCH] Add rounded-md --- .../fixtures/tailwind-output-important.css | 200 ++++++++++++++++++ __tests__/fixtures/tailwind-output.css | 200 ++++++++++++++++++ stubs/defaultConfig.stub.js | 1 + 3 files changed, 401 insertions(+) diff --git a/__tests__/fixtures/tailwind-output-important.css b/__tests__/fixtures/tailwind-output-important.css index ba42c8d8d..ba25219b7 100644 --- a/__tests__/fixtures/tailwind-output-important.css +++ b/__tests__/fixtures/tailwind-output-important.css @@ -2991,6 +2991,10 @@ video { border-radius: 0.25rem !important; } +.rounded-md { + border-radius: 0.375rem !important; +} + .rounded-lg { border-radius: 0.5rem !important; } @@ -3059,6 +3063,26 @@ video { border-bottom-left-radius: 0.25rem !important; } +.rounded-t-md { + border-top-left-radius: 0.375rem !important; + border-top-right-radius: 0.375rem !important; +} + +.rounded-r-md { + border-top-right-radius: 0.375rem !important; + border-bottom-right-radius: 0.375rem !important; +} + +.rounded-b-md { + border-bottom-right-radius: 0.375rem !important; + border-bottom-left-radius: 0.375rem !important; +} + +.rounded-l-md { + border-top-left-radius: 0.375rem !important; + border-bottom-left-radius: 0.375rem !important; +} + .rounded-t-lg { border-top-left-radius: 0.5rem !important; border-top-right-radius: 0.5rem !important; @@ -3147,6 +3171,22 @@ video { border-bottom-left-radius: 0.25rem !important; } +.rounded-tl-md { + border-top-left-radius: 0.375rem !important; +} + +.rounded-tr-md { + border-top-right-radius: 0.375rem !important; +} + +.rounded-br-md { + border-bottom-right-radius: 0.375rem !important; +} + +.rounded-bl-md { + border-bottom-left-radius: 0.375rem !important; +} + .rounded-tl-lg { border-top-left-radius: 0.5rem !important; } @@ -12261,6 +12301,10 @@ video { border-radius: 0.25rem !important; } + .sm\:rounded-md { + border-radius: 0.375rem !important; + } + .sm\:rounded-lg { border-radius: 0.5rem !important; } @@ -12329,6 +12373,26 @@ video { border-bottom-left-radius: 0.25rem !important; } + .sm\:rounded-t-md { + border-top-left-radius: 0.375rem !important; + border-top-right-radius: 0.375rem !important; + } + + .sm\:rounded-r-md { + border-top-right-radius: 0.375rem !important; + border-bottom-right-radius: 0.375rem !important; + } + + .sm\:rounded-b-md { + border-bottom-right-radius: 0.375rem !important; + border-bottom-left-radius: 0.375rem !important; + } + + .sm\:rounded-l-md { + border-top-left-radius: 0.375rem !important; + border-bottom-left-radius: 0.375rem !important; + } + .sm\:rounded-t-lg { border-top-left-radius: 0.5rem !important; border-top-right-radius: 0.5rem !important; @@ -12417,6 +12481,22 @@ video { border-bottom-left-radius: 0.25rem !important; } + .sm\:rounded-tl-md { + border-top-left-radius: 0.375rem !important; + } + + .sm\:rounded-tr-md { + border-top-right-radius: 0.375rem !important; + } + + .sm\:rounded-br-md { + border-bottom-right-radius: 0.375rem !important; + } + + .sm\:rounded-bl-md { + border-bottom-left-radius: 0.375rem !important; + } + .sm\:rounded-tl-lg { border-top-left-radius: 0.5rem !important; } @@ -21532,6 +21612,10 @@ video { border-radius: 0.25rem !important; } + .md\:rounded-md { + border-radius: 0.375rem !important; + } + .md\:rounded-lg { border-radius: 0.5rem !important; } @@ -21600,6 +21684,26 @@ video { border-bottom-left-radius: 0.25rem !important; } + .md\:rounded-t-md { + border-top-left-radius: 0.375rem !important; + border-top-right-radius: 0.375rem !important; + } + + .md\:rounded-r-md { + border-top-right-radius: 0.375rem !important; + border-bottom-right-radius: 0.375rem !important; + } + + .md\:rounded-b-md { + border-bottom-right-radius: 0.375rem !important; + border-bottom-left-radius: 0.375rem !important; + } + + .md\:rounded-l-md { + border-top-left-radius: 0.375rem !important; + border-bottom-left-radius: 0.375rem !important; + } + .md\:rounded-t-lg { border-top-left-radius: 0.5rem !important; border-top-right-radius: 0.5rem !important; @@ -21688,6 +21792,22 @@ video { border-bottom-left-radius: 0.25rem !important; } + .md\:rounded-tl-md { + border-top-left-radius: 0.375rem !important; + } + + .md\:rounded-tr-md { + border-top-right-radius: 0.375rem !important; + } + + .md\:rounded-br-md { + border-bottom-right-radius: 0.375rem !important; + } + + .md\:rounded-bl-md { + border-bottom-left-radius: 0.375rem !important; + } + .md\:rounded-tl-lg { border-top-left-radius: 0.5rem !important; } @@ -30803,6 +30923,10 @@ video { border-radius: 0.25rem !important; } + .lg\:rounded-md { + border-radius: 0.375rem !important; + } + .lg\:rounded-lg { border-radius: 0.5rem !important; } @@ -30871,6 +30995,26 @@ video { border-bottom-left-radius: 0.25rem !important; } + .lg\:rounded-t-md { + border-top-left-radius: 0.375rem !important; + border-top-right-radius: 0.375rem !important; + } + + .lg\:rounded-r-md { + border-top-right-radius: 0.375rem !important; + border-bottom-right-radius: 0.375rem !important; + } + + .lg\:rounded-b-md { + border-bottom-right-radius: 0.375rem !important; + border-bottom-left-radius: 0.375rem !important; + } + + .lg\:rounded-l-md { + border-top-left-radius: 0.375rem !important; + border-bottom-left-radius: 0.375rem !important; + } + .lg\:rounded-t-lg { border-top-left-radius: 0.5rem !important; border-top-right-radius: 0.5rem !important; @@ -30959,6 +31103,22 @@ video { border-bottom-left-radius: 0.25rem !important; } + .lg\:rounded-tl-md { + border-top-left-radius: 0.375rem !important; + } + + .lg\:rounded-tr-md { + border-top-right-radius: 0.375rem !important; + } + + .lg\:rounded-br-md { + border-bottom-right-radius: 0.375rem !important; + } + + .lg\:rounded-bl-md { + border-bottom-left-radius: 0.375rem !important; + } + .lg\:rounded-tl-lg { border-top-left-radius: 0.5rem !important; } @@ -40074,6 +40234,10 @@ video { border-radius: 0.25rem !important; } + .xl\:rounded-md { + border-radius: 0.375rem !important; + } + .xl\:rounded-lg { border-radius: 0.5rem !important; } @@ -40142,6 +40306,26 @@ video { border-bottom-left-radius: 0.25rem !important; } + .xl\:rounded-t-md { + border-top-left-radius: 0.375rem !important; + border-top-right-radius: 0.375rem !important; + } + + .xl\:rounded-r-md { + border-top-right-radius: 0.375rem !important; + border-bottom-right-radius: 0.375rem !important; + } + + .xl\:rounded-b-md { + border-bottom-right-radius: 0.375rem !important; + border-bottom-left-radius: 0.375rem !important; + } + + .xl\:rounded-l-md { + border-top-left-radius: 0.375rem !important; + border-bottom-left-radius: 0.375rem !important; + } + .xl\:rounded-t-lg { border-top-left-radius: 0.5rem !important; border-top-right-radius: 0.5rem !important; @@ -40230,6 +40414,22 @@ video { border-bottom-left-radius: 0.25rem !important; } + .xl\:rounded-tl-md { + border-top-left-radius: 0.375rem !important; + } + + .xl\:rounded-tr-md { + border-top-right-radius: 0.375rem !important; + } + + .xl\:rounded-br-md { + border-bottom-right-radius: 0.375rem !important; + } + + .xl\:rounded-bl-md { + border-bottom-left-radius: 0.375rem !important; + } + .xl\:rounded-tl-lg { border-top-left-radius: 0.5rem !important; } diff --git a/__tests__/fixtures/tailwind-output.css b/__tests__/fixtures/tailwind-output.css index 05a1c8b4f..a1f2d44a0 100644 --- a/__tests__/fixtures/tailwind-output.css +++ b/__tests__/fixtures/tailwind-output.css @@ -2991,6 +2991,10 @@ video { border-radius: 0.25rem; } +.rounded-md { + border-radius: 0.375rem; +} + .rounded-lg { border-radius: 0.5rem; } @@ -3059,6 +3063,26 @@ video { border-bottom-left-radius: 0.25rem; } +.rounded-t-md { + border-top-left-radius: 0.375rem; + border-top-right-radius: 0.375rem; +} + +.rounded-r-md { + border-top-right-radius: 0.375rem; + border-bottom-right-radius: 0.375rem; +} + +.rounded-b-md { + border-bottom-right-radius: 0.375rem; + border-bottom-left-radius: 0.375rem; +} + +.rounded-l-md { + border-top-left-radius: 0.375rem; + border-bottom-left-radius: 0.375rem; +} + .rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; @@ -3147,6 +3171,22 @@ video { border-bottom-left-radius: 0.25rem; } +.rounded-tl-md { + border-top-left-radius: 0.375rem; +} + +.rounded-tr-md { + border-top-right-radius: 0.375rem; +} + +.rounded-br-md { + border-bottom-right-radius: 0.375rem; +} + +.rounded-bl-md { + border-bottom-left-radius: 0.375rem; +} + .rounded-tl-lg { border-top-left-radius: 0.5rem; } @@ -12261,6 +12301,10 @@ video { border-radius: 0.25rem; } + .sm\:rounded-md { + border-radius: 0.375rem; + } + .sm\:rounded-lg { border-radius: 0.5rem; } @@ -12329,6 +12373,26 @@ video { border-bottom-left-radius: 0.25rem; } + .sm\:rounded-t-md { + border-top-left-radius: 0.375rem; + border-top-right-radius: 0.375rem; + } + + .sm\:rounded-r-md { + border-top-right-radius: 0.375rem; + border-bottom-right-radius: 0.375rem; + } + + .sm\:rounded-b-md { + border-bottom-right-radius: 0.375rem; + border-bottom-left-radius: 0.375rem; + } + + .sm\:rounded-l-md { + border-top-left-radius: 0.375rem; + border-bottom-left-radius: 0.375rem; + } + .sm\:rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; @@ -12417,6 +12481,22 @@ video { border-bottom-left-radius: 0.25rem; } + .sm\:rounded-tl-md { + border-top-left-radius: 0.375rem; + } + + .sm\:rounded-tr-md { + border-top-right-radius: 0.375rem; + } + + .sm\:rounded-br-md { + border-bottom-right-radius: 0.375rem; + } + + .sm\:rounded-bl-md { + border-bottom-left-radius: 0.375rem; + } + .sm\:rounded-tl-lg { border-top-left-radius: 0.5rem; } @@ -21532,6 +21612,10 @@ video { border-radius: 0.25rem; } + .md\:rounded-md { + border-radius: 0.375rem; + } + .md\:rounded-lg { border-radius: 0.5rem; } @@ -21600,6 +21684,26 @@ video { border-bottom-left-radius: 0.25rem; } + .md\:rounded-t-md { + border-top-left-radius: 0.375rem; + border-top-right-radius: 0.375rem; + } + + .md\:rounded-r-md { + border-top-right-radius: 0.375rem; + border-bottom-right-radius: 0.375rem; + } + + .md\:rounded-b-md { + border-bottom-right-radius: 0.375rem; + border-bottom-left-radius: 0.375rem; + } + + .md\:rounded-l-md { + border-top-left-radius: 0.375rem; + border-bottom-left-radius: 0.375rem; + } + .md\:rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; @@ -21688,6 +21792,22 @@ video { border-bottom-left-radius: 0.25rem; } + .md\:rounded-tl-md { + border-top-left-radius: 0.375rem; + } + + .md\:rounded-tr-md { + border-top-right-radius: 0.375rem; + } + + .md\:rounded-br-md { + border-bottom-right-radius: 0.375rem; + } + + .md\:rounded-bl-md { + border-bottom-left-radius: 0.375rem; + } + .md\:rounded-tl-lg { border-top-left-radius: 0.5rem; } @@ -30803,6 +30923,10 @@ video { border-radius: 0.25rem; } + .lg\:rounded-md { + border-radius: 0.375rem; + } + .lg\:rounded-lg { border-radius: 0.5rem; } @@ -30871,6 +30995,26 @@ video { border-bottom-left-radius: 0.25rem; } + .lg\:rounded-t-md { + border-top-left-radius: 0.375rem; + border-top-right-radius: 0.375rem; + } + + .lg\:rounded-r-md { + border-top-right-radius: 0.375rem; + border-bottom-right-radius: 0.375rem; + } + + .lg\:rounded-b-md { + border-bottom-right-radius: 0.375rem; + border-bottom-left-radius: 0.375rem; + } + + .lg\:rounded-l-md { + border-top-left-radius: 0.375rem; + border-bottom-left-radius: 0.375rem; + } + .lg\:rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; @@ -30959,6 +31103,22 @@ video { border-bottom-left-radius: 0.25rem; } + .lg\:rounded-tl-md { + border-top-left-radius: 0.375rem; + } + + .lg\:rounded-tr-md { + border-top-right-radius: 0.375rem; + } + + .lg\:rounded-br-md { + border-bottom-right-radius: 0.375rem; + } + + .lg\:rounded-bl-md { + border-bottom-left-radius: 0.375rem; + } + .lg\:rounded-tl-lg { border-top-left-radius: 0.5rem; } @@ -40074,6 +40234,10 @@ video { border-radius: 0.25rem; } + .xl\:rounded-md { + border-radius: 0.375rem; + } + .xl\:rounded-lg { border-radius: 0.5rem; } @@ -40142,6 +40306,26 @@ video { border-bottom-left-radius: 0.25rem; } + .xl\:rounded-t-md { + border-top-left-radius: 0.375rem; + border-top-right-radius: 0.375rem; + } + + .xl\:rounded-r-md { + border-top-right-radius: 0.375rem; + border-bottom-right-radius: 0.375rem; + } + + .xl\:rounded-b-md { + border-bottom-right-radius: 0.375rem; + border-bottom-left-radius: 0.375rem; + } + + .xl\:rounded-l-md { + border-top-left-radius: 0.375rem; + border-bottom-left-radius: 0.375rem; + } + .xl\:rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; @@ -40230,6 +40414,22 @@ video { border-bottom-left-radius: 0.25rem; } + .xl\:rounded-tl-md { + border-top-left-radius: 0.375rem; + } + + .xl\:rounded-tr-md { + border-top-right-radius: 0.375rem; + } + + .xl\:rounded-br-md { + border-bottom-right-radius: 0.375rem; + } + + .xl\:rounded-bl-md { + border-bottom-left-radius: 0.375rem; + } + .xl\:rounded-tl-lg { border-top-left-radius: 0.5rem; } diff --git a/stubs/defaultConfig.stub.js b/stubs/defaultConfig.stub.js index 5db3f8c8e..c2b545f5f 100644 --- a/stubs/defaultConfig.stub.js +++ b/stubs/defaultConfig.stub.js @@ -172,6 +172,7 @@ module.exports = { none: '0', sm: '0.125rem', default: '0.25rem', + md: '0.375rem', lg: '0.5rem', full: '9999px', },