Skip to content

Commit

Permalink
Merge pull request #153 from mergestat/sync-styles
Browse files Browse the repository at this point in the history
Sync styles
  • Loading branch information
emilyvandewalle authored Mar 24, 2023
2 parents 511c64b + e331f7b commit e80871f
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/blocks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mergestat/blocks",
"version": "1.5.63",
"version": "1.5.64",
"description": "Set of UI components for MergeStat project",
"license": "MIT",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const data = [
{
title: 'First item',
desc: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eros, suspendisse eu lobortis ut tempus hendrerit pellentesque amet.',
cta: <Button component='a' skin='borderless' label='Learn More' endIcon={<ChevronRightIcon className='t-icon'/>} href='https://docs.mergestat.com/' />,
cta: <Button skin='borderless' label='Learn More' endIcon={<ChevronRightIcon className='t-icon'/>} href='https://docs.mergestat.com/' />,
content:
<>
<MarketingHighlight>What are the most common vulnerabilities?</MarketingHighlight>
Expand All @@ -34,7 +34,7 @@ ORDER BY count(*) DESC`}
{
title: 'Second item',
desc: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eros, suspendisse eu lobortis ut tempus hendrerit pellentesque amet.',
cta: <Button component='a' skin='borderless' label='Learn More' endIcon={<ChevronRightIcon className='t-icon'/>} href='https://docs.mergestat.com/' />,
cta: <Button skin='borderless' label='Learn More' endIcon={<ChevronRightIcon className='t-icon'/>} href='https://docs.mergestat.com/' />,
content:
<>
<MarketingHighlight>What are the most common vulnerabilities?</MarketingHighlight>
Expand All @@ -60,7 +60,7 @@ ORDER BY count(*) DESC`}
{
title: 'Fourth item',
desc: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eros, suspendisse eu lobortis ut tempus hendrerit pellentesque amet.',
cta: <Button component='a' skin='borderless' label='Learn More' endIcon={<ChevronRightIcon className='t-icon'/>} href='https://docs.mergestat.com/' />,
cta: <Button skin='borderless' label='Learn More' endIcon={<ChevronRightIcon className='t-icon'/>} href='https://docs.mergestat.com/' />,
content:
<>
<MarketingHighlight>What are the most common vulnerabilities?</MarketingHighlight>
Expand All @@ -72,7 +72,7 @@ ORDER BY count(*) DESC`}
{
title: 'Fifth item',
desc: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eros, suspendisse eu lobortis ut tempus hendrerit pellentesque amet.',
cta: <Button component='a' skin='borderless' label='Learn More' endIcon={<ChevronRightIcon className='t-icon'/>} href='https://docs.mergestat.com/' />,
cta: <Button skin='borderless' label='Learn More' endIcon={<ChevronRightIcon className='t-icon'/>} href='https://docs.mergestat.com/' />,
content:
<>
<MarketingHighlight>What are the most common vulnerabilities?</MarketingHighlight>
Expand All @@ -95,7 +95,7 @@ ORDER BY count(*) DESC`}
{
title: 'Seventh item',
desc: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eros, suspendisse eu lobortis ut tempus hendrerit pellentesque amet.',
cta: <Button component='a' skin='borderless' label='Learn More' endIcon={<ChevronRightIcon className='t-icon'/>} href='https://docs.mergestat.com/' />,
cta: <Button skin='borderless' label='Learn More' endIcon={<ChevronRightIcon className='t-icon'/>} href='https://docs.mergestat.com/' />,
content:
<>
<MarketingHighlight>What are the most common vulnerabilities?</MarketingHighlight>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ export const MarketingAccordion: React.FC<MarketingAccordionProps & React.HTMLAt
</button>
{ selected &&
<>
<div className='t-marketing-accordion-desc'>{item.desc}
<div className='mt-3'>
{item.cta}
</div>
<div className='t-marketing-accordion-desc'>

{item.desc &&
<div className='mb-3'>
{item.desc}
</div>}
{item.cta}

</div>
<div className='t-marketing-accordion-mobile-content'>{item.content}</div>
</>
Expand Down
11 changes: 11 additions & 0 deletions packages/blocks/styles/components/t-avatar.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@
h-4;
}


.md_t-avatar-md {
@apply md_h-10
md_w-10;
}

.md_t-avatar-md .t-icon {
@apply md_w-6
md_h-6;
}

.t-avatar-lg {
@apply h-12
w-12;
Expand Down
16 changes: 15 additions & 1 deletion packages/blocks/styles/components/t-checkbox-radio.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@
h-4
bg-white
border
flex-none
border-gray-300;
}

.t-checkbox input[type="checkbox"] + span,
.t-radio input[type="radio"] + span {
.t-radio input[type="radio"] + span,
.t-checkbox input[type="checkbox"] + label,
.t-radio input[type="radio"] + label {
@apply ml-2;
}

Expand All @@ -54,6 +57,17 @@
items-center;
}

.t-checkbox-large input[type="checkbox"],
.t-radio-large input[type="radio"] {
@apply w-5
h-5;
}

.t-checkbox-group .t-checkbox-large,
.t-radio-group .t-radio-large {
@apply py-1.5;
}

/* Checkbox specific */
.t-checkbox input[type="checkbox"] {
@apply rounded;
Expand Down
16 changes: 8 additions & 8 deletions packages/blocks/styles/components/t-display.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,31 @@

.t-display-2,
.t-display h2 {
@apply text-2xl
@apply text-3xl
sm_text-4xl
leading-tight
mb-5;
}

.t-display-3,
.t-display h3 {
@apply text-lg
sm_text-2xl
@apply text-2xl
sm_text-3xl
leading-tight
mb-4;
}

.t-display-4,
.t-display h4 {
@apply text-base
sm_text-lg
@apply text-lg
sm_text-xl
font-semibold
mb-2;
}

.t-display-5,
.t-display h5 {
@apply text-sm
@apply text-base
font-semibold
mb-1;
}
Expand All @@ -80,8 +80,8 @@

.t-display-body,
.t-display p {
@apply text-sm
sm_text-base
@apply text-base
sm_text-lg
leading-7;
}

Expand Down
3 changes: 2 additions & 1 deletion packages/blocks/styles/components/t-label.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
leading-6;
}

.t-label-req,
.t-label-req ,
.t-label em {
@apply ml-1
not-italic
text-red-600;
}
52 changes: 52 additions & 0 deletions packages/blocks/styles/components/t-master-detail.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* ==========================================================================
t-master-detail
========================================================================== */

.t-master-detail-list {
@apply bg-gray-50;
}

.t-master-detail-item {
@apply px-6
text-left
bg-white
border-b
border-gray-150
text-gray-900
py-4
w-full
hover_bg-gray-50;
}

.t-master-detail-item-active {
@apply relative
bg-gray-50
py-4;
}

.t-master-detail-item-title {
@apply font-medium
text-gray-600
text-sm
mb-2;
}

.t-master-detail-item-preview {
@apply font-mono
text-xs
text-gray-450;
}

.t-master-detail-item-active .t-master-detail-item-title {
@apply text-blue-600;
}

.t-master-detail-item-active:after {
content: '';
@apply left-0
top-0
w-1
h-full
absolute
bg-blue-500;
}
1 change: 1 addition & 0 deletions packages/blocks/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
@import "./components/t-list-item.css";
@import "./components/t-list.css";
@import "./components/t-log-box.css";
@import "./components/t-master-detail.css";
@import "./components/t-menu.css";
@import "./components/t-modal.css";
@import "./components/t-multi-select.css";
Expand Down
4 changes: 3 additions & 1 deletion packages/blocks/styles/marketing/t-marketing-accordion.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@
}

.t-marketing-accordion-title {
@apply font-semibold
@apply text-base
sm_text-xl
font-semibold
text-gray-900
flex
w-full;
Expand Down
2 changes: 2 additions & 0 deletions packages/blocks/styles/marketing/t-marketing-highlight.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.t-marketing-highlight {
@apply bg-blue-500
border-blue-600
text-sm
sm_text-base
border
inline-block
text-white
Expand Down

0 comments on commit e80871f

Please sign in to comment.