https://github.com/kiccer/style.init.css
Page style initialization. (页面样式初始化)
https://github.com/kiccer/style.init.css
css initialize normalize style
Last synced: 19 days ago
JSON representation
Page style initialization. (页面样式初始化)
- Host: GitHub
- URL: https://github.com/kiccer/style.init.css
- Owner: kiccer
- Created: 2019-05-21T07:56:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T03:56:05.000Z (over 2 years ago)
- Last Synced: 2025-10-11T22:25:43.300Z (4 months ago)
- Topics: css, initialize, normalize, style
- Language: CSS
- Homepage:
- Size: 804 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
style.init.css
Webpage style initialization.
## INSTALL
```sh
npm install --save style.init.css
# OR
yarn add style.init.css
```
## USAGE
```JavaScript
// javascript
import 'style.init.css'
```
## EXAMPLE
> The style sheet contains some very commonly used but not easy to remember styles.
### The sentence is too long with ellipsis
```html
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Corporis quisquam quos sapiente, vitae repellat assumenda debitis tempora ipsum accusantium quod ut, sequi eum qui. Accusantium minima nostrum aspernatur veritatis iusto.
```
When the above line of text cannot be displayed completely in one line, he will replace the excess part with an ellipsis.
You can even use `ellipsis-1`, `ellipsis-2`, `ellipsis-3` and other class names to control the number of lines. When the text exceeds the specified number of lines, an ellipsis will be used at the end of the text to replace the undisplayable text. This range supports 1 to 10 rows. They correspond to the class names `ellipsis-1` and `ellipsis-10` respectively.
## DESCRIPTION
* This project adds some special browser compatible styles on the basis of [`normalize.css`](https://github.com/necolas/normalize.css), such as x5 kernel browsers.
* In addition, a little bit of beautification has been added to the style sheet, but not much, because `style.init.css` is used for projects that require a high degree of customization.
* Good suggestions can be fed back to me at [`Issues`](https://github.com/kiccer/style.init.css/issues), I'll be happy to adopt it.
* Demo page: [`Style.init.css Demo`](https://kiccer.github.io/style.init.css/docs/index.html)
## NOTICE
* Some styles are for experience only, Compatibility is not ideal, for example: `.ps-bg`, `.ant-line`, etc.