mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* Button Styles - Rounded - Cursor change - Hover colour * Centred and Outlined Components * Realigned Everything * Amended Margins * Re-organised File Structure * Tailwind Conversion * cargo fmt * Reduced Button Rounding * Nightly fmt * Reorganised rs structure * New Styling for Grandchild with Grandparent * Rearranged rs * Styles for grandparent to grandchild * Centered * Arranged rs * Styles for Parent to Child * Refactored Child to Parent * Refactored Parent to Child * Refactored Grandchild with Grandparent * Refactored Grandparent to Grandchild * Grammar fix
130 lines
2.3 KiB
SCSS
130 lines
2.3 KiB
SCSS
.page {
|
|
min-height: 100vh;
|
|
min-width: 100vw;
|
|
|
|
line-height: 1.5;
|
|
tab-size: 4;
|
|
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
font-feature-settings: normal;
|
|
|
|
margin: 0;
|
|
line-height: inherit;
|
|
}
|
|
|
|
.parent {
|
|
color: rgb(244 244 245);
|
|
background-color: rgb(24 24 27);
|
|
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
display: flex;
|
|
|
|
min-height: 100vh;
|
|
min-width: 100vw;
|
|
}
|
|
|
|
.title {
|
|
font-size: 2.25rem;
|
|
line-height: 2.5rem;
|
|
font-weight: inherit;
|
|
|
|
margin: 0;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
// Bodies
|
|
|
|
.parent-body, .child-body {
|
|
border-width: 4px;
|
|
border-radius: 1rem;
|
|
|
|
border-style: solid;
|
|
}
|
|
|
|
.parent-body {
|
|
border-color: rgb(22 163 74);
|
|
}
|
|
|
|
.child-body {
|
|
border-color: rgb(249 115 22);
|
|
|
|
flex-grow: 1;
|
|
}
|
|
|
|
// Tags
|
|
|
|
.parent-tag, .child-tag {
|
|
font-weight: 500;
|
|
|
|
padding-bottom: 0.25rem;
|
|
padding-left: 0.75rem;
|
|
padding-right: 0.75rem;
|
|
|
|
border-top-left-radius: 0.25rem;
|
|
border-top-right-radius: 0.25rem;
|
|
|
|
line-height: 24px;
|
|
}
|
|
|
|
.parent-tag {
|
|
background-color: rgb(22 163 74);
|
|
}
|
|
|
|
.child-tag {
|
|
background-color: rgb(249 115 22);
|
|
}
|
|
|
|
// Content
|
|
|
|
.parent-content {
|
|
padding-top: 1.25rem;
|
|
padding-bottom: 1.25rem;
|
|
padding-left: 1.25rem;
|
|
padding-right: 1.25rem;
|
|
|
|
flex-direction: column;
|
|
display: flex;
|
|
}
|
|
|
|
.parent-content > button {
|
|
font-weight: 500;
|
|
font-size: 1.125rem;
|
|
line-height: 1.75rem;
|
|
text-transform: none;
|
|
font-family: inherit;
|
|
|
|
padding-top: 0.25rem;
|
|
padding-bottom: 0.5rem;
|
|
padding-left: 0.75rem;
|
|
padding-right: 0.75rem;
|
|
|
|
margin-bottom: 1.25rem;
|
|
|
|
background-color: rgb(22 163 74);
|
|
|
|
border-radius: 0.75rem;
|
|
border-width: 0;
|
|
color: rgb(244 244 245);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.parent-content > button:hover {
|
|
background-color: rgb(22 101 52);
|
|
}
|
|
|
|
.child-content {
|
|
padding-top: 0.75rem;
|
|
padding-bottom: 0.75rem;
|
|
padding-left: 1.25rem;
|
|
padding-right: 1.25rem;
|
|
}
|
|
|
|
.child-content > span {
|
|
font-size: 1.25rem;
|
|
line-height: 1.75rem;
|
|
}
|
|
|
|
.child-content > span > span {
|
|
font-weight: 700;
|
|
} |