Skip to content

Commit

Permalink
Merge pull request tailwindlabs#1280 from tailwindcss/shadow-sm
Browse files Browse the repository at this point in the history
Add `shadow-sm`
  • Loading branch information
adamwathan authored Jan 8, 2020
2 parents c745007 + 0603caf commit b8d0870
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 0 deletions.
60 changes: 60 additions & 0 deletions __tests__/fixtures/tailwind-output-important.css
Original file line number Diff line number Diff line change
Expand Up @@ -6761,6 +6761,10 @@ video {
resize: both !important;
}

.shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.shadow {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -6793,6 +6797,10 @@ video {
box-shadow: none !important;
}

.hover\:shadow-sm:hover {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.hover\:shadow:hover {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -6825,6 +6833,10 @@ video {
box-shadow: none !important;
}

.focus\:shadow-sm:focus {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.focus\:shadow:focus {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -16528,6 +16540,10 @@ video {
resize: both !important;
}

.sm\:shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.sm\:shadow {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -16560,6 +16576,10 @@ video {
box-shadow: none !important;
}

.sm\:hover\:shadow-sm:hover {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.sm\:hover\:shadow:hover {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -16592,6 +16612,10 @@ video {
box-shadow: none !important;
}

.sm\:focus\:shadow-sm:focus {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.sm\:focus\:shadow:focus {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -26296,6 +26320,10 @@ video {
resize: both !important;
}

.md\:shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.md\:shadow {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -26328,6 +26356,10 @@ video {
box-shadow: none !important;
}

.md\:hover\:shadow-sm:hover {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.md\:hover\:shadow:hover {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -26360,6 +26392,10 @@ video {
box-shadow: none !important;
}

.md\:focus\:shadow-sm:focus {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.md\:focus\:shadow:focus {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -36064,6 +36100,10 @@ video {
resize: both !important;
}

.lg\:shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.lg\:shadow {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -36096,6 +36136,10 @@ video {
box-shadow: none !important;
}

.lg\:hover\:shadow-sm:hover {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.lg\:hover\:shadow:hover {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -36128,6 +36172,10 @@ video {
box-shadow: none !important;
}

.lg\:focus\:shadow-sm:focus {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.lg\:focus\:shadow:focus {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -45832,6 +45880,10 @@ video {
resize: both !important;
}

.xl\:shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.xl\:shadow {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -45864,6 +45916,10 @@ video {
box-shadow: none !important;
}

.xl\:hover\:shadow-sm:hover {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.xl\:hover\:shadow:hover {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down Expand Up @@ -45896,6 +45952,10 @@ video {
box-shadow: none !important;
}

.xl\:focus\:shadow-sm:focus {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.xl\:focus\:shadow:focus {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}
Expand Down
60 changes: 60 additions & 0 deletions __tests__/fixtures/tailwind-output.css
Original file line number Diff line number Diff line change
Expand Up @@ -6761,6 +6761,10 @@ video {
resize: both;
}

.shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.shadow {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -6793,6 +6797,10 @@ video {
box-shadow: none;
}

.hover\:shadow-sm:hover {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.hover\:shadow:hover {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -6825,6 +6833,10 @@ video {
box-shadow: none;
}

.focus\:shadow-sm:focus {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.focus\:shadow:focus {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -16528,6 +16540,10 @@ video {
resize: both;
}

.sm\:shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.sm\:shadow {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -16560,6 +16576,10 @@ video {
box-shadow: none;
}

.sm\:hover\:shadow-sm:hover {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.sm\:hover\:shadow:hover {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -16592,6 +16612,10 @@ video {
box-shadow: none;
}

.sm\:focus\:shadow-sm:focus {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.sm\:focus\:shadow:focus {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -26296,6 +26320,10 @@ video {
resize: both;
}

.md\:shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.md\:shadow {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -26328,6 +26356,10 @@ video {
box-shadow: none;
}

.md\:hover\:shadow-sm:hover {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.md\:hover\:shadow:hover {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -26360,6 +26392,10 @@ video {
box-shadow: none;
}

.md\:focus\:shadow-sm:focus {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.md\:focus\:shadow:focus {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -36064,6 +36100,10 @@ video {
resize: both;
}

.lg\:shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.lg\:shadow {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -36096,6 +36136,10 @@ video {
box-shadow: none;
}

.lg\:hover\:shadow-sm:hover {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.lg\:hover\:shadow:hover {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -36128,6 +36172,10 @@ video {
box-shadow: none;
}

.lg\:focus\:shadow-sm:focus {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.lg\:focus\:shadow:focus {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -45832,6 +45880,10 @@ video {
resize: both;
}

.xl\:shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.xl\:shadow {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -45864,6 +45916,10 @@ video {
box-shadow: none;
}

.xl\:hover\:shadow-sm:hover {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.xl\:hover\:shadow:hover {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down Expand Up @@ -45896,6 +45952,10 @@ video {
box-shadow: none;
}

.xl\:focus\:shadow-sm:focus {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.xl\:focus\:shadow:focus {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
Expand Down
1 change: 1 addition & 0 deletions stubs/defaultConfig.stub.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ module.exports = {
'8': '8px',
},
boxShadow: {
sm: '0 1px 2px 0 rgba(0, 0, 0, 0.04)',
default: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
Expand Down

0 comments on commit b8d0870

Please sign in to comment.