Skip to content

Commit 4d820b8

Browse files
author
rakeshAlgo
committed
New Style Guide UI Fixes
1 parent e4a077c commit 4d820b8

File tree

14 files changed

+409
-219
lines changed

14 files changed

+409
-219
lines changed

preview-src/index.adoc

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ Installation will vary based on your operation system.
5757
<div class="ulist tabs">
5858
<ul>
5959
<li>
60+
<p><a id="tabset1_demo"></a> Code Block</p>
61+
</li>
62+
<li>
6063
<p><a id="tabset1_ubuntu"></a>Ubuntu</p>
6164
</li>
6265
<li>
@@ -68,7 +71,28 @@ Installation will vary based on your operation system.
6871
</ul>
6972
</div>
7073
<div class="content">
71-
<div class="tab-pane is-active" aria-labelledby="tabset1_ubuntu">
74+
<div class="tab-pane is-active" aria-labelledby="tabset1_demo">
75+
<div class="paragraph">
76+
++++
77+
[source,json]
78+
----
79+
{
80+
"_id": "_design/myddoc",
81+
"views": {
82+
"view1": {
83+
"map": "function(doc, meta) { if (doc.value) { emit(doc.value, meta.id);} }"
84+
}
85+
},
86+
"options": {
87+
"updateMinChanges": 1000,
88+
"replicaUpdateMinChanges": 20000
89+
}
90+
}
91+
----
92+
++++
93+
</div>
94+
</div>
95+
<div class="tab-pane" aria-labelledby="tabset1_ubuntu">
7296
<div class="paragraph">
7397
<p>Content for Ubuntu tab.</p>
7498
</div>
@@ -192,7 +216,7 @@ This section does not have any edition or status labels at the start.
192216

193217
* This is the first item in a list.
194218

195-
* [.edition]#{community}# This is the second item in a list.
219+
* [.community]#{community}# This is the second item in a list.
196220
This item is only applicable to community edition.
197221

198222
* This is the third item in the list.

src/css/base.css

Lines changed: 99 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ a {
2626
color: var(--color-link);
2727
outline: none;
2828
text-decoration: none;
29+
font-family: "Open Sans", sans-serif;
2930
}
3031

3132
a:focus,
@@ -57,7 +58,9 @@ button::-moz-focus-inner {
5758
code,
5859
kbd,
5960
pre {
60-
font-family: "Roboto Mono", monospace;
61+
/* font-family: "Roboto Mono", monospace; */
62+
font-family: "Source Sans Pro", sans-serif;
63+
6164
}
6265

6366
code {
@@ -91,6 +94,101 @@ small {
9194
margin: 0 auto;
9295
} */
9396

97+
98+
/* checkbox css */
99+
100+
/* Base for label styling */
101+
102+
[type="checkbox"]:not(:checked),
103+
[type="checkbox"]:checked {
104+
position: absolute;
105+
left: -9999px;
106+
}
107+
108+
[type="checkbox"]:not(:checked) + label,
109+
[type="checkbox"]:checked + label {
110+
position: relative;
111+
padding-left: 2rem;
112+
cursor: pointer;
113+
display: inline-block;
114+
}
115+
116+
/* checkbox aspect */
117+
[type="checkbox"]:not(:checked) + label::before,
118+
[type="checkbox"]:checked + label::before {
119+
content: "";
120+
position: absolute;
121+
left: 0;
122+
top: 0;
123+
width: 25px;
124+
height: 25px;
125+
border: 1px solid var(--checkbox-border-color);
126+
background: #F9F9F9;
127+
border-radius: 3px;
128+
display: inline-block;
129+
}
130+
/* checked mark aspect */
131+
[type="checkbox"]:not(:checked) + label::after,
132+
[type="checkbox"]:checked + label::after {
133+
content: "\2713\0020";
134+
position: absolute;
135+
top: 0;
136+
left: 0;
137+
font-size: 0.875rem;
138+
line-height: 0.8;
139+
color: var(--color-brand-white);
140+
transition: all 0.2s;
141+
width: 25px;
142+
height: 25px;
143+
display: flex;
144+
align-items: center;
145+
justify-content: center;
146+
background-color: var(--color-brand-blue-secondary);
147+
border-radius: 3px;
148+
}
149+
/* checked mark aspect changes */
150+
[type="checkbox"]:not(:checked) + label::after {
151+
opacity: 0;
152+
transform: scale(0);
153+
}
154+
155+
[type="checkbox"]:checked + label::after,
156+
.active[type="checkbox"] + label::after {
157+
opacity: 1;
158+
transform: scale(1);
159+
}
160+
/* disabled checkbox */
161+
[type="checkbox"]:disabled:not(:checked) + label::before,
162+
[type="checkbox"]:disabled:checked + label::before {
163+
box-shadow: none;
164+
border-color: #bbb;
165+
background-color: #ddd;
166+
}
167+
168+
[type="checkbox"]:disabled:checked + label::after {
169+
color: #999;
170+
}
171+
172+
[type="checkbox"]:disabled + label {
173+
color: #aaa;
174+
}
175+
176+
label:hover::before {
177+
border: 2px solid var(--color-brand-blue);
178+
outline: none;
179+
}
180+
181+
label,
182+
label:focus,
183+
label:active,
184+
label::before,
185+
label::after {
186+
outline: none;
187+
outline-width: 0;
188+
}
189+
190+
191+
/* Responsive css */
94192
@media screen and (min-width: 1024px) {
95193
.container-fluid {
96194
max-width: var(--width-container-fluid);

src/css/clipboard.css

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
.copy-code-button {
22
position: absolute;
33
background: url(../img/copy.png) no-repeat center right/contain;
4-
width: 20px;
5-
height: 10px;
4+
width: 24px;
5+
height: 14px;
66
right: 0.5rem;
7-
top: 0.375rem;
7+
top: 8px;
88
display: none;
99
cursor: pointer;
10+
font-family: "Source Sans Pro", sans-serif;
11+
color: var(--color-brand-gray4);
12+
}
13+
14+
a.copy-code-button:focus, a.copy-code-button:hover{
15+
color: var(--color-brand-gray4);
1016
}
1117

1218
.doc .listingblock:hover .copy-code-button {
@@ -16,34 +22,35 @@
1622
.copy-code-button:hover::after {
1723
content: attr(data-title);
1824
color: var("--color-brand-gray4");
19-
font-size: 0.7em;
25+
font-size: 14px;
2026
font-weight: var(--weight-light);
21-
letter-spacing: 1px;
2227
line-height: 1;
2328
text-transform: capitalize;
2429
position: absolute;
25-
bottom: -30px;
30+
bottom: -53px;
2631
right: -100%;
2732
left: -100%;
2833
margin: auto;
2934
padding: 5px;
3035
text-align: center;
31-
box-shadow: inset 0 0 1px #bec0c1;
36+
box-shadow: 0px 3px 6px #0000001A;
3237
background: var(--color-brand-white);
33-
border: 1px solid var(--color-brand-gray6);
38+
border: 1px solid var(--color-brand-gray7);
3439
box-sizing: border-box;
3540
border-radius: 3px;
41+
/* min-width: 90px; */
42+
font-family: "Source Sans Pro", sans-serif;
3643
}
3744

3845
.copy-code-button:hover::before {
3946
width: 0;
4047
height: 0;
41-
border-left: 5px solid transparent;
42-
border-right: 5px solid transparent;
48+
border-left: 7px solid transparent;
49+
border-right: 7px solid transparent;
4350
border-bottom: 10px solid var(--color-brand-white);
4451
position: absolute;
4552
content: "";
4653
box-shadow: inset 0 0 1px #bec0c1;
47-
bottom: -10px;
54+
bottom: -27px;
4855
right: 0;
4956
}

0 commit comments

Comments
 (0)