Skip to content

Instantly share code, notes, and snippets.

View mtzrmzia's full-sized avatar
🏖️
Working Remotely

Alfredo Martínez mtzrmzia

🏖️
Working Remotely
View GitHub Profile
@mtzrmzia
mtzrmzia / UtilityComponentizedClasses.css
Created February 26, 2020 02:59
Utility + componentized classes
/* Clases de compononentes */
.btn {
font-size: 16px;
}
/* Utility Classes */
.large-text {
@media screen and (min-width: 700px) {
font-size: 20px;
}
@mtzrmzia
mtzrmzia / componentizedClasses.css
Created February 26, 2020 02:56
Clases componentes
.btn {
font-size: 16px;
@media screen and (min-width: 700px) {
font-size: 20px;
}
@media screen and (min-width: 1000px) {
font-size: 24px;
}
}
@mtzrmzia
mtzrmzia / specificityExample.css
Created February 26, 2020 02:50
Tailwind Specificity Example
button.btn {
/* Mayor especificidad incluso en pantallas de más de 20px */
font-size: 16px;
}
@media screen and (min-width: 20px) {
.large-text {
font-size: 40px;
}
}
@mtzrmzia
mtzrmzia / tailwindSpecificity.css
Created February 26, 2020 02:47
Tailwind specificity
/* Otras clases (componentes) */
.btn {
color: blue;
}
/* Media Queries */
@media (min-width: 640px) {
.sm\:text-base {
font-size: 16px;
}
@mtzrmzia
mtzrmzia / MyMediaQueries.css
Created February 26, 2020 02:21
Custom Media Queries
@media (min-width: 640px) and (max-width: 767px) {
/* mobile */
}
@media (min-width: 768px) and (max-width: 1023px) {
/* tablet */
}
@media (min-width: 1024px) {
/* desktop */
}
@mtzrmzia
mtzrmzia / TailwindMediaQueries.css
Created February 26, 2020 02:12
Media Queries de TailwindCSS
@media (min-width: 640px) {
/* sm */
}
@media (min-width: 768px) {
/* md */
}
@media (min-width: 1024px) {
/* lg */
}