Skip to content

Commit 6cbf837

Browse files
committed
Some starting work
1 parent b48dbc2 commit 6cbf837

3 files changed

Lines changed: 82 additions & 7 deletions

File tree

tailwind/Example1/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"dev": "tailwindcss -i ./src/input.css -o ./src/output.css --watch"
8+
"dev": "tailwindcss -i ./src/input.css -o ./src/style.css --watch"
99
},
1010
"keywords": [],
1111
"author": "",

tailwind/Example1/src/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Tailwind</title>
7-
<link href="./output.css" rel="stylesheet">
7+
<link href="./style.css" rel="stylesheet">
88
</head>
9-
<body>
10-
<h1 class="bg-red-500">Hello</h1>
9+
<body class="bg-blue-400">
10+
<div class="container mx-auto px-2">
11+
<button class="bg-blue-500 hover:bg-blue-400 text-white py-2 px-4 rounded">Press</button>
12+
</div>
1113
</body>
1214
</html>
Lines changed: 76 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,12 +544,85 @@ video {
544544
--tw-backdrop-sepia: ;
545545
}
546546

547-
.bg-slate-500 {
548-
--tw-bg-opacity: 1;
549-
background-color: rgb(100 116 139 / var(--tw-bg-opacity));
547+
.container {
548+
width: 100%;
549+
}
550+
551+
@media (min-width: 640px) {
552+
.container {
553+
max-width: 640px;
554+
}
555+
}
556+
557+
@media (min-width: 768px) {
558+
.container {
559+
max-width: 768px;
560+
}
561+
}
562+
563+
@media (min-width: 1024px) {
564+
.container {
565+
max-width: 1024px;
566+
}
567+
}
568+
569+
@media (min-width: 1280px) {
570+
.container {
571+
max-width: 1280px;
572+
}
573+
}
574+
575+
@media (min-width: 1536px) {
576+
.container {
577+
max-width: 1536px;
578+
}
579+
}
580+
581+
.mx-auto {
582+
margin-left: auto;
583+
margin-right: auto;
584+
}
585+
586+
.rounded {
587+
border-radius: 0.25rem;
550588
}
551589

552590
.bg-red-500 {
553591
--tw-bg-opacity: 1;
554592
background-color: rgb(239 68 68 / var(--tw-bg-opacity));
593+
}
594+
595+
.bg-blue-400 {
596+
--tw-bg-opacity: 1;
597+
background-color: rgb(96 165 250 / var(--tw-bg-opacity));
598+
}
599+
600+
.bg-blue-500 {
601+
--tw-bg-opacity: 1;
602+
background-color: rgb(59 130 246 / var(--tw-bg-opacity));
603+
}
604+
605+
.py-2 {
606+
padding-top: 0.5rem;
607+
padding-bottom: 0.5rem;
608+
}
609+
610+
.px-4 {
611+
padding-left: 1rem;
612+
padding-right: 1rem;
613+
}
614+
615+
.px-2 {
616+
padding-left: 0.5rem;
617+
padding-right: 0.5rem;
618+
}
619+
620+
.text-white {
621+
--tw-text-opacity: 1;
622+
color: rgb(255 255 255 / var(--tw-text-opacity));
623+
}
624+
625+
.hover\:bg-blue-400:hover {
626+
--tw-bg-opacity: 1;
627+
background-color: rgb(96 165 250 / var(--tw-bg-opacity));
555628
}

0 commit comments

Comments
 (0)