@clayui/css 3.44.2 → 3.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -69
- package/lib/css/atlas.css +457 -86
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +411 -68
- package/lib/css/base.css.map +1 -1
- package/lib/css/cadmin.css +204 -90
- package/lib/css/cadmin.css.map +1 -1
- package/lib/images/icons/add-cell.svg +1 -1
- package/lib/images/icons/corner-radius.svg +12 -0
- package/lib/images/icons/export.svg +11 -0
- package/lib/images/icons/font-family.svg +10 -0
- package/lib/images/icons/font-size.svg +10 -0
- package/lib/images/icons/icons.svg +1 -1
- package/lib/images/icons/shadow.svg +9 -0
- package/package.json +2 -2
- package/src/images/icons/add-cell.svg +1 -1
- package/src/images/icons/corner-radius.svg +12 -0
- package/src/images/icons/export.svg +11 -0
- package/src/images/icons/font-family.svg +10 -0
- package/src/images/icons/font-size.svg +10 -0
- package/src/images/icons/shadow.svg +9 -0
- package/src/scss/_components.scss +1 -0
- package/src/scss/_variables.scss +2 -0
- package/src/scss/atlas/variables/_buttons.scss +3 -0
- package/src/scss/atlas/variables/_cards.scss +12 -0
- package/src/scss/atlas/variables/_forms.scss +2 -1
- package/src/scss/atlas/variables/_globals.scss +42 -13
- package/src/scss/atlas/variables/_list-group.scss +28 -12
- package/src/scss/cadmin/_variables.scss +1 -0
- package/src/scss/cadmin/components/_aspect-ratio.scss +25 -38
- package/src/scss/cadmin/components/_cards.scss +10 -120
- package/src/scss/cadmin/components/_custom-forms.scss +4 -0
- package/src/scss/cadmin/components/_empty-state.scss +36 -0
- package/src/scss/cadmin/components/_forms.scss +1 -1
- package/src/scss/cadmin/components/_links.scss +1 -14
- package/src/scss/cadmin/components/_navs.scss +8 -0
- package/src/scss/cadmin/components/_treeview.scss +191 -210
- package/src/scss/cadmin/components/_type.scss +27 -42
- package/src/scss/cadmin/components/_utilities-functional-important.scss +35 -15
- package/src/scss/cadmin/variables/_aspect-ratio.scss +26 -0
- package/src/scss/cadmin/variables/_cards.scss +164 -1
- package/src/scss/cadmin/variables/_custom-forms.scss +3 -0
- package/src/scss/cadmin/variables/_empty-state.scss +23 -0
- package/src/scss/cadmin/variables/_forms.scss +3 -2
- package/src/scss/cadmin/variables/_globals.scss +173 -11
- package/src/scss/cadmin/variables/_links.scss +14 -0
- package/src/scss/cadmin/variables/_list-group.scss +32 -16
- package/src/scss/cadmin/variables/_sidebar.scss +1 -1
- package/src/scss/cadmin/variables/_treeview.scss +38 -17
- package/src/scss/cadmin/variables/_utilities.scss +42 -0
- package/src/scss/components/_aspect-ratio.scss +25 -38
- package/src/scss/components/_cards.scss +28 -122
- package/src/scss/components/_empty-state.scss +30 -0
- package/src/scss/components/_forms.scss +1 -1
- package/src/scss/components/_links.scss +12 -8
- package/src/scss/components/_tables.scss +0 -8
- package/src/scss/components/_treeview.scss +367 -0
- package/src/scss/components/_type.scss +27 -41
- package/src/scss/components/_utilities-functional-important.scss +35 -15
- package/src/scss/functions/_lx-icons-generated.scss +10 -0
- package/src/scss/mixins/_buttons.scss +4 -0
- package/src/scss/mixins/_cards.scss +59 -25
- package/src/scss/mixins/_grid.scss +29 -0
- package/src/scss/mixins/_links.scss +22 -2
- package/src/scss/variables/_aspect-ratio.scss +26 -0
- package/src/scss/variables/_buttons.scss +6 -0
- package/src/scss/variables/_cards.scss +158 -4
- package/src/scss/variables/_empty-state.scss +23 -0
- package/src/scss/variables/_forms.scss +3 -2
- package/src/scss/variables/_globals.scss +172 -11
- package/src/scss/variables/_links.scss +38 -3
- package/src/scss/variables/_list-group.scss +22 -12
- package/src/scss/variables/_sidebar.scss +3 -3
- package/src/scss/variables/_tables.scss +14 -0
- package/src/scss/variables/_treeview.scss +242 -0
- package/src/scss/variables/_utilities.scss +42 -0
package/README.md
CHANGED
|
@@ -1,89 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
3
|
-
### Jump to Section
|
|
1
|
+
## Jump to Section
|
|
4
2
|
|
|
5
3
|
- [About](#about)
|
|
6
|
-
- [
|
|
7
|
-
- [Clone the repo](#clone-the-repo)
|
|
8
|
-
- [Install Node.js and NPM](#install-nodejs-and-npm)
|
|
9
|
-
- [Install the NPM modules](#install-the-npm-modules)
|
|
10
|
-
- [Modify files in src/](#modify-files-in-src)
|
|
11
|
-
- [Build the static files](#build-the-static-files)
|
|
12
|
-
- [View the files](#view-the-files)
|
|
13
|
-
- [File Heading Options](#file-heading-options)
|
|
14
|
-
- [Available Build Tasks](#available-build-tasks)
|
|
15
|
-
|
|
16
|
-
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
4
|
+
- [Adding New SVG Icons](#adding-new-svg-icons)
|
|
17
5
|
|
|
18
6
|
## About
|
|
7
|
+
|
|
19
8
|
Clay is Liferay's web implementation of the Lexicon Design Language. It is built with HTML, CSS, and Javascript with [Bootstrap](https://getbootstrap.com/docs/4.1/getting-started/introduction/) as a foundation.
|
|
20
9
|
|
|
21
10
|
You can view the various components on [the Clay site](http://clayui.com).
|
|
22
11
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## Building
|
|
26
|
-
If you would like to contribute, or make changes on your system you need to do the following:
|
|
27
|
-
|
|
28
|
-
### Clone the repo
|
|
29
|
-
Clone the repo to your computer
|
|
30
|
-
|
|
31
|
-
### Install Node.js (v4.6.0 LTS) and NPM
|
|
32
|
-
If you don't already have it installed. You can find more info here: http://nodejs.org/
|
|
33
|
-
Node and NPM come bundled together, so you only need to install one package.
|
|
34
|
-
|
|
35
|
-
### Install the NPM modules
|
|
36
|
-
Run `npm install` inside of the `packages/clay-css` directory
|
|
37
|
-
|
|
38
|
-
### Modify files in src/
|
|
39
|
-
The files are generated from the `src/` directory, however, most of the files you'd be interested in changing are in `src/content/`. Files can be either HTML (`.html`) or Markdown (`.md`).
|
|
40
|
-
Every file in `src/content/` has a heading at the top in YAML format that looks something like:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
title: Title of the Page
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
This section has a couple of options that can be leveraged for different purposes. Those will be covered below.
|
|
48
|
-
|
|
49
|
-
### Build the static files
|
|
50
|
-
Run `gulp build` to generate the static files.
|
|
51
|
-
|
|
52
|
-
### View the files
|
|
53
|
-
The generated files are placed into the `build/` directory.
|
|
54
|
-
Sass files in the `.scss` format are generated to CSS, Markdown files with the extension of `.md` are generated to HTML, and HTML files have one bit of processing applied, which is that HTML inside of triple ticks is escaped, like so:
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
<div>Foo</div>
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### File Heading Options
|
|
61
|
-
There are a couple of properties you can add to the headings of files, only one of which is required:
|
|
12
|
+
## Adding New SVG Icons
|
|
62
13
|
|
|
63
|
-
|
|
14
|
+
1) The copyright license should be added at the top of the new SVG icon file using the format:
|
|
64
15
|
|
|
65
|
-
|
|
66
|
-
|
|
16
|
+
```
|
|
17
|
+
<!--
|
|
18
|
+
* SPDX-FileCopyrightText: © 2022 Liferay, Inc. <https://liferay.com>
|
|
19
|
+
* SPDX-FileCopyrightText: © 2022 Contributors to the project Clay <https://github.com/liferay/clay/graphs/contributors>
|
|
20
|
+
*
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
-->
|
|
23
|
+
```
|
|
67
24
|
|
|
68
|
-
|
|
25
|
+
See https://liferay.dev/blogs/-/blogs/how-and-why-to-properly-write-copyright-statements-in-your-code#tldr for more details.
|
|
69
26
|
|
|
70
|
-
|
|
71
|
-
You can pass these options when running `gulp`.
|
|
27
|
+
2) The `<svg></svg>` element should only have the attributes `xmlns` and `viewBox`.
|
|
72
28
|
|
|
73
|
-
|
|
74
|
-
This will generate all of the HTML/CSS/etc into the `build/` directory.
|
|
29
|
+
3) Remove any `fill` and `id` attributes from the SVG elements.
|
|
75
30
|
|
|
76
|
-
|
|
31
|
+
4) Remove any `<style></style>` tags and the classes / ids that are referenced by it.
|
|
77
32
|
|
|
78
|
-
`
|
|
33
|
+
5) The class `lexicon-icon-body` is deprecated and is no longer being included in newer icons. This class allowed the background color of an icon to be modified using the property `fill`. We shouldn't use this class.
|
|
79
34
|
|
|
80
|
-
|
|
81
|
-
Bootstrap can be updated or downgraded by using the command:
|
|
35
|
+
6) The class `lexicon-icon-outline` is a marker on each SVG element (e.g., `path`, `circle`, `rect`). It provides another class to use as a selector to apply CSS changes to an icon. This class should be included on all SVG elements.
|
|
82
36
|
|
|
83
|
-
`
|
|
37
|
+
7) Run `yarn compile` and include the auto generated file `src/scss/functions/_lx-icons-generated.scss` in your commit.
|
|
84
38
|
|
|
85
|
-
|
|
39
|
+
8) In the file, `clay/clayui.com/plugins/gatsby-plugin-clay-css-tasks/clay-icon-aliases.js`, find `iconsData` and add the icon aliases if needed.
|
|
86
40
|
|
|
87
|
-
`
|
|
41
|
+
9) In the `clayui.com` directory run `yarn develop` and check to see if the icon shows up in the icon section.
|
|
88
42
|
|
|
89
|
-
|
|
43
|
+
10) Include the files `static/images/icons/icons.svg`, `static/js/icons-autogenerated.json`, and `static/js/flags-autogenerated.json` to the commit. Some of these files might not show up in git's "Changes not staged for commit:" if aliases or flags have not been added.
|