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

Dev Portal - Designer Edits #44

Merged
merged 34 commits into from
Apr 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
1a40b8d
Update font for search results heading
ceolson01 Apr 3, 2019
27e310b
Increase margin of search results heading
ceolson01 Apr 3, 2019
547ac79
Dropdown cta from 2 containers to 1
ceolson01 Apr 3, 2019
bb75cab
Improve dropdown paddings
ceolson01 Apr 3, 2019
0ad389c
Improve docsearch paddings
ceolson01 Apr 3, 2019
1df561c
Set html background to devportal nav color
ceolson01 Apr 3, 2019
1c2bcea
Fix paddings for core products
ceolson01 Apr 3, 2019
20c9d6d
Unify arrow styles
ceolson01 Apr 3, 2019
52d2779
Correctly align open source item links
ceolson01 Apr 3, 2019
ba5346a
Improve support CTA paddings & line height
ceolson01 Apr 3, 2019
8daa1f0
Mobile navigation improvements
ceolson01 Apr 3, 2019
72297ef
Improve search result styles
ceolson01 Apr 4, 2019
e2f1729
Make docs & tutorials background white
ceolson01 Apr 4, 2019
8189b5b
Update icon hover color
ceolson01 Apr 4, 2019
22ca1ee
Normalize headings between tutorial page & doc page
ceolson01 Apr 4, 2019
9a84dbc
Add grey theme for `Heading`, use for devrel cta
ceolson01 Apr 4, 2019
24fba42
Normalize font colors
ceolson01 Apr 4, 2019
38903cc
Add `large` margin size to header, use for cta items
ceolson01 Apr 4, 2019
12233d1
Darken blue in code blocks
ceolson01 Apr 4, 2019
f89c803
Increase nav height on desktop
ceolson01 Apr 4, 2019
0bc1eb0
Normalize headings & make consistent
ceolson01 Apr 4, 2019
7ff2e64
Switch mobile -> header menu paddings
ceolson01 Apr 4, 2019
5355191
Adjust size of nav toggle
ceolson01 Apr 4, 2019
52e8f90
Improve margins for mobile hero items
ceolson01 Apr 4, 2019
25fc909
Improve paddings for hero
ceolson01 Apr 4, 2019
511a4ef
Fix paddings for mobile in core products section
ceolson01 Apr 4, 2019
9fb3768
Fix open source paddings for mobile
ceolson01 Apr 4, 2019
ad060d2
Adjust paddings
ceolson01 Apr 4, 2019
3e9bf11
Fine-tune mobile headers
ceolson01 Apr 4, 2019
aa34369
Bring docs nav back for mobile
ceolson01 Apr 4, 2019
8ddbfa1
Remove global heading margin rule
ceolson01 Apr 9, 2019
672a9e8
Fix hero link & margins on all viewports
ceolson01 Apr 9, 2019
2cfcf2d
Add `projects` to limit transform projects for plugins
ceolson01 Apr 9, 2019
19bd208
Fix: new line
ceolson01 Apr 10, 2019
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
10 changes: 6 additions & 4 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,23 +172,25 @@ module.exports = {
{
resolve: 'gatsby-transform-md-docs',
options: {
slugPrefix: 'docs',
langConfig: {
langs: CONFIGURED_LOCALES,
defaultLangKey,
prefixDefaultLangKey,
}
},
projects: ['colonyJS', 'colonyNetwork', 'colonyStarter', 'purser', 'tailor'],
slugPrefix: 'docs',
}
},
{
resolve: 'gatsby-transform-md-tutorials',
options: {
slugPrefix: 'tutorials',
langConfig: {
langs: CONFIGURED_LOCALES,
defaultLangKey,
prefixDefaultLangKey,
}
},
projects: ['colonyTutorials'],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding projects fixes a regression bug introduced by a bad rebase.

slugPrefix: 'tutorials',
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/modules/core/components/Heading/Heading.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { getChildrenOrText } from '~utils/strings';
import styles from './Heading.module.css';

export type Appearance = {|
theme?: 'dark' | 'light' | 'invert' | 'primary',
margin?: 'none' | 'tiny' | 'small' | 'double',
theme?: 'dark' | 'light' | 'invert' | 'primary' | 'grey',
margin?: 'none' | 'tiny' | 'small' | 'medium' | 'large' | 'double',
size?:
| 'tiny'
| 'small'
Expand Down
23 changes: 22 additions & 1 deletion src/modules/core/components/Heading/Heading.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@value mediumDown from '~styles/breakpoints.css';

.main {
color: rgba(0, 0, 0, 0.8);
}
Expand All @@ -16,6 +18,14 @@
margin-bottom: 6px !important;
}

.marginMedium {
margin-bottom: 12px !important;
}

.marginLarge {
margin-bottom: 24px !important;
}

.marginDouble {
margin-bottom: 40px;
}
Expand Down Expand Up @@ -47,7 +57,7 @@

.sizeLarge {
font-size: 32px;
line-height: 45px;
line-height: 50px;
}

.sizeHuge {
Expand All @@ -71,6 +81,10 @@
color: #289BDC;
}

.themeGrey {
color: #2E4153;
}

/* Weights */
.weightThin {
font-family: 'Avenir Next Light';
Expand All @@ -83,3 +97,10 @@
.weightBold {
font-weight: 500;
}

@media (mediumDown) {
.sizeLarge {
letter-spacing: .2px;
line-height: 1.2em;
}
}
1 change: 1 addition & 0 deletions src/modules/core/components/Link/Link.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
font-size: 14px;
transition-duration: .2s;
width: 14px;
font-family: 'Avenir Next Light';
}

.left::before {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
@value smallUp, mediumUp, largeUp from '~styles/breakpoints.css';

.main {
height: 24px;
width: 28px;
height: 18px;
width: 20px;
position: relative;
}

.mobileIcon {
background: none;
border: none;
width: 28px;
height: 24px;
width: 20px;
height: 18px;
padding: 0;
position: absolute;
top: 0;
Expand All @@ -25,7 +25,7 @@
left: 0;
position: absolute;
width: 100%;
height: 4px;
height: 2px;
transition: all 200ms ease-out;
}

Expand All @@ -35,7 +35,7 @@

.mobileIcon .mobileIconLine:nth-child(2),
.mobileIcon .mobileIconLine:nth-child(3) {
top: 10px;
top: 8px;
}

.mobileIcon .mobileIconLine:nth-child(4) {
Expand Down
26 changes: 23 additions & 3 deletions src/modules/core/components/Search/algolia-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,34 @@
}

.algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion:not(.suggestion-layout-simple) .algolia-docsearch-suggestion--content {
background-color: rgb(240, 245, 250);
background-color: #f0f5f7;
}

.algolia-autocomplete .algolia-docsearch-suggestion--highlight {
color: currentColor;
background-color: rgb(105, 220, 210);
background-color: transparent;
}

.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {
box-shadow: inset 0 -2px 0 0 rgb(105, 220, 210);
box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, .3);
}

.algolia-autocomplete .algolia-docsearch-suggestion--title {
color: #2E4153;
font-weight: normal;
}

.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column {
padding-left: 0;
padding-right: 0;
text-align: left;
width: 25%;
}

.algolia-autocomplete .algolia-docsearch-suggestion--content {
width: 75%;
}

.ds-suggestion:not(:first-of-type) .algolia-docsearch-suggestion--category-header {
margin-top: 18px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ import { graphql, useStaticQuery } from 'gatsby';

import type { Project } from '~types';

import { transformProjectData } from '~utils/docs';

import Header from './Header';
import Footer from './Footer';
import { transformProjectData } from '~utils/docs';

import styles from './DeveloperPortalLayout.module.css';

type Props = {|
children: Node,
Expand Down Expand Up @@ -39,7 +42,7 @@ const DeveloperPortalLayout = ({ children, intl: { locale } }: Props) => {
coreProjects={coreProjects}
openSourceProjects={openSourceProjects}
/>
<div>{children}</div>
<div className={styles.body}>{children}</div>
<Footer
coreProjects={coreProjects}
openSourceProjects={openSourceProjects}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
background-color: #fff;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,38 @@
}

.heroLink {
display: block;
height: 82px;
display: none;
}

.hero {
align-items: stretch;
align-items: center;
background-color: #ffffff;
border-radius: borderRadius;
display: flex;
box-shadow: boxShadow;
display: none;
padding: 15px;
}

.logoContainer {
background-color: #ffffff;
border-radius: borderRadius;
box-shadow: boxShadow;
display: flex;
align-items: center;
justify-content: center;
}

.logo {
height: auto;
margin: 5px;
padding: 10px;
width: 59px;
margin: 0;
padding: 0;
width: 40px;
}

.cta {
align-self: stretch;
background-color: #ffffff;
border-radius: borderRadius;
box-shadow: boxShadow;
display: flex;
flex-direction: column;
justify-content: space-between;
margin: 0 0 0 10px;
width: 100%;
padding: 15px 20px;
padding: 0 0 0 15px;
}

.heroLink:hover .hero {
Expand All @@ -69,7 +64,6 @@
.menuContent {
display: flex;
justify-content: space-between;
margin: 45px 0 0;
}

.menuContent a {
Expand All @@ -87,13 +81,25 @@
@media (mediumUp) {
.main {
border-bottom: none;
padding: 40px;
padding: 40px 40px 32px;
}

.heroLink {
display: block;
}

.hero {
display: flex;
}

.cta {
min-width: 315px;
}

.menuContent {
margin: 32px 0 0;
}

.menuContent a {
color: #00284B;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
background-color: #021C2B;
display: flex;
justify-content: center;
padding: 20px 0;
}

.menuWrapper {
Expand Down Expand Up @@ -56,6 +57,7 @@
}

.dropdownParent {
display: none;
cursor: default;
}

Expand All @@ -77,10 +79,14 @@
.navToggle {
position: absolute;
right: 0;
top: 16px;
top: 19px;
}

@media (mediumUp) {
.main {
padding: 0;
}

.menuWrapper {
align-items: center;
flex-direction: row;
Expand All @@ -106,6 +112,10 @@
margin-left: 30px;
}

.dropdownParent {
display: block;
}

.docsDropdownParent .docsDropdownContainer {
display: block;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@
font-family: "Avenir Next", "Helvetica", "Arial", sans-serif;
}

:global [id]:before {
display: block;
content: "";
margin-top: -60px;
height: 60px;
visibility: hidden;
}

.gridContainer {
display: grid;
grid-template-rows: 80px auto auto;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@value mediumUp, largeUp from '~styles/breakpoints.css';

.main {
padding: 0 4% 50px;
padding: 0 4% 0;
position: relative;
}

Expand All @@ -26,15 +26,15 @@
}

.sectionIntroContent {
padding: 100px 25% 80px;
padding: 70px 10% 40px;
text-align: center;
}

.coreProductsRow {
align-items: center;
display: flex;
flex-direction: column;
padding: 0 20%;
padding: 0 10%;
}

.coreProductsItem {
Expand All @@ -44,10 +44,18 @@
}

.coreProductsItem + .coreProductsItem {
margin-top: 60px;
margin-top: 40px;
}

@media (mediumUp) {
.main {
padding: 0 4% 50px;
}

.sectionIntroContent {
padding: 100px 25% 80px;
}

.coreProductsRow {
align-items: stretch;
flex-direction: row;
Expand Down
Loading