-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjquery-dynamic-content-menu.css
executable file
·135 lines (111 loc) · 3.71 KB
/
jquery-dynamic-content-menu.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/*
* jquery-dynamic-content-menu.css 1.0.0
* Author: coderius
*/
:root {
--scodColorBlue-500: #2196f3;
--scodColorBlue-700: #1976d2;
--scodColorIndigo: #3f51b5;
--scodItemActiveTextColor: #fff;
--scodColorGray-300: #e0e0e0;
--fontFamilyRoboto: "Roboto", "Helvetica", "Arial", sans-serif;
--fontWeight-500: 500;
--letterSpacing-002: 0.02857em;
--scodDefaultBoxShadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
--scodDefaultBorderRadius: 6px;
--scodDefaultlinkColor: var(--scodColorIndigo);
--scodLineHeght-1: 35px;
--scodLineHeght-2: 30px;
--scodLineHeght-3: 25px;
}
/* Themes */
.scod-theme-material{
--mainBoxShadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
--mainBorder: 1px solid #ccc;
--mainBorderRadius: 4px;
--mainBackgroundColor: #fff;
--linkColor: var(--scodColorBlue-700);
--h1FintFamily: var(--fontFamilyRoboto);
--h1FontWeight: var(--fontWeight-500);
--h1LetterSpacing: var(--letterSpacing-002);
--h1TextTransform: uppercase;
--itemHoverBackgroundColor: var(--scodColorGray-300);
--itemActiveBackgroundColor: #0088cc;
--itemActiveTextColor: #fff;
}
/* The Table of Contents container element */
.dynamicContentMenu {
width: 20%;
max-height: 90%;
overflow: auto;
margin-left: 2%;
position: fixed;
border: var(--mainBorder, 1px solid #ccc);
box-shadow: var(--mainBoxShadow, --scodDefaultBoxShadow);
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: var(--mainBorderRadius, --scodDefaultBorderRadius);
}
.dynamicContentMenu a{
color: var(--linkColor, --scodDefaultlinkColor) !important;
/* padding: 10px 0; */
}
/* The Table of Contents is composed of multiple nested unordered lists. These styles remove the default styling of an unordered list because it is ugly. */
.dynamicContentMenu ul, .dynamicContentMenu li {
list-style: none;
margin: 0;
padding: 0;
border: none;
line-height: var(--scodLineHeght-1, 35px);
}
/* Top level header elements */
.dynamicContentMenu__header {
text-indent: 10px;
font-family: --fontFamilyRoboto;
text-transform: var(--h1TextTransform, none);
}
/* Top level subheader elements. These are the first nested items underneath a header element. */
.dynamicContentMenu__subheader {
text-indent: 20px;
display: none;
text-transform: none !important;
}
.dynamicContentMenu__subheader li{
line-height: var(--scodLineHeght-2, 30px);
}
.dynamicContentMenu__item {
background-color: transparent;
transition: all 0.5s;
}
.dynamicContentMenu__item:hover {
background-color: var(--itemHoverBackgroundColor, transparent);
}
/* Makes the font smaller for all subheader elements. */
.dynamicContentMenu__subheader li {
font-size: 12px;
}
/* Further indents second level subheader elements. */
.dynamicContentMenu__subheader .dynamicContentMenu__subheader {
text-indent: 30px;
}
/* Further indents third level subheader elements. You can continue this pattern if you have more nested elements. */
.dynamicContentMenu__subheader .dynamicContentMenu__subheader .dynamicContentMenu__subheader {
text-indent: 40px;
}
/* Common styles */
.scod-flex-container{
display: flex;
/* flex-wrap: wrap; */
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
flex-direction: column !important;
}
.active{
background-color: var(--itemActiveBackgroundColor, --scodColorBlue-500);
}
.active a{
color: var(--itemActiveTextColor, --scodItemActiveTextColor) !important;
}
.dynamicContentMenu_hide{
display: none;
}