@clayui/css 3.45.0 → 3.46.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.
Files changed (31) hide show
  1. package/README.md +23 -69
  2. package/lib/css/atlas.css +88 -13
  3. package/lib/css/atlas.css.map +1 -1
  4. package/lib/css/base.css +78 -13
  5. package/lib/css/base.css.map +1 -1
  6. package/lib/css/cadmin.css +59 -12
  7. package/lib/css/cadmin.css.map +1 -1
  8. package/lib/images/icons/export.svg +11 -0
  9. package/lib/images/icons/icons.svg +1 -1
  10. package/package.json +2 -2
  11. package/src/images/icons/export.svg +11 -0
  12. package/src/scss/_variables.scss +1 -0
  13. package/src/scss/atlas/variables/_buttons.scss +3 -0
  14. package/src/scss/atlas/variables/_globals.scss +42 -13
  15. package/src/scss/cadmin/_variables.scss +1 -0
  16. package/src/scss/cadmin/components/_aspect-ratio.scss +25 -38
  17. package/src/scss/cadmin/components/_type.scss +27 -42
  18. package/src/scss/cadmin/components/_utilities-functional-important.scss +35 -15
  19. package/src/scss/cadmin/variables/_aspect-ratio.scss +26 -0
  20. package/src/scss/cadmin/variables/_globals.scss +173 -11
  21. package/src/scss/cadmin/variables/_utilities.scss +42 -0
  22. package/src/scss/components/_aspect-ratio.scss +25 -38
  23. package/src/scss/components/_type.scss +27 -41
  24. package/src/scss/components/_utilities-functional-important.scss +35 -15
  25. package/src/scss/functions/_lx-icons-generated.scss +2 -0
  26. package/src/scss/mixins/_buttons.scss +4 -0
  27. package/src/scss/mixins/_grid.scss +29 -0
  28. package/src/scss/variables/_aspect-ratio.scss +26 -0
  29. package/src/scss/variables/_buttons.scss +6 -0
  30. package/src/scss/variables/_globals.scss +172 -11
  31. package/src/scss/variables/_utilities.scss +42 -0
package/README.md CHANGED
@@ -1,89 +1,43 @@
1
- <!-- START doctoc generated TOC please keep comment here to allow auto update -->
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
- - [Building](#building)
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
- <!-- TODO: provide link to Lexicon site for documentation on design patterns -->
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
- `title:`: **(Required)** This is used for the title of the page in the heading and in the navigation sidebar
14
+ 1) The copyright license should be added at the top of the new SVG icon file using the format:
64
15
 
65
- `navIndex:`: The navigation is sorted alphabetically by default, but if you pass a `navIndex:` property, it will manually sort the item into that position.
66
- The property is any number, with `0` as the first position, but you can also pass in a keyword of `last` to force an item to the end.
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
- `section:`: If you want to group multiple files into sections, in each of those files, pass the same title to the `section:` property. That title will be used for the section heading, and the files will be sorted in there. The `navIndex:` property works inside of sections as well.
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
- ### Available Build Tasks
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
- `build`: This is the default task, so running just `gulp` will fire off the build task.
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
- `watch`: Because running a script after every change can get tedious, run `gulp watch` to rebuild the files automatically as you change files.
31
+ 4) Remove any `<style></style>` tags and the classes / ids that are referenced by it.
77
32
 
78
- `serve`: Starts a local server on port 3000 and also runs the watch task.
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
- ### Updating Bootstrap Version and Dependencies
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
- `npm install --save-dev --save-exact bootstrap@the_version`
37
+ 7) Run `yarn compile` and include the auto generated file `src/scss/functions/_lx-icons-generated.scss` in your commit.
84
38
 
85
- Popper.js can be updated or downgraded by using:
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
- `npm install --save-dev --save-exact popper.js@the_version`
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
- Then run `gulp build` or `gulp-serve` to compile Clay CSS with the new version
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.
package/lib/css/atlas.css CHANGED
@@ -325,26 +325,32 @@ h1,
325
325
  .h1 {
326
326
  font-size: 1.625rem;
327
327
  }
328
+
328
329
  h2,
329
330
  .h2 {
330
331
  font-size: 1.375rem;
331
332
  }
333
+
332
334
  h3,
333
335
  .h3 {
334
336
  font-size: 1.1875rem;
335
337
  }
338
+
336
339
  h4,
337
340
  .h4 {
338
341
  font-size: 1rem;
339
342
  }
343
+
340
344
  h5,
341
345
  .h5 {
342
346
  font-size: 0.875rem;
343
347
  }
348
+
344
349
  h6,
345
350
  .h6 {
346
351
  font-size: 0.8125rem;
347
352
  }
353
+
348
354
  .lead {
349
355
  font-size: 1.25rem;
350
356
  font-weight: 300;
@@ -1140,6 +1146,10 @@ button.collapse-icon .c-inner {
1140
1146
  padding-bottom: calc(3 / 4 * 100%);
1141
1147
  }
1142
1148
 
1149
+ .aspect-ratio-8-to-3 {
1150
+ padding-bottom: calc(3 / 8 * 100%);
1151
+ }
1152
+
1143
1153
  .aspect-ratio-8-to-5 {
1144
1154
  padding-bottom: calc(5 / 8 * 100%);
1145
1155
  }
@@ -1235,6 +1245,9 @@ button.collapse-icon .c-inner {
1235
1245
  .btn .inline-item {
1236
1246
  font-size: 1rem;
1237
1247
  }
1248
+ .btn .inline-item .lexicon-icon {
1249
+ margin-top: 0;
1250
+ }
1238
1251
  .btn .btn-section {
1239
1252
  display: block;
1240
1253
  font-size: 0.6875rem;
@@ -1294,6 +1307,10 @@ fieldset:disabled a.btn:active {
1294
1307
  margin-right: -0.75rem;
1295
1308
  margin-top: -0.4375rem;
1296
1309
  }
1310
+ .form-group-sm .btn .lexicon-icon, .btn-group-sm > .btn .lexicon-icon,
1311
+ .btn-group-sm .btn-group > .btn .lexicon-icon, .btn-sm .lexicon-icon {
1312
+ font-size: 1rem;
1313
+ }
1297
1314
  .form-group-sm .btn .btn-section, .btn-group-sm > .btn .btn-section,
1298
1315
  .btn-group-sm .btn-group > .btn .btn-section, .btn-sm .btn-section {
1299
1316
  font-size: 0.5625rem;
@@ -1360,6 +1377,9 @@ input[type=button].btn-block {
1360
1377
  padding: 0;
1361
1378
  width: 100%;
1362
1379
  }
1380
+ .btn-monospaced .lexicon-icon {
1381
+ margin-top: 0;
1382
+ }
1363
1383
  .btn-group-vertical > .btn-monospaced.btn-lg, .btn-group-lg .btn-monospaced, .btn-monospaced.btn-lg {
1364
1384
  height: 3rem;
1365
1385
  width: 3rem;
@@ -6677,6 +6697,9 @@ input[type=button].btn-block {
6677
6697
  .dropdown-action > .dropdown-toggle .lexicon-icon {
6678
6698
  margin-top: 0;
6679
6699
  }
6700
+ .dropdown-action > .dropdown-toggle .inline-item .lexicon-icon {
6701
+ margin-top: 0;
6702
+ }
6680
6703
  .dropdown-menu-indicator-start .dropdown-item-indicator {
6681
6704
  height: 1rem;
6682
6705
  left: 1.25rem;
@@ -29418,10 +29441,6 @@ button.bg-dark:focus {
29418
29441
  z-index: 1;
29419
29442
  }
29420
29443
 
29421
- .text-monospace {
29422
- font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
29423
- }
29424
-
29425
29444
  .text-justify {
29426
29445
  text-align: justify !important;
29427
29446
  }
@@ -29516,34 +29535,90 @@ button.bg-dark:focus {
29516
29535
  text-transform: capitalize !important;
29517
29536
  }
29518
29537
 
29519
- .font-weight-light {
29520
- font-weight: 300 !important;
29538
+ .font-weight-lighter,
29539
+ .text-weight-lighter {
29540
+ font-weight: lighter !important;
29521
29541
  }
29522
29542
 
29523
- .font-weight-lighter {
29524
- font-weight: lighter !important;
29543
+ .font-weight-light,
29544
+ .text-weight-light {
29545
+ font-weight: 300 !important;
29525
29546
  }
29526
29547
 
29527
- .font-weight-normal {
29548
+ .font-weight-normal,
29549
+ .text-weight-normal {
29528
29550
  font-weight: 400 !important;
29529
29551
  }
29530
29552
 
29531
- .font-weight-semi-bold {
29553
+ .font-weight-semi-bold,
29554
+ .text-weight-semi-bold {
29532
29555
  font-weight: 600 !important;
29533
29556
  }
29534
29557
 
29535
- .font-weight-bold {
29558
+ .font-weight-bold,
29559
+ .text-weight-bold {
29536
29560
  font-weight: 700 !important;
29537
29561
  }
29538
29562
 
29539
- .font-weight-bolder {
29563
+ .font-weight-bolder,
29564
+ .text-weight-bolder {
29540
29565
  font-weight: 900 !important;
29541
29566
  }
29542
29567
 
29543
- .font-italic {
29568
+ .font-italic,
29569
+ .text-italic {
29544
29570
  font-style: italic !important;
29545
29571
  }
29546
29572
 
29573
+ .font-monospace,
29574
+ .text-monospace {
29575
+ font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
29576
+ }
29577
+
29578
+ .text-1 {
29579
+ font-size: 0.625rem;
29580
+ }
29581
+
29582
+ .text-2 {
29583
+ font-size: 0.75rem;
29584
+ }
29585
+
29586
+ .text-3 {
29587
+ font-size: 0.875rem;
29588
+ }
29589
+
29590
+ .text-4 {
29591
+ font-size: 1rem;
29592
+ }
29593
+
29594
+ .text-5 {
29595
+ font-size: 1.125rem;
29596
+ }
29597
+
29598
+ .text-6 {
29599
+ font-size: 1.25rem;
29600
+ }
29601
+
29602
+ .text-7 {
29603
+ font-size: 1.5rem;
29604
+ }
29605
+
29606
+ .text-8 {
29607
+ font-size: 1.75rem;
29608
+ }
29609
+
29610
+ .text-9 {
29611
+ font-size: 2rem;
29612
+ }
29613
+
29614
+ .text-10 {
29615
+ font-size: 2.25rem;
29616
+ }
29617
+
29618
+ .text-11 {
29619
+ font-size: 2.5rem;
29620
+ }
29621
+
29547
29622
  .text-white {
29548
29623
  color: #fff !important;
29549
29624
  }