mirror of
https://github.com/primer/css.git
synced 2025-01-06 05:33:07 +03:00
delete primer tables
This commit is contained in:
parent
3cf5c67bed
commit
01a44bfbd7
@ -19,5 +19,4 @@
|
||||
@import "primer-marketing-buttons/index.scss";
|
||||
@import "primer-page-headers/index.scss";
|
||||
@import "primer-page-sections/index.scss";
|
||||
@import "primer-tables/index.scss";
|
||||
@import "primer-marketing-utilities/index.scss";
|
||||
|
@ -33,7 +33,6 @@
|
||||
"primer-marketing-support": "1.5.6",
|
||||
"primer-marketing-type": "1.4.13",
|
||||
"primer-marketing-utilities": "1.7.3",
|
||||
"primer-page-headers": "1.5.3",
|
||||
"primer-page-sections": "1.5.3",
|
||||
"primer-support": "4.7.2",
|
||||
"primer-tables": "1.5.3"
|
||||
|
@ -1,2 +0,0 @@
|
||||
*.yml
|
||||
.github
|
@ -1,21 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2019 GitHub Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -1,57 +0,0 @@
|
||||
# Primer Marketing CSS Tables
|
||||
|
||||
[![npm version](https://img.shields.io/npm/v/primer-tables.svg)](https://www.npmjs.org/package/primer-tables)
|
||||
[![Build Status](https://travis-ci.org/primer/primer.svg?branch=master)](https://travis-ci.org/primer/primer)
|
||||
|
||||
> Styles to display tabular data for marketing websites at GitHub.
|
||||
|
||||
This repository is a module of the full [primer][primer] repository.
|
||||
|
||||
## Documentation
|
||||
|
||||
<!-- %docs
|
||||
title: Tables
|
||||
status: Deprecated
|
||||
-->
|
||||
|
||||
**This component will be removed, and the `primer-tables` npm package deprecated, in Primer version 11.**
|
||||
|
||||
<!-- %enddocs -->
|
||||
|
||||
## Install
|
||||
|
||||
This repository is distributed with [npm][npm]. After [installing npm][install-npm], you can install `primer-tables` with this command.
|
||||
|
||||
```
|
||||
$ npm install --save primer-tables
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
The source files included are written in [Sass][sass] (`scss`) You can simply point your sass `include-path` at your `node_modules` directory and import it like this.
|
||||
|
||||
```scss
|
||||
@import "primer-tables/index.scss";
|
||||
```
|
||||
|
||||
You can also import specific portions of the module by importing those partials from the `/lib/` folder. _Make sure you import any requirements along with the modules._
|
||||
|
||||
## Build
|
||||
|
||||
For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css`
|
||||
|
||||
```
|
||||
$ npm run build
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT © [GitHub](https://github.com/)
|
||||
|
||||
[primer]: https://github.com/primer/primer
|
||||
[primer-support]: https://github.com/primer/primer-support
|
||||
[support]: https://github.com/primer/primer-support
|
||||
[docs]: http://primer.github.io/
|
||||
[npm]: https://www.npmjs.com/
|
||||
[install-npm]: https://docs.npmjs.com/getting-started/installing-node
|
||||
[sass]: http://sass-lang.com/
|
@ -1,6 +0,0 @@
|
||||
@warn "The entire primer-tables package will be removed in primer v11.0.0.";
|
||||
|
||||
// support files
|
||||
@import "primer-support/index.scss";
|
||||
@import "primer-marketing-support/index.scss";
|
||||
@import "./lib/tables.scss";
|
@ -1,39 +0,0 @@
|
||||
// stylelint-disable selector-max-type, selector-max-compound-selectors
|
||||
|
||||
.data-table {
|
||||
width: 100%;
|
||||
margin-top: $spacer-3;
|
||||
border-collapse: collapse;
|
||||
border: $border;
|
||||
box-shadow: 0 1px 1px rgba($black, 0.05);
|
||||
|
||||
th {
|
||||
font-weight: $font-weight-normal;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: $spacer-3;
|
||||
border-right: $border;
|
||||
border-bottom: $border;
|
||||
}
|
||||
|
||||
tbody {
|
||||
th {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
border-bottom-color: $border-gray;
|
||||
}
|
||||
|
||||
tr:last-child {
|
||||
th,
|
||||
td {
|
||||
border-bottom: $border;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
{
|
||||
"version": "1.5.3",
|
||||
"name": "primer-tables",
|
||||
"description": "Styles to display tabular data for marketing websites at GitHub.",
|
||||
"homepage": "http://primer.github.io/",
|
||||
"author": "GitHub, Inc.",
|
||||
"license": "MIT",
|
||||
"style": "build/build.css",
|
||||
"sass": "index.scss",
|
||||
"main": "build/index.js",
|
||||
"primer": {
|
||||
"category": "marketing",
|
||||
"module_type": "components"
|
||||
},
|
||||
"files": [
|
||||
"index.scss",
|
||||
"lib",
|
||||
"build"
|
||||
],
|
||||
"repository": "https://github.com/primer/primer/tree/master/modules/primer-tables",
|
||||
"bugs": {
|
||||
"url": "https://github.com/primer/primer/issues"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "../../script/npm-run primer-module-build index.scss",
|
||||
"prepare": "npm run build",
|
||||
"lint": "../../script/lint-scss",
|
||||
"test": "../../script/npm-run-all build lint",
|
||||
"prepublishOnly": "../../script/notify pending",
|
||||
"postpublish": "../../script/notify success"
|
||||
},
|
||||
"dependencies": {
|
||||
"primer-marketing-support": "1.5.6",
|
||||
"primer-support": "4.7.2"
|
||||
},
|
||||
"keywords": [
|
||||
"css",
|
||||
"github",
|
||||
"primer",
|
||||
"design-system",
|
||||
"style",
|
||||
"tables"
|
||||
]
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
import React from 'react'
|
||||
import { storiesOf } from '@storybook/react'
|
||||
import storiesFromMarkdown from '../../.storybook/lib/storiesFromMarkdown'
|
||||
|
||||
const stories = storiesOf('Tables', module)
|
||||
|
||||
storiesFromMarkdown(require.context('.', true, /\.md$/))
|
||||
.forEach(({title, story}) => {
|
||||
stories.add(title, story)
|
||||
})
|
@ -49,7 +49,6 @@
|
||||
"primer-marketing-type": "1.4.13",
|
||||
"primer-marketing-utilities": "1.7.3",
|
||||
"primer-navigation": "1.5.11",
|
||||
"primer-page-headers": "1.5.3",
|
||||
"primer-page-sections": "1.5.3",
|
||||
"primer-pagination": "1.0.7",
|
||||
"primer-popover": "0.1.8",
|
||||
|
Loading…
Reference in New Issue
Block a user