MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / getTableStyle

Function getTableStyle

scripts/helpers/predefined_css.js:3–21  ·  view source on GitHub ↗
(selector = "table")

Source from the content-addressed store, hash-verified

1// W3 table css
2// https://www.w3schools.com/css/css_table.asp
3export const getTableStyle = (selector = "table") => `
4${selector} {
5 font-family: Arial, Helvetica, sans-serif;
6 border-collapse: collapse;
7 width: 100%;
8}
9${selector} td, ${selector} th {
10 border: 1px solid #ddd;
11 padding: 8px;
12}
13${selector} tr:nth-child(even){ background-color: #f2f2f2; }
14${selector} tr:hover { background-color: #ddd; }
15${selector} th {
16 padding-top: 12px;
17 padding-bottom: 12px;
18 text-align: left;
19 background-color: #04AA6D;
20 color: white;
21}`;

Callers 2

showResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected