awesome-cheatsheets/frontend/tailwind.css

767 lines
13 KiB
CSS
Raw Normal View History

2020-03-28 18:51:38 +00:00
/* *******************************************************************************************
* TAILWIND.CSS
* DOCUMENTATION: https://tailwindcss.com/
* ******************************************************************************************* */
/*
2020-03-28 22:07:29 +00:00
* Available breakpoints
* ----------
* sm: min-width: 640px;
* md: min-width: 768px;
* lg: min-width: 1024px;
* xl: min-width: 1280px;
*/
2020-03-29 10:34:47 +00:00
/* *******************************************************************************************
* LAYOUT
* ******************************************************************************************* */
/*
2020-03-28 21:20:11 +00:00
* Container
* ----------
* A component for fixing an element's width to the current breakpoint.
*/
2020-03-29 10:34:47 +00:00
.container
2020-03-28 22:28:07 +00:00
2020-03-29 10:51:33 +00:00
/*
* Box-sizing
* ----------
* Utilities for controlling how the browser should calculate an element's total size.
* By default, only responsive variants are generated for box-sizing utilities.
*/
2020-03-29 10:34:47 +00:00
.box-border /* box-sizing: border-box; */
.box-content /* box-sizing: content-box; */
2020-03-29 10:51:33 +00:00
/*
* Display
* ----------
* Utilities for controlling the display box type of an element.
* By default, only responsive variants are generated for display utilities.
*/
2020-03-29 10:34:47 +00:00
.hidden /* display: none; */
.block /* display: block; */
.inline-block /* display: inline-block; */
.inline /* display: inline; */
.flex /* display: flex; */
.inline-flex /* display: inline-flex; */
.grid /* display: grid; */
.table /* display: table; */
.table-caption /* display: table-caption; */
.table-cell /* display: table-cell; */
.table-column /* display: table-column; */
.table-column-group /* display: table-column-group; */
.table-footer-group /* display: table-footer-group; */
.table-header-group /* display: table-header-group; */
.table-row-group /* display: table-row-group; */
.table-row /* display: table-row; */
2020-03-29 10:51:33 +00:00
/*
* Floats
* ----------
* Utilities for controlling the wrapping of content around an element.
* By default, only responsive variants are generated for float utilities.
*/
2020-03-29 10:34:47 +00:00
.float-right /* float: right; */
.float-left /* float: left; */
.float-none /* float: none; */
.clearfix /* &::after { content: ""; display: table; clear: both; } */
2020-03-29 10:51:33 +00:00
/*
* Clear
* ----------
* Utilities for controlling the wrapping of content around an element.
* By default, only responsive variants are generated for clear utilities.
*/
2020-03-29 10:34:47 +00:00
.clear-left /* clear: left; */
.clear-right /* clear: right; */
.clear-both /* clear: both; */
2020-03-29 10:51:33 +00:00
/*
* Object Fit
* ----------
* Utilities for controlling how a replaced element's content should be resized.
* By default, only responsive variants are generated for object-fit utilities.
*/
2020-03-29 10:34:47 +00:00
.object-contain /* object-fit: contain; */
.object-cover /* object-fit: cover; */
.object-fill /* object-fit: fill; */
.object-none /* object-fit: none; */
.object-scale-down /* object-fit: scale-down; */
2020-03-29 10:51:33 +00:00
/*
* Object Position
* ----------
* Utilities for controlling how a replaced element's content should be positioned within its container.
* By default, only responsive variants are generated for object position utilities.
*/
.object-bottom /* object-position: bottom; */
.object-center /* object-position: center; */
.object-left /* object-position: left; */
.object-left-bottom /* object-position: left bottom; */
.object-left-top /* object-position: left top; */
.object-right /* object-position: right; */
.object-right-bottom /* object-position: right bottom; */
.object-right-top /* object-position: right top; */
.object-top /* object-position: top; */
/*
* Overflow
* ----------
* Utilities for controlling how an element handles content that is too large for the container.
* By default, only responsive variants are generated for overflow utilities.
*/
.overflow-auto /* overflow: auto; */
.overflow-hidden /* overflow: hidden; */
.overflow-visible /* overflow: visible; */
.overflow-scroll /* overflow: scroll; */
.overflow-x-auto /* overflow-x: auto; */
.overflow-y-auto /* overflow-y: auto; */
.overflow-x-hidden /* overflow-x: hidden; */
.overflow-y-hidden /* overflow-y: hidden; */
.overflow-x-visible /* overflow-x: visible; */
.overflow-y-visible /* overflow-y: visible; */
.overflow-x-scroll /* overflow-x: scroll; */
.overflow-y-scroll /* overflow-y: scroll; */
.scrolling-touch /* -webkit-overflow-scrolling: touch; */
.scrolling-auto /* -webkit-overflow-scrolling: auto; */
/*
* Position
* ----------
* Utilities for controlling how an element is positioned in the DOM.
* By default, only responsive variants are generated for position utilities.
*/
.static /* position: static; */
.fixed /* position: fixed; */
.absolute /* position: absolute; */
.relative /* position: relative; */
.sticky /* position: sticky; */
/*
* Top / Right / Bottom / Left
* ----------
* Utilities for controlling the placement of positioned elements.
* By default, only responsive variants are generated for top, right, bottom, left, and inset utilities.
*/
2020-03-29 10:46:50 +00:00
2020-03-29 10:51:33 +00:00
.inset-0 /* top: 0; right: 0; bottom: 0; left: 0; */
.inset-y-0 /* top: 0; bottom: 0; */
.inset-x-0 /* right: 0; left: 0; */
.top-0 /* top: 0; */
.right-0 /* right: 0; */
.bottom-0 /* bottom: 0; */
.left-0 /* left: 0; */
.inset-auto /* top: auto; right: auto; bottom: auto; left: auto; */
.inset-y-auto /* top: auto; bottom: auto; */
.inset-x-auto /* left: auto; right: auto; */
.top-auto /* top: auto; */
.bottom-auto /* bottom: auto; */
.left-auto /* left: auto; */
.right-auto /* right: auto; */
2020-03-29 10:46:50 +00:00
2020-03-29 10:51:33 +00:00
/*
* Visibility
* ----------
2020-03-29 12:08:57 +00:00
* Utilities for controlling the visibility of an element.
* By default, only responsive variants are generated for visibility utilities.
2020-03-29 10:51:33 +00:00
*/
2020-03-29 12:08:57 +00:00
.visible /* visibility: visible; */
.invisible /* visibility: hidden; */
2020-03-29 10:51:33 +00:00
/*
* Z-Index
* ----------
2020-03-29 12:08:57 +00:00
* Utilities for controlling the stack order of an element.
* By default, only responsive variants are generated for z-index utilities.
2020-03-29 10:51:33 +00:00
*/
2020-03-29 12:08:57 +00:00
.z-0 /* z-index: 0; */
.z-10 /* z-index: 10; */
.z-20 /* z-index: 20; */
.z-30 /* z-index: 30; */
.z-40 /* z-index: 40; */
.z-50 /* z-index: 50; */
.z-auto /* z-index: auto; */
2020-03-29 10:51:33 +00:00
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* FLEXBOX
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* Flex Direction
* ----------
2020-03-29 12:08:57 +00:00
* Utilities for controlling the direction of flex items.
* By default, only responsive variants are generated for flex-direction utilities.
2020-03-29 10:51:33 +00:00
*/
2020-03-29 12:08:57 +00:00
.flex-row /* flex-direction: row; */
.flex-row-reverse /* flex-direction: row-reverse; */
.flex-col /* flex-direction: column; */
.flex-col-reverse /* flex-direction: column-reverse; */
2020-03-29 10:51:33 +00:00
/*
* Flex Wrap
* ----------
2020-03-29 12:13:05 +00:00
* Utilities for controlling how flex items wrap.
* By default, only responsive variants are generated for flex-wrap utilities.
2020-03-29 10:51:33 +00:00
*/
2020-03-29 12:13:05 +00:00
.flex-no-wrap /* flex-wrap: nowrap; */
.flex-wrap /* flex-wrap: wrap; */
.flex-wrap-reverse /* flex-wrap: wrap-reverse; */
2020-03-29 10:51:33 +00:00
/*
* Align Items
* ----------
*
*
*/
/*
* Align Content
* ----------
*
*
*/
/*
* Align Self
* ----------
*
*
*/
/*
* Justify Content
* ----------
*
*
*/
/*
* Flex
* ----------
*
*
*/
/*
* Flex Grow
* ----------
*
*
*/
/*
* Flex Shrink
* ----------
*
*
*/
/*
* Order
* ----------
*
*
*/
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* GRID
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* Grid Template Columns
* ----------
*
*
*/
/*
* Grid Column Start / End
* ----------
*
*
*/
/*
* Grid Template Rows
* ----------
*
*
*/
/*
* Grid Row Start / End
* ----------
*
*
*/
/*
* Gap
* ----------
*
*
*/
/*
* Grid Auto Flow
* ----------
*
*
*/
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* SPACING
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* Padding
* ----------
*
*
*/
/*
* Margin
* ----------
*
*
*/
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* SIZING
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* Width
* ----------
*
*
*/
/*
* Min-Width
* ----------
*
*
*/
/*
* Max-Width
* ----------
*
*
*/
/*
* Height
* ----------
*
*
*/
/*
* Min-Height
* ----------
*
*
*/
/*
* Max-Height
* ----------
*
*
*/
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* TYPOGRAPHY
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* Font Family
* ----------
*
*
*/
/*
* Font Size
* ----------
*
*
*/
/*
* Font Smoothing
* ----------
*
*
*/
/*
* Font Style
* ----------
*
*
*/
/*
* Font Weight
* ----------
*
*
*/
/*
* Letter Spacing
* ----------
*
*
*/
/*
* Line Height
* ----------
*
*
*/
/*
* List Style Type
* ----------
*
*
*/
/*
* List Style Position
* ----------
*
*
*/
/*
* Placeholder Color
* ----------
*
*
*/
/*
* Text Align
* ----------
*
*
*/
/*
* Text Color
* ----------
*
*
*/
/*
* Text Decoration
* ----------
*
*
*/
/*
* Text Transform
* ----------
*
*
*/
/*
* Vertical Align
* ----------
*
*
*/
/*
* Whitespace
* ----------
*
*
*/
/*
* Word Break
* ----------
*
*
*/
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* BACKGROUNDS
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* BACKGROUND ATTACHMENT
* ----------
*
*
*/
/*
* BACKGROUND COLOR
* ----------
*
*
*/
/*
* BACKGROUND POSITION
* ----------
*
*
*/
/*
* BACKGROUND REPEAT
* ----------
*
*
*/
/*
* BACKGROUND SIZE
* ----------
*
*
*/
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* BORDERS
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* BORDER COLOR
* ----------
*
*
*/
/*
* BORDER STYLE
* ----------
*
*
*/
/*
* BORDER WIDTH
* ----------
*
*
*/
/*
* BORDER RADIUS
* ----------
*
*
*/
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* TABLES
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* BORDER COLLAPSE
* ----------
*
*
*/
/*
* TABLE LAYOUT
* ----------
*
*
*/
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* EFFECTS
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* BOX SHADOW
* ----------
*
*
*/
2020-03-29 10:34:47 +00:00
2020-03-29 10:51:33 +00:00
/*
* OPACITY
* ----------
*
*
*/
2020-03-29 10:34:47 +00:00
2020-03-29 10:51:33 +00:00
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* TRANSITIONS
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* TRANSITION PROPERTY
* ----------
*
*
*/
/*
* TRANSITION DURATION
* ----------
*
*
*/
/*
* TRANSITION TIMING FUNCTION
* ----------
*
*
*/
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* TRANSFORMS
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* SCALE
* ----------
*
*
*/
/*
* ROTATE
* ----------
*
*
*/
/*
* TRANSLATE
* ----------
*
*
*/
/*
* SKEW
* ----------
*
*
*/
/*
* TRANSFORM ORIGIN
* ----------
*
*
*/
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* INTERACTIVITY
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* APPEARANCE
* ----------
*
*
*/
/*
* CURSOR
* ----------
*
*
*/
/*
* OUTLINE
* ----------
*
*
*/
/*
* POINTER EVENTS
* ----------
*
*
*/
/*
* RESIZE
* ----------
*
*
*/
/*
* USER SELECT
* ----------
*
*
*/
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* SVG
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* FILL
* ----------
*
*
*/
/*
* STROKE
* ----------
*
*
*/
/*
* STROKE WIDTH
* ----------
*
*
*/
/* *******************************************************************************************
2020-03-29 10:34:47 +00:00
* ACCESSIBILITY
* ******************************************************************************************* */
2020-03-29 10:51:33 +00:00
/*
* SCREEN READERS
* ----------
*
*
*/
2020-03-29 10:34:47 +00:00