
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
scales-base-tables
Advanced tools
These are the base styles for creating tables.
Scales patterns use the Sass CSS preprocessor, you'll need either Ruby Sass or LibSass.
Tables can get pretty crazy. Take a look at this example with some of the classes that Scales provides and how to use them:
<table class="table--bordered table--striped-odd table--fixed">
<thead>
<tr>
<th>Lorem</th>
<th>Ipsum</th>
<th>Dolor</th>
<th>Sit</th>
</tr>
</thead>
<tbody>
<tr>
<th rowspan="3">Sit</th>
<td>Dolor</td>
<td class="numerical">03.788</td>
<td>Lorem</td>
</tr>
<tr>
<td class="table-highlight">Dolor</td>
<td class="numerical">32.210</td>
<td>Lorem</td>
</tr>
<tr>
<td>Dolor</td>
<td class="numerical">47.797</td>
<td>Lorem</td>
</tr>
<tr>
<th rowspan="2">Sit</th>
<td>Dolor</td>
<td class="numerical">09.640</td>
<td>Lorem</td>
</tr>
<tr>
<td>Dolor</td>
<td class="numerical">12.117</td>
<td>Lorem</td>
</tr>
</tbody>
</table>
.table
.numerical
.table--spacing-large
.table--spacing-medium
.table--spacing-small
.table--bordered
.table--bordered-inside
.table--bordered-rows
.table--bordered-rows-inside
.table--bordered-columns
.table--bordered-columns-inside
.table--striped-odd
.table--striped-even
.table-highlight
.table--fixed
$table-padding-large
$table-padding-medium
$table-padding-small
$table-border-width
$table-border-style
$table-border-color
$table-stripe-color
$table-highlight-color
$table-highlight-text-color
All Scales patterns expose the $scales-namespace
variable.
$scales-namespace
accepts a string that will prefix all Scales classes. The default value is null
.
To give all Scales classes a namespace, you will need to set this variable in a file that is imported before any scales files. For example:
@import your-project/settings; // $scales-namespace is set in this file
@import your-project/scales; // Imports the Scales library
@import your-project/project // The rest of your project imports
These table styles simply provide a base for tables. In your project or theme, you can easily extend tables for your own purposes. For example:
// Change variables before importing
$table-border-color: #0074D9;
$table-border-style: dashed;
// Import tables partial
@import scalescss/base-tables/tables
//
// Primary table styles
///
.table--primary {
th {
background-color: #0074D9;
color: #fff;
}
tr:hover {
background-color: #f8fb9b;
color: #333;
}
}
<table class="table--primary table--bordered-rows">
<thead>
<tr>
<th>Lorem</th>
<th>Ipsum</th>
<th>Dolor</th>
<th>Sit</th>
</tr>
</thead>
<tbody>
<tr>
<th rowspan="3">Sit</th>
<td>Dolor</td>
<td class="numerical">03.788</td>
<td>Lorem</td>
</tr>
<tr>
<td>Dolor</td>
<td class="numerical">32.210</td>
<td>Lorem</td>
</tr>
<tr>
<td>Dolor</td>
<td class="numerical">47.797</td>
<td>Lorem</td>
</tr>
<tr>
<th rowspan="2">Sit</th>
<td>Dolor</td>
<td class="numerical">09.640</td>
<td>Lorem</td>
</tr>
<tr>
<td>Dolor</td>
<td class="numerical">12.117</td>
<td>Lorem</td>
</tr>
</tbody>
</table>
FAQs
Base table styles for Scales CSS
We found that scales-base-tables demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.