Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Tables: Table styling #151

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kristyjy
Copy link
Contributor

This is a WIP pull request looking for feedback. I'd like to discuss if we should style the element like in this PR or make classes like the buttons PR did either here or in the meeting tomorrow.

@jquerybot
Copy link

Thank you for your pull request. It looks like this may be your first contribution to a jQuery Foundation project, if so we need you to sign our Contributor License Agreement (CLA).

📝 Please visit http://contribute.jquery.org/CLA/ to sign.

After you signed, the PR is checked again automatically after a minute. If there's still an issue, please reply here to let us know.


If you've already signed our CLA, it's possible your git author information doesn't match your CLA signature (both your name and email have to match), for more information, check the status of your CLA check.

@geekman-rohit
Copy link
Contributor

@kristyjy can you get @subaha to sign our CLA?

}

.striped-table > tbody > tr:nth-of-type(odd), {
background-color: #f2f2f2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.table--striped maybe? considering other naming convention you used( like .table--responsive)

@geekman-rohit
Copy link
Contributor

@kristyjy , could use more variables, especially with colors.

border-top: map-get($table-base, border);
padding: map-get($table-base, padding);
color: map-get($table-base, color);
font-weight: 400;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a variable?

@cvrebert
Copy link
Contributor

table { width: 100%; would almost certainly break some third-party widgets. I'd argue for moving the width declaration within a class.

table {
width: 100%;
margin: map-get($table-base, margin);
font-size: map-get($table-base, font-size);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sfrisk
Copy link
Contributor

sfrisk commented Mar 15, 2016

@geekman-rohit @kristyjy At one point the CLA was valid. Not sure why it isn't anymore: #130

@sfrisk sfrisk changed the title Tables: Table styling [WIP] Tables: Table styling Mar 15, 2016
@sfrisk
Copy link
Contributor

sfrisk commented May 17, 2016

Screenshot of design:
screen shot 2016-05-17 at 2 17 47 pm

@sfrisk
Copy link
Contributor

sfrisk commented May 17, 2016

Do we have a full width table option?

@sfrisk
Copy link
Contributor

sfrisk commented May 24, 2016

Tables can currently be viewed up in: http://view.css-chassis.com/53-tablestyles/demos/tables.html

Based on a discussions in today's meetings:
What are thoughts about classes on all of the things? Do we want to require classes on every element (as the demo currently shows), or for a base level table, styling base and is acceptable?

@cvrebert
Copy link
Contributor

One thing to consider is the effect on nested tables, which the designer might want to style differently from the ancestor table, so it's bad if the styles "bleed" into descendant tables. Bootstrap got complaints about this.
(Thus, descendant selectors should be avoided in table styles.)

<head>
<meta charset="utf-8">
<title>CSS Chassis - Tables</title>
<meta name="description" content="Typography skeleton for styling">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

content= "Typography..." -> content="Table..." I keep missing this too

@sfrisk
Copy link
Contributor

sfrisk commented Jul 19, 2016

@cvrebert, I agree that's been something I've struggled with. @kristyjy has adjusted pr so descendent selectors are avoided.

"margin": "0 0 1em",
"font-size": "16px",
"thead-font-size": "12px",
"border": "1px solid #eee",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better to pull color (#eee) from the color pallette. "default-dark" is #eee

@kristyjy kristyjy changed the title [WIP] Tables: Table styling Tables: Table styling Oct 10, 2016
@jsf-clabot
Copy link

jsf-clabot commented Feb 7, 2017

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

Base automatically changed from master to main March 16, 2021 16:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants