Skip to content

Commit 5f4f2cd

Browse files
authored
Merge pull request #7 from rakeshAlgo/style-guide-ui
UI changes according to new style guide.
2 parents b3cb9ef + 1bfc9a2 commit 5f4f2cd

19 files changed

+548
-244
lines changed

preview-src/index.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
= Monitoring Statistics
22
:doctype: book
33
:page-edition: enterprise
4-
:page-status: beta
54
// The following should be global document attributes
65
:url-edition: https://www.couchbase.com/products/editions
76
:enterprise: {url-edition}[ENTERPRISE EDITION]
@@ -147,7 +146,7 @@ You could also use it to mark new features, but _only within the version in whic
147146
== Labels for a Section
148147

149148
[.labels]
150-
[.edition]##{enterprise}##[.status]##{developer-preview}##
149+
[.edition]##{enterprise}##
151150

152151
To create an edition label, use a span with the role `edition`.
153152
To create a status label, use a span with the role `status`.
@@ -246,7 +245,7 @@ return thisAirline; // <2>
246245

247246
[#vbucket-stats]
248247
== Monitoring `vBucket` Resources
249-
248+
[.table-ui]
250249
[cols="1,3"]
251250
|===
252251
| Statistic | Description

src/css/base.css

Lines changed: 104 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,25 @@ body {
1818
color: var(--color-text);
1919
font-family: "Source Sans Pro", sans-serif;
2020
/* font-family: "Gotham", sans-serif; */
21-
line-height: 1.5;
21+
line-height: var(--line-height-body);
2222
margin: 0;
2323
}
2424

2525
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,
3233
a:hover {
3334
text-decoration: underline;
35+
color: var(--color-link-hover);
36+
}
37+
38+
a:active {
39+
color: var(--color-link-active);
3440
}
3541

3642
button,
@@ -53,12 +59,13 @@ button::-moz-focus-inner {
5359
code,
5460
kbd,
5561
pre {
56-
font-family: "Roboto Mono", monospace;
62+
/* font-family: "Roboto Mono", monospace; */
63+
font-family: "Source Sans Pro", sans-serif;
5764
}
5865

5966
code {
6067
color: var(--color-brand-black);
61-
font-size: 0.9375em;
68+
font-size: var(--font-base);
6269
word-spacing: -0.125em;
6370
}
6471

@@ -68,7 +75,7 @@ html code {
6875

6976
b,
7077
strong {
71-
font-weight: var(--weight-bold);
78+
font-weight: var(--weight-semibold);
7279
}
7380

7481
small {
@@ -87,6 +94,99 @@ small {
8794
margin: 0 auto;
8895
} */
8996

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

src/css/clipboard.css

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
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+
z-index: 1;
13+
}
14+
15+
a.copy-code-button:focus,
16+
a.copy-code-button:hover {
17+
color: var(--color-brand-gray4);
1018
}
1119

1220
.doc .listingblock:hover .copy-code-button {
@@ -16,34 +24,35 @@
1624
.copy-code-button:hover::after {
1725
content: attr(data-title);
1826
color: var("--color-brand-gray4");
19-
font-size: 0.7em;
27+
font-size: 14px;
2028
font-weight: var(--weight-light);
21-
letter-spacing: 1px;
2229
line-height: 1;
2330
text-transform: capitalize;
2431
position: absolute;
25-
bottom: -30px;
32+
bottom: -53px;
2633
right: -100%;
2734
left: -100%;
2835
margin: auto;
2936
padding: 5px;
3037
text-align: center;
31-
box-shadow: inset 0 0 1px #bec0c1;
38+
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
3239
background: var(--color-brand-white);
33-
border: 1px solid var(--color-brand-gray6);
40+
border: 1px solid var(--color-brand-gray7);
3441
box-sizing: border-box;
3542
border-radius: 3px;
43+
/* min-width: 90px; */
44+
font-family: "Source Sans Pro", sans-serif;
3645
}
3746

3847
.copy-code-button:hover::before {
3948
width: 0;
4049
height: 0;
41-
border-left: 5px solid transparent;
42-
border-right: 5px solid transparent;
50+
border-left: 7px solid transparent;
51+
border-right: 7px solid transparent;
4352
border-bottom: 10px solid var(--color-brand-white);
4453
position: absolute;
4554
content: "";
4655
box-shadow: inset 0 0 1px #bec0c1;
47-
bottom: -10px;
56+
bottom: -27px;
4857
right: 0;
4958
}

src/css/contributor.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
display: flex;
33
align-items: center;
44
flex-wrap: wrap;
5-
margin: 15px 0;
5+
margin: 15px 0 0;
66
visibility: hidden;
7+
display: none;
78
}
89

910
.contributor-list-box.show {

0 commit comments

Comments
 (0)