feat(15): initial styling footer-controls section
This commit is contained in:
parent
d8e25ff95d
commit
8b62506f00
|
@ -28,6 +28,6 @@ html {
|
|||
font-style: normal;
|
||||
}
|
||||
|
||||
div, p, button, ol, li, summary {
|
||||
outline: 1px solid red;
|
||||
}
|
||||
/* div, p, button, ol, li, summary, article { */
|
||||
/* outline: 1px solid red; */
|
||||
/* } */
|
||||
|
|
|
@ -559,10 +559,6 @@ video {
|
|||
height: 2.5rem;
|
||||
}
|
||||
|
||||
.h-20 {
|
||||
height: 5rem;
|
||||
}
|
||||
|
||||
.h-24 {
|
||||
height: 6rem;
|
||||
}
|
||||
|
@ -603,6 +599,10 @@ video {
|
|||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.grid-cols-\[repeat\(4\2c _auto\)\] {
|
||||
grid-template-columns: repeat(4, auto);
|
||||
}
|
||||
|
||||
.flex-row {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
@ -615,6 +615,10 @@ video {
|
|||
place-content: center;
|
||||
}
|
||||
|
||||
.content-center {
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.items-center {
|
||||
align-items: center;
|
||||
}
|
||||
|
@ -678,6 +682,11 @@ video {
|
|||
padding-right: 1.5rem;
|
||||
}
|
||||
|
||||
.py-4 {
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.py-8 {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
|
@ -688,6 +697,19 @@ video {
|
|||
line-height: 2.25rem;
|
||||
}
|
||||
|
||||
.text-sm {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
}
|
||||
|
||||
.font-bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.uppercase {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.text-white {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(255 255 255 / var(--tw-text-opacity));
|
||||
|
@ -735,11 +757,17 @@ html {
|
|||
font-style: normal;
|
||||
}
|
||||
|
||||
div, p, button, ol, li, summary {
|
||||
outline: 1px solid red;
|
||||
}
|
||||
/* div, p, button, ol, li, summary, article { */
|
||||
|
||||
/* outline: 1px solid red; */
|
||||
|
||||
/* } */
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.md\:row-span-2 {
|
||||
grid-row: span 2 / span 2;
|
||||
}
|
||||
|
||||
.md\:mt-0 {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
@ -748,15 +776,91 @@ div, p, button, ol, li, summary {
|
|||
display: flex;
|
||||
}
|
||||
|
||||
.md\:h-\[570px\] {
|
||||
height: 570px;
|
||||
.md\:grid {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.md\:w-\[280px\] {
|
||||
width: 280px;
|
||||
.md\:hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.md\:h-\[568px\] {
|
||||
height: 568px;
|
||||
}
|
||||
|
||||
.md\:h-desktop-form {
|
||||
height: 38rem;
|
||||
}
|
||||
|
||||
.md\:h-full {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.md\:w-\[274px\] {
|
||||
width: 274px;
|
||||
}
|
||||
|
||||
.md\:w-desktop-form {
|
||||
width: 60rem;
|
||||
}
|
||||
|
||||
.md\:grid-cols-1 {
|
||||
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.md\:grid-cols-2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.md\:grid-cols-\[auto_1fr\] {
|
||||
grid-template-columns: auto 1fr;
|
||||
}
|
||||
|
||||
.md\:grid-rows-\[repeat\(4\2c _auto\)\] {
|
||||
grid-template-rows: repeat(4, auto);
|
||||
}
|
||||
|
||||
.md\:flex-col {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.md\:content-start {
|
||||
align-content: flex-start;
|
||||
}
|
||||
|
||||
.md\:gap-x-2 {
|
||||
-moz-column-gap: 0.5rem;
|
||||
column-gap: 0.5rem;
|
||||
}
|
||||
|
||||
.md\:gap-y-7 {
|
||||
row-gap: 1.75rem;
|
||||
}
|
||||
|
||||
.md\:gap-x-3 {
|
||||
-moz-column-gap: 0.75rem;
|
||||
column-gap: 0.75rem;
|
||||
}
|
||||
|
||||
.md\:gap-x-4 {
|
||||
-moz-column-gap: 1rem;
|
||||
column-gap: 1rem;
|
||||
}
|
||||
|
||||
.md\:bg-white {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.md\:bg-sidebar-desktop {
|
||||
background-image: url("images/bg-sidebar-desktop.svg");
|
||||
}
|
||||
|
||||
.md\:p-10 {
|
||||
padding: 2.5rem;
|
||||
}
|
||||
|
||||
.md\:p-5 {
|
||||
padding: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<body class="grid place-content-center h-screen bg-light-gray">
|
||||
<!--[if lt IE 8]>
|
||||
<p class="browserupgrade">
|
||||
You are using an <strong>outdated</strong> browser. Please
|
||||
|
@ -36,54 +36,54 @@
|
|||
<![endif]-->
|
||||
|
||||
<article
|
||||
class="flex flex-col items-center w-screen h-screen bg-light-gray"
|
||||
class="flex flex-col items-center w-screen h-screen md:grid md:grid-cols-2 md:p-5 md:bg-white md:w-desktop-form md:h-desktop-form"
|
||||
id="form-step"
|
||||
>
|
||||
<summary
|
||||
class="w-full h-44 bg-no-repeat bg-sidebar-mobile md:bg-sidebar-desktop md:h-[570px] md:w-[280px]"
|
||||
class="w-full h-44 bg-no-repeat md:row-span-2 bg-sidebar-mobile md:bg-sidebar-desktop md:h-[568px] md:w-[274px]"
|
||||
id="sidebar"
|
||||
>
|
||||
<ol
|
||||
class="flex flex-row gap-x-5 items-center place-content-center h-24"
|
||||
class="grid grid-cols-[repeat(4,_auto)] gap-x-5 content-center items-center place-content-center h-24 md:flex-col md:h-full md:grid-rows-[repeat(4,_auto)] md:grid-cols-1 md:content-start md:p-10 md:gap-y-7 text-white text-sm uppercase"
|
||||
>
|
||||
<li>
|
||||
<li class="items-center md:grid md:gap-x-4 md:grid-cols-[auto_1fr]">
|
||||
<div
|
||||
class="grid place-content-center w-8 h-8 text-white rounded-full border border-white"
|
||||
>
|
||||
1
|
||||
</div>
|
||||
<p class="hidden md:flex">
|
||||
<span>Step 1</span><span>Your info</span>
|
||||
<p class="hidden md:flex md:flex-col">
|
||||
<span>Step 1</span><span class="font-bold">Your info</span>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<li class="items-center md:grid md:gap-x-4 md:grid-cols-[auto_1fr]">
|
||||
<div
|
||||
class="grid place-content-center w-8 h-8 text-white rounded-full border border-white"
|
||||
>
|
||||
2
|
||||
</div>
|
||||
<p class="hidden md:flex">
|
||||
<span>Step 2</span><span>Select plan</span>
|
||||
<p class="hidden md:flex md:flex-col">
|
||||
<span>Step 2</span><span class="font-bold">Select plan</span>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<li class="items-center md:grid md:gap-x-4 md:grid-cols-[auto_1fr]">
|
||||
<div
|
||||
class="grid place-content-center w-8 h-8 text-white rounded-full border border-white"
|
||||
>
|
||||
3
|
||||
</div>
|
||||
<p class="hidden md:flex">
|
||||
<span>Step 3</span><span>Add-ons</span>
|
||||
<p class="hidden md:flex md:flex-col">
|
||||
<span>Step 3</span><span class="font-bold">Add-ons</span>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<li class="items-center md:grid md:gap-x-4 md:grid-cols-[auto_1fr]">
|
||||
<div
|
||||
class="grid place-content-center w-8 h-8 text-white rounded-full border border-white"
|
||||
>
|
||||
4
|
||||
</div>
|
||||
<p class="hidden md:flex">
|
||||
<span>Step 4</span><span>summary</span>
|
||||
<p class="hidden md:flex md:flex-col">
|
||||
<span>Step 4</span><span class="font-bold">summary</span>
|
||||
</p>
|
||||
</li>
|
||||
</ol>
|
||||
|
@ -96,22 +96,25 @@
|
|||
<h1>Personal info</h1>
|
||||
<p>Please provide your name, email address, and phone number.</p>
|
||||
<label for="name">Name</label>
|
||||
<input id="name" placeholder="e.g. Stephen King"></input>
|
||||
<input id="name" placeholder="e.g. Stephen King" />
|
||||
<label for="email">Email Address</label>
|
||||
<input id="email" placeholder="e.g. stephenking@lorem.com"></input>
|
||||
<input id="email" placeholder="e.g. stephenking@lorem.com" />
|
||||
<label for="phone">Phone Number</label>
|
||||
<input id="phone" placeholder="e.g. +1 234 567 890 Next Step"></input>
|
||||
<input id="phone" placeholder="e.g. +1 234 567 890 Next Step" />
|
||||
|
||||
<!-- Step 1 end -->
|
||||
</section>
|
||||
<div class="grow"></div>
|
||||
<section id="footer-controls"
|
||||
class="flex flex-row items-center w-full h-20 bg-white"
|
||||
<div class="md:hidden grow"></div>
|
||||
<section
|
||||
id="footer-controls"
|
||||
class="flex flex-row items-center py-4 w-full bg-white"
|
||||
>
|
||||
<div class="grow"></div>
|
||||
<a
|
||||
href="step2.html"
|
||||
class="grid place-content-center mr-3 w-24 h-10 text-white rounded bg-marine-blue">Next Step</a>
|
||||
class="grid place-content-center mr-3 w-24 h-10 text-white rounded bg-marine-blue"
|
||||
>Next Step</a
|
||||
>
|
||||
</section>
|
||||
</article>
|
||||
<div class="fixed inset-x-0 bottom-0 attribution">
|
||||
|
|
|
@ -29,6 +29,12 @@ module.exports = {
|
|||
'semibold': 600,
|
||||
'bold': 700,
|
||||
},
|
||||
width: {
|
||||
'desktop-form': '60rem',
|
||||
},
|
||||
height: {
|
||||
'desktop-form': '38rem',
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
|
|
Loading…
Reference in New Issue