Comments (3)
![image](https://private-user-images.githubusercontent.com/52020637/315848416-40f810fb-7b4b-4ff6-9f4b-6ca88e92a768.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4MTkzODEsIm5iZiI6MTcxODgxOTA4MSwicGF0aCI6Ii81MjAyMDYzNy8zMTU4NDg0MTYtNDBmODEwZmItN2I0Yi00ZmY2LTlmNGItNmNhODhlOTJhNzY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE5VDE3NDQ0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVkOGE4NmE3MDFhMzIwMmU5YzBkOGUwY2ZhM2U2MWRlM2JlN2NjNmZhNTMwNzFhOWY4ZmE5N2VhYzIxMDFlMzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KsYXHJCa6dPu76QzMSST87eKVC9AL9N_c2Xf8Jp4C8E)
<div class="p-5">
<div class="card">
<header class="card-header">Actions</header>
<section class="p-4">
<button class="btn variant-filled">Save</button>
</section>
<footer class="card-footer">(footer)</footer>
</div>
</div>
<div class="p-5">
<div class="card">
<header class="card-header bg-primary-500">Actions</header>
<section class="p-4">
<button class="btn variant-filled">Save</button>
</section>
<footer class="card-footer bg-primary-500">(footer)</footer>
</div>
</div>
<div class="p-5">
<div class="card">
<header class="card-header bg-primary-500 rounded-tl-container-token rounded-tr-container-token">Actions</header>
<section class="p-4">
<button class="btn variant-filled">Save</button>
</section>
<footer class="card-footer bg-primary-500 rounded-bl-container-token rounded-br-container-token">(footer)</footer>
</div>
</div>
It's not a show stopper at all, but it also doesn't feel right either.
from skeleton.
@niktek I think this would be easier to understand with a screenshot.
That said, rounded styles now extend Tailwind's default border radius styles in v3. So this issue would be limited to v2. Header/Footer styles are also gone in v3.
from skeleton.
@niktek sorry for the delay on this one. Now that I've had a chance to read through this with a clear mind I see what you mean. The goal with the v2 implementation was to keep a unified spacing around the edge of the screen, as well as between sections.
For example, all yellow lines shown should have uniform spacing:
Unfortunately, if you double up the spacing by adding padding within the children, this will lead to a poor result where space appears doubled (or tripled) between the children. This can result in styles that feel very uneven:
That said, if I was to try and handle this sort of layout today, what I'd instead opt for is custom styles like this. This approach should work in Skeleton v2 or v3:
<!-- Surrounding Gap -->
<div class="card p-4 space-y-4">
<header class="bg-primary-500">Header</header>
<section>Content</section>
<footer class="bg-primary-500">Footer</footer>
</div>
<!-- Flush -->
<div class="card">
<header class="p-4 bg-primary-500">Header</header>
<section class="p-4">Content</section>
<footer class="p-4 bg-primary-500">Footer</footer>
</div>
Given the header/footer concepts won't be carrying forward to Skeleton v3, I'd recommend following the pattern above for now. I don't think there's a sane way we can handle every use case folks might in v2, so we'll call this a wash.
from skeleton.
Related Issues (20)
- Package and doc issues to resolve HOT 3
- NEXT: Installation page misspells "configure" twice HOT 1
- Web site Theme Error On Arc HOT 3
- ListBox + Popup on a Modal HOT 5
- Tailwind v4 Oxide <--> Skeleton v3 HOT 6
- Chore: Add `environment info` request on bug tickets
- Standardize Dev Tooling and CI Pipelines HOT 15
- Some v2 doc images are not displaying HOT 1
- Integration: Data Visualization
- v3 Custom Theme Doc Errors
- v3 Tailwind > Gradients CSS button has broken link
- Review "RestProps" spread method for arbitrary attributes HOT 2
- v3 Switch Component - Quick Patch
- computed styles not being applied HOT 3
- Repeated word in Docs HOT 1
- Audio/video components
- Svelte v5 RC: InputChip component produces errors HOT 9
- v3 React AppBar does not follow export conventions HOT 1
- v3 - consistency -D and --save-dev HOT 6
- TreeView - Custom Icons. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skeleton.