genesys-react-components 0.2.4-no-jira-peer-deps.194 → 0.3.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 +24 -1
- package/build/index.js +105 -13
- package/build/index.js.map +1 -1
- package/package.json +53 -52
- package/src/alertblock/AlertBlock.scss +1 -1
- package/src/copybutton/CopyButton.scss +1 -1
- package/src/dxaccordion/DxAccordion.scss +6 -3
- package/src/dxbutton/DxButton.scss +26 -23
- package/src/dxitemgroup/DxCheckbox.scss +22 -17
- package/src/dxitemgroup/dropdown.scss +11 -9
- package/src/dxitemgroup/multiselect.scss +12 -9
- package/src/dxlabel/DxLabel.scss +5 -3
- package/src/dxtabbedcontent/DxTabbedContent.scss +6 -4
- package/src/dxtextbox/DxTextbox.scss +15 -12
- package/src/dxtoggle/DxToggle.scss +15 -11
- package/src/loadingplaceholder/LoadingPlaceholder.scss +3 -2
- package/src/loadingplaceholder/LoadingPlaceholder.tsx +94 -1
- package/src/theme/fonts/roboto-v29-latin-300.woff +0 -0
- package/src/theme/fonts/roboto-v29-latin-300.woff2 +0 -0
- package/src/theme/fonts/roboto-v29-latin-300italic.woff +0 -0
- package/src/theme/fonts/roboto-v29-latin-300italic.woff2 +0 -0
- package/src/theme/fonts/roboto-v29-latin-700.woff +0 -0
- package/src/theme/fonts/roboto-v29-latin-700.woff2 +0 -0
- package/src/theme/fonts/roboto-v29-latin-700italic.woff +0 -0
- package/src/theme/fonts/roboto-v29-latin-700italic.woff2 +0 -0
- package/src/theme/fonts/roboto-v29-latin-italic.woff +0 -0
- package/src/theme/fonts/roboto-v29-latin-italic.woff2 +0 -0
- package/src/theme/fonts/roboto-v29-latin-regular.woff +0 -0
- package/src/theme/fonts/roboto-v29-latin-regular.woff2 +0 -0
- package/src/theme/roboto.scss +65 -0
- package/src/theme/scrollbars.scss +49 -0
- package/src/theme/typography.scss +184 -0
- package/src/theme/variables.scss +413 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
|
+
|
|
1
3
|
.dx-toggle-container {
|
|
2
4
|
display: inline-block;
|
|
3
5
|
.dx-toggle {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
border: 1px solid var($--theme-core-control-border-color);
|
|
7
|
+
background: var($--theme-core-control-background-color);
|
|
6
8
|
border-radius: 6px;
|
|
7
9
|
height: 26px;
|
|
8
10
|
// width: 72px;
|
|
@@ -16,7 +18,7 @@
|
|
|
16
18
|
|
|
17
19
|
&:hover {
|
|
18
20
|
.slider {
|
|
19
|
-
border-color:
|
|
21
|
+
border-color: var($--theme-core-control-focus-color);
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -24,7 +26,7 @@
|
|
|
24
26
|
font-size: 10px;
|
|
25
27
|
line-height: 0;
|
|
26
28
|
margin: 0 5px;
|
|
27
|
-
color:
|
|
29
|
+
color: var($--theme-core-control-border-color);
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
.clear-placeholder {
|
|
@@ -38,8 +40,8 @@
|
|
|
38
40
|
height: 22px;
|
|
39
41
|
width: 22px;
|
|
40
42
|
border-radius: 22px;
|
|
41
|
-
background-color:
|
|
42
|
-
box-shadow: 0px 1px 2px
|
|
43
|
+
background-color: var($--theme-core-control-punch-color);
|
|
44
|
+
box-shadow: 0px 1px 2px var($--theme-core-box-shadow-color);
|
|
43
45
|
display: flex;
|
|
44
46
|
align-items: center;
|
|
45
47
|
justify-content: center;
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
.icon {
|
|
49
51
|
font-size: 10px;
|
|
50
52
|
line-height: 0;
|
|
51
|
-
color:
|
|
53
|
+
color: var($--theme-core-control-background-color);
|
|
52
54
|
padding: 0;
|
|
53
55
|
margin: 0;
|
|
54
56
|
}
|
|
@@ -57,9 +59,10 @@
|
|
|
57
59
|
|
|
58
60
|
&.disabled {
|
|
59
61
|
.dx-toggle {
|
|
60
|
-
border-color: #e8eaed;
|
|
61
|
-
color: #ffffff;
|
|
62
62
|
cursor: not-allowed;
|
|
63
|
+
opacity: 0.7;
|
|
64
|
+
border-color: var($--theme-core-control-border-color);
|
|
65
|
+
color: var($--theme-core-control-background-color);
|
|
63
66
|
|
|
64
67
|
&:hover {
|
|
65
68
|
.slider {
|
|
@@ -68,8 +71,9 @@
|
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
.slider {
|
|
71
|
-
|
|
72
|
-
background-color
|
|
74
|
+
opacity: 0.7;
|
|
75
|
+
color: var($--theme-core-control-background-color);
|
|
76
|
+
background-color: var($--theme-core-control-punch-color);
|
|
73
77
|
}
|
|
74
78
|
}
|
|
75
79
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
2
|
|
|
3
3
|
$size: 160px;
|
|
4
4
|
|
|
@@ -13,6 +13,7 @@ $size: 160px;
|
|
|
13
13
|
flex-flow: row nowrap;
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: center;
|
|
16
|
+
text-align: center;
|
|
16
17
|
width: 100%;
|
|
17
18
|
height: 100%;
|
|
18
19
|
font-style: normal;
|
|
@@ -55,4 +56,4 @@ $size: 160px;
|
|
|
55
56
|
opacity: 0;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
}
|
|
59
|
+
}
|
|
@@ -2,6 +2,99 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import './LoadingPlaceholder.scss';
|
|
4
4
|
|
|
5
|
+
// SimCity loading messages! https://gist.github.com/erikcox/7e96d031d00d7ecb1a2f
|
|
6
|
+
const MESSAGES = [
|
|
7
|
+
'Adding Hidden Agendas',
|
|
8
|
+
'Adjusting Bell Curves',
|
|
9
|
+
'Aesthesizing Industrial Areas',
|
|
10
|
+
'Aligning Covariance Matrices',
|
|
11
|
+
'Applying Feng Shui Shaders',
|
|
12
|
+
'Applying Theatre Soda Layer',
|
|
13
|
+
'Asserting Packed Exemplars',
|
|
14
|
+
'Attempting to Lock Back-Buffer',
|
|
15
|
+
'Binding Sapling Root System',
|
|
16
|
+
'Building Data Trees',
|
|
17
|
+
'Bureacritizing Bureaucracies',
|
|
18
|
+
'Calculating Inverse Probability Matrices',
|
|
19
|
+
'Calculating Llama Expectoration Trajectory',
|
|
20
|
+
'Calibrating Blue Skies',
|
|
21
|
+
'Charging Ozone Layer',
|
|
22
|
+
'Coalescing Cloud Formations',
|
|
23
|
+
'Cohorting Exemplars',
|
|
24
|
+
'Collecting Meteor Particles',
|
|
25
|
+
'Compounding Inert Tessellations',
|
|
26
|
+
'Compressing Fish Files',
|
|
27
|
+
'Computing Optimal Bin Packing',
|
|
28
|
+
'Concatenating Sub-Contractors',
|
|
29
|
+
'Containing Existential Buffer',
|
|
30
|
+
'Debunching Unionized Commercial Services',
|
|
31
|
+
'Deciding What Message to Display Next',
|
|
32
|
+
'Decomposing Singular Values',
|
|
33
|
+
'Decrementing Tectonic Plates',
|
|
34
|
+
'Deleting Ferry Routes',
|
|
35
|
+
'Depixelating Inner Mountain Surface Back Faces',
|
|
36
|
+
'Deunionizing Bulldozers',
|
|
37
|
+
'Dicing Models',
|
|
38
|
+
'Diluting Livestock Nutrition Variables',
|
|
39
|
+
'Downloading Satellite Terrain Data',
|
|
40
|
+
'Exposing Flash Variables to Streak System',
|
|
41
|
+
'Extracting Resources',
|
|
42
|
+
'Flushing Pipe Network',
|
|
43
|
+
'Gathering Particle Sources',
|
|
44
|
+
'Generating Jobs',
|
|
45
|
+
'Gesticulating Mimes',
|
|
46
|
+
'Graphing Whale Migration',
|
|
47
|
+
'Hiding Willio Webnet Mask',
|
|
48
|
+
'Increasing Accuracy of RCI Simulators',
|
|
49
|
+
'Increasing Magmafacation',
|
|
50
|
+
'Initializing My Sim Tracking Mechanism',
|
|
51
|
+
'Initializing Robotic Click-Path AI',
|
|
52
|
+
'Inserting Sublimated Messages',
|
|
53
|
+
'Integrating Curves',
|
|
54
|
+
'Integrating Illumination Form Factors',
|
|
55
|
+
'Integrating Population Graphs',
|
|
56
|
+
'Iterating Cellular Automata',
|
|
57
|
+
'Lecturing Errant Subsystems',
|
|
58
|
+
'Modeling Object Components',
|
|
59
|
+
'Mopping Occupant Leaks',
|
|
60
|
+
'Normalizing Power',
|
|
61
|
+
'Obfuscating Quigley Matrix',
|
|
62
|
+
'Partitioning Singularities',
|
|
63
|
+
'Perturbing Matrices',
|
|
64
|
+
'Polishing Water Highlights',
|
|
65
|
+
'Populating Lot Templates',
|
|
66
|
+
'Preparing Sprites for Random Walks',
|
|
67
|
+
'Prioritizing Landmarks',
|
|
68
|
+
'Projecting Law Enforcement Pastry Intake',
|
|
69
|
+
'Realigning Alternate Time Frames',
|
|
70
|
+
'Relaxing Splines',
|
|
71
|
+
'Removing Road Network Speed Bumps',
|
|
72
|
+
'Removing Texture Gradients',
|
|
73
|
+
'Removing Vehicle Avoidance Behavior',
|
|
74
|
+
'Reticulating Splines',
|
|
75
|
+
'Retracting Phong Shader',
|
|
76
|
+
'Retrieving from Back Store',
|
|
77
|
+
'Reverse Engineering Image Consultant',
|
|
78
|
+
'Routing Neural Network Infanstructure',
|
|
79
|
+
'Scattering Rhino Food Sources',
|
|
80
|
+
'Scrubbing Terrain',
|
|
81
|
+
'Searching for Llamas',
|
|
82
|
+
'Seeding Architecture Simulation Parameters',
|
|
83
|
+
'Sequencing Particles',
|
|
84
|
+
'Setting Advisor Moods',
|
|
85
|
+
'Setting Inner Deity Indicators',
|
|
86
|
+
'Setting Universal Physical Constants',
|
|
87
|
+
'Sonically Enhancing Occupant-Free Timber',
|
|
88
|
+
'Speculating Stock Market Indices',
|
|
89
|
+
'Splatting Transforms',
|
|
90
|
+
'Stratifying Ground Layers',
|
|
91
|
+
'Sub-Sampling Water Data',
|
|
92
|
+
'Synthesizing Gravity',
|
|
93
|
+
'Synthesizing Wavelets',
|
|
94
|
+
'Time-Compressing Simulator Clock',
|
|
95
|
+
'Unable to Reveal Current Activity',
|
|
96
|
+
];
|
|
97
|
+
|
|
5
98
|
interface IProps {
|
|
6
99
|
text?: string;
|
|
7
100
|
}
|
|
@@ -9,7 +102,7 @@ interface IProps {
|
|
|
9
102
|
export default function LoadingPlaceholder(props: IProps) {
|
|
10
103
|
return (
|
|
11
104
|
<div className="loading-placeholder">
|
|
12
|
-
<span className="text">{props.text ||
|
|
105
|
+
<span className="text">{props.text || MESSAGES[Math.floor(Math.random() * (MESSAGES.length - 1))]}</span>
|
|
13
106
|
<div></div>
|
|
14
107
|
<div></div>
|
|
15
108
|
</div>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* roboto-300 - latin */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Roboto';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 300;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src: local(''),
|
|
8
|
+
url('./fonts/roboto-v29-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
|
9
|
+
url('./fonts/roboto-v29-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* roboto-300italic - latin */
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: 'Roboto';
|
|
15
|
+
font-style: italic;
|
|
16
|
+
font-weight: 300;
|
|
17
|
+
font-display: swap;
|
|
18
|
+
src: local(''),
|
|
19
|
+
url('./fonts/roboto-v29-latin-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
|
20
|
+
url('./fonts/roboto-v29-latin-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* roboto-regular - latin */
|
|
24
|
+
@font-face {
|
|
25
|
+
font-family: 'Roboto';
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
font-display: swap;
|
|
29
|
+
src: local(''),
|
|
30
|
+
url('./fonts/roboto-v29-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
|
31
|
+
url('./fonts/roboto-v29-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* roboto-italic - latin */
|
|
35
|
+
@font-face {
|
|
36
|
+
font-family: 'Roboto';
|
|
37
|
+
font-style: italic;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
font-display: swap;
|
|
40
|
+
src: local(''),
|
|
41
|
+
url('./fonts/roboto-v29-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
|
42
|
+
url('./fonts/roboto-v29-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* roboto-700 - latin */
|
|
46
|
+
@font-face {
|
|
47
|
+
font-family: 'Roboto';
|
|
48
|
+
font-style: normal;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
font-display: swap;
|
|
51
|
+
src: local(''),
|
|
52
|
+
url('./fonts/roboto-v29-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
|
53
|
+
url('./fonts/roboto-v29-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* roboto-700italic - latin */
|
|
57
|
+
@font-face {
|
|
58
|
+
font-family: 'Roboto';
|
|
59
|
+
font-style: italic;
|
|
60
|
+
font-weight: 700;
|
|
61
|
+
font-display: swap;
|
|
62
|
+
src: local(''),
|
|
63
|
+
url('./fonts/roboto-v29-latin-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
|
64
|
+
url('./fonts/roboto-v29-latin-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
65
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@import './variables.scss';
|
|
2
|
+
|
|
3
|
+
// Webkit scrollbars (Chrome, Opera, Safari, Edge... every browser but firefox
|
|
4
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-scrollbar
|
|
5
|
+
::-webkit-scrollbar {
|
|
6
|
+
-webkit-appearance: none;
|
|
7
|
+
width: 7px;
|
|
8
|
+
height: 7px;
|
|
9
|
+
}
|
|
10
|
+
::-webkit-scrollbar-thumb {
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
background-color: var($--theme-core-scrollbar-color);
|
|
13
|
+
}
|
|
14
|
+
::-webkit-scrollbar-corner {
|
|
15
|
+
background: transparent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Just firefox
|
|
19
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color
|
|
20
|
+
body {
|
|
21
|
+
scrollbar-color: var($--theme-core-scrollbar-color) transparent;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.scrollbar-toggle-button {
|
|
25
|
+
position: fixed;
|
|
26
|
+
top: 7px;
|
|
27
|
+
left: 750px;
|
|
28
|
+
width: 220px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.disappearing-scrollbars {
|
|
32
|
+
// Firefox
|
|
33
|
+
scrollbar-color: transparent transparent;
|
|
34
|
+
|
|
35
|
+
// Chrome
|
|
36
|
+
&::-webkit-scrollbar-thumb {
|
|
37
|
+
background-color: transparent;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
// Firefox
|
|
42
|
+
scrollbar-color: var($--theme-core-scrollbar-color) transparent;
|
|
43
|
+
|
|
44
|
+
// Chrome
|
|
45
|
+
&::-webkit-scrollbar-thumb {
|
|
46
|
+
background-color: var($--theme-core-scrollbar-color);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
@import './variables.scss';
|
|
2
|
+
|
|
3
|
+
body {
|
|
4
|
+
color: var($--theme-core-text-color);
|
|
5
|
+
|
|
6
|
+
::selection {
|
|
7
|
+
background: var($--theme-core-selection-color);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
h1,
|
|
11
|
+
.h1,
|
|
12
|
+
h2,
|
|
13
|
+
.h2,
|
|
14
|
+
h3,
|
|
15
|
+
.h3,
|
|
16
|
+
h4,
|
|
17
|
+
.h4,
|
|
18
|
+
h5,
|
|
19
|
+
.h5,
|
|
20
|
+
h6,
|
|
21
|
+
.h6 {
|
|
22
|
+
color: var($--theme-core-heading-color);
|
|
23
|
+
margin-top: 60px;
|
|
24
|
+
margin-bottom: 20px;
|
|
25
|
+
|
|
26
|
+
&:hover {
|
|
27
|
+
color: var($--theme-core-heading-color);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
h1,
|
|
32
|
+
.h1 {
|
|
33
|
+
font-size: 48px;
|
|
34
|
+
line-height: 56px;
|
|
35
|
+
font-weight: 100;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
h2,
|
|
39
|
+
.h2 {
|
|
40
|
+
font-size: 32px;
|
|
41
|
+
line-height: 38px;
|
|
42
|
+
font-weight: 100;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
h3,
|
|
46
|
+
.h3 {
|
|
47
|
+
font-size: 24px;
|
|
48
|
+
line-height: 32px;
|
|
49
|
+
font-weight: 300;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
h4,
|
|
53
|
+
.h4 {
|
|
54
|
+
font-size: 18px;
|
|
55
|
+
line-height: 24px;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
h5,
|
|
60
|
+
.h5 {
|
|
61
|
+
font-size: 16px;
|
|
62
|
+
line-height: 20px;
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
h6,
|
|
67
|
+
.h6 {
|
|
68
|
+
font-size: 14px;
|
|
69
|
+
line-height: 20px;
|
|
70
|
+
font-weight: 500;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.h7 {
|
|
74
|
+
font-size: 14px;
|
|
75
|
+
line-height: 20px;
|
|
76
|
+
font-weight: 700;
|
|
77
|
+
text-transform: uppercase;
|
|
78
|
+
display: block;
|
|
79
|
+
margin-top: 40px;
|
|
80
|
+
margin-bottom: 12px;
|
|
81
|
+
color: var($--theme-core-heading-seven-color);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
p {
|
|
85
|
+
margin-top: 0;
|
|
86
|
+
margin-bottom: 10px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
ol,
|
|
90
|
+
ul {
|
|
91
|
+
padding-left: 27px;
|
|
92
|
+
margin: 10px 0;
|
|
93
|
+
li {
|
|
94
|
+
line-height: 20px;
|
|
95
|
+
margin-bottom: 4px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// // Display numbered lists as 1 > a > i > 1 > a > i
|
|
100
|
+
ol {
|
|
101
|
+
list-style-type: decimal;
|
|
102
|
+
ol {
|
|
103
|
+
list-style-type: lower-alpha;
|
|
104
|
+
ol {
|
|
105
|
+
list-style-type: lower-roman;
|
|
106
|
+
ol {
|
|
107
|
+
list-style-type: decimal;
|
|
108
|
+
ol {
|
|
109
|
+
list-style-type: lower-alpha;
|
|
110
|
+
ol {
|
|
111
|
+
list-style-type: lower-roman;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
a,
|
|
120
|
+
a:link,
|
|
121
|
+
a:active,
|
|
122
|
+
a:visited,
|
|
123
|
+
a:focus,
|
|
124
|
+
a:hover {
|
|
125
|
+
color: var($--theme-core-link-color);
|
|
126
|
+
text-decoration: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
a {
|
|
130
|
+
&:hover {
|
|
131
|
+
text-decoration: none;
|
|
132
|
+
color: var($--theme-core-link-hover-color);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Don't style non-href anchors like links
|
|
136
|
+
&:not([href]):not([class]),
|
|
137
|
+
&:not([href]):not([class]):hover {
|
|
138
|
+
color: inherit;
|
|
139
|
+
text-decoration: none;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
code {
|
|
144
|
+
padding: 2px 4px;
|
|
145
|
+
border-radius: 4px;
|
|
146
|
+
color: var($--theme-core-code-color);
|
|
147
|
+
background-color: var($--theme-core-code-background-color);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
pre {
|
|
151
|
+
display: block;
|
|
152
|
+
margin: 40px 0;
|
|
153
|
+
padding: 0;
|
|
154
|
+
border-radius: 4px;
|
|
155
|
+
background-color: var($--theme-core-code-background-color);
|
|
156
|
+
height: 100%;
|
|
157
|
+
width: 100%;
|
|
158
|
+
box-sizing: border-box;
|
|
159
|
+
overflow: auto;
|
|
160
|
+
|
|
161
|
+
code {
|
|
162
|
+
background-color: transparent;
|
|
163
|
+
margin: 0;
|
|
164
|
+
padding: 20px;
|
|
165
|
+
display: block;
|
|
166
|
+
color: var($--theme-core-code-color);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Standardized indentation
|
|
171
|
+
@mixin indent-tier($tier) {
|
|
172
|
+
.indent-#{$tier} {
|
|
173
|
+
margin-left: $tier * 30px;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
@include indent-tier(1);
|
|
177
|
+
@include indent-tier(2);
|
|
178
|
+
@include indent-tier(3);
|
|
179
|
+
@include indent-tier(4);
|
|
180
|
+
@include indent-tier(5);
|
|
181
|
+
@include indent-tier(6);
|
|
182
|
+
@include indent-tier(7);
|
|
183
|
+
@include indent-tier(8);
|
|
184
|
+
}
|