Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update left navigation style and behaviour #87

Open
wants to merge 21 commits into
base: ui-refresh
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion preview-src/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ It might be a gentle suggestion in the form of a note or tip or something more s
****

[TIP]
====
This oughta do it!

====
[NOTE]
====
Oh, you've been down _this_ road before.
Expand Down
6 changes: 6 additions & 0 deletions preview-src/ui-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ page:
latest: *latest_page
navigation:
- content: Introduction
icons: fas fa-database
items:
- content: Why Couchbase?
url: '#'
Expand All @@ -85,6 +86,7 @@ page:
url: '#'
urlType: fragment
- content: Getting Started
icons: fas fa-database
items:
- content: Start Here!
url: '#'
Expand All @@ -93,6 +95,7 @@ page:
url: '#'
urlType: fragment
- content: Developers
icons: fas fa-database
items:
- content: Hello World!
url: '#'
Expand All @@ -102,6 +105,7 @@ page:
urlType: fragment
- &crumb_0
content: Managing Clusters
icons: fas fa-database
items:
- &crumb_1
content: Monitoring
Expand Down Expand Up @@ -144,6 +148,7 @@ page:
url: '#'
urlType: fragment
- content: Installing & Upgrading
icons: fas fa-database
items:
- content: Couchbase Server Installation Home
url: '#'
Expand All @@ -163,6 +168,7 @@ page:
url: '#'
urlType: fragment
- content: Understanding Couchbase
icons: fas fa-database
items:
- content: Overview
url: '#'
Expand Down
19 changes: 17 additions & 2 deletions src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ body {

body {
color: var(--color-text);
font-family: "Gotham", sans-serif;
font-family: "Source Sans Pro", sans-serif;
/* font-family: "Gotham", sans-serif; */
line-height: 1.5;
margin: 0;
}
Expand Down Expand Up @@ -74,8 +75,22 @@ small {
font-size: 0.8em;
}

.container {
.container,
.container-fluid {
margin: 0 auto;
max-width: var(--width-container);
padding: 0 var(--width-container-gutter);
}
/* .container-fluid {
max-width: var(--width-container-fluid);
padding: 0;
margin: 0 auto;
} */

@media screen and (min-width: 1024px) {
.container-fluid {
max-width: var(--width-container-fluid);
padding: 0;
margin: 0 auto;
}
}
49 changes: 49 additions & 0 deletions src/css/clipboard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.copy-code-button {
position: absolute;
background: url(../img/copy.png) no-repeat center right/contain;
width: 20px;
height: 10px;
right: 0.5rem;
top: 0.375rem;
display: none;
cursor: pointer;
}

.doc .listingblock:hover .copy-code-button {
display: block;
}

.copy-code-button:hover::after {
content: attr(data-title);
color: var("--color-brand-gray4");
font-size: 0.7em;
font-weight: var(--weight-light);
letter-spacing: 1px;
line-height: 1;
text-transform: capitalize;
position: absolute;
bottom: -30px;
right: -100%;
left: -100%;
margin: auto;
padding: 5px;
text-align: center;
box-shadow: inset 0 0 1px #bec0c1;
background: var(--color-brand-white);
border: 1px solid var(--color-brand-gray6);
box-sizing: border-box;
border-radius: 3px;
}

.copy-code-button:hover::before {
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 10px solid var(--color-brand-white);
position: absolute;
content: "";
box-shadow: inset 0 0 1px #bec0c1;
bottom: -10px;
right: 0;
}
26 changes: 26 additions & 0 deletions src/css/common.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: var(--z-index-nav-mobile);
}

.btn {
border-radius: 3px;
font-family: "Source Sans Pro", sans-serif;
font-size: 1.125rem;
}

.btn-primary {
padding: 5px 15px;
border: 1px solid var(--color-brand-blue);
background: var(--color-brand-blue);
color: var(--color-brand-white);
}

@media screen and (min-width: 768px) {
.btn-primary {
padding: 8px 25px;
}
}
71 changes: 71 additions & 0 deletions src/css/component-frame.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
.component-frame {
/* rgba(87, 160, 255, 1) */
/* background: rgba(var(--color-blue-rgb), 0.07); */
padding: 12px 30px 12px 15px;
display: flex;
align-items: center;
}

.frame-body {
margin-left: 10px;
position: relative;
}

.frame-body .title {
margin: 0;
font-size: 1.25rem;
font-weight: var(--weight-semibold);
color: var(--color-brand-gray1);
}

.frame-body .frame-link {
position: relative;
}

.frame-body .frame-link::after {
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 8px solid var(--color-brand-gray4);
top: 0;
position: absolute;
content: '';
cursor: pointer;
right: -15px;
bottom: 0;
margin: auto;
}

.frame-body .frame-link-dropdowns:hover .frame-dropdown {
display: block;
}

.frame-dropdown {
position: absolute;
display: none;
background: var(--color-brand-white);
padding: 5px 15px;
left: -15px;
top: 50px;
border-radius: 4px;
z-index: 1;
}

.frame-dropdown .frame-dropdown-list {
margin: 0;
padding: 0;
list-style: none;
}

.frame-link,
.frame-item {
font-size: 1rem;
color: var(--color-brand-gray4);
text-decoration: none;
}

.frame-link:hover,
.frame-item:hover {
text-decoration: none;
}
Loading