Skip to content

Commit 50024db

Browse files
authored
Merge pull request #26 from woocommerce/brand-update
Update look & feel based on new brand and other docs sites
2 parents af0f472 + 3e18ca6 commit 50024db

16 files changed

+45
-52
lines changed

data/templates/woocommerce/components/back-to-top.css.twig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
position: fixed;
33
bottom: 2rem;
44
font-size: 2.5rem;
5-
opacity: .25;
5+
opacity: 1.0;
66
transition: all .3s ease-in-out;
77
right: 2rem;
8+
color: var(--primary-color-lighten);
89
}
910

1011
.phpdocumentor .phpdocumentor-back-to-top:hover {
11-
color: var(--link-color-primary);
12-
opacity: 1;
12+
color: var(--primary-color-darken);
13+
opacity: 1.0;
1314
}
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
<header class="phpdocumentor-top-header">
22
<section class="phpdocumentor-section">
33
<div class="site-branding">
4-
<a class="site-logo" href="{{ path("/index.html") }}"><img width="180" src="{{ path('images/logo.svg') }}" alt="WooCommerce" /></a>
4+
<a class="site-logo" href="{{ path("/index.html") }}"><img src="{{ path('images/logo.png') }}" alt="WooCommerce" /></a>
55
</div>
66
<nav class="main-navigation">
77
<ul>
88
<li><a href="{{ path('hooks/hooks.html') }}">Hooks Reference</a></li>
9-
<li><a href="https://docs.woocommerce.com/">Documentation</a></li>
9+
<li><a href="https://developer.woocommerce.com/docs/">Documentation</a></li>
1010
<li><a href="https://woocommerce.github.io/woocommerce-rest-api-docs/">REST API Docs</a></li>
11-
<li><a href="https://woocommerce.com/careers/?utm_source=woocommerce+core+code+reference&utm_medium=devdocs&utm_campaign=woo+careers" target="_blank">We're hiring!</a></li>
1211
</ul>
1312
</nav>
1413
</section>
1514
</header>
1615

1716
<div class="phpdocumentor-header">
1817
<section class="phpdocumentor-section">
19-
<h1 class="phpdocumentor-title">{{ project.name }}</h1>
18+
<h1 class="phpdocumentor-title"><a href="{{ path("/index.html") }}">{{ project.name }}</a></h1>
2019
{{ include('components/search.html.twig') }}
2120
</section>
2221
</div>

data/templates/woocommerce/components/sidebar.css.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
}
2727

2828
.phpdocumentor .phpdocumentor-sidebar a:hover {
29-
padding-left: 5px;
3029
font-weight: 600;
3130
}
3231

@@ -42,8 +41,9 @@
4241
font-size: var(--text-md);
4342
margin-bottom: var(--spacing-xs);
4443
color: var(--link-color-primary);
45-
font-weight: 600;
44+
font-weight: 700;
4645
border-left: 0;
46+
text-transform: uppercase;
4747
}
4848

4949
.phpdocumentor .phpdocumentor-sidebar__root-package,

data/templates/woocommerce/css/custom.css.twig

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,12 @@ abbr[title] {
4646

4747
/* Logo */
4848
.site-branding {
49-
margin: 1.5em 0 1em;
49+
margin: 29px 0 0 0;
5050
text-align: left;
5151
}
5252

53-
.site-branding a::after {
54-
content: 'DOCS';
55-
font-family: var(--font-secondary);
56-
color: #000;
57-
font-size: 20px;
58-
font-weight: 700;
59-
line-height: 32.5px;
60-
vertical-align: top;
61-
letter-spacing: -2px;
62-
margin-left: 8px;
53+
.site-branding .site-logo img {
54+
width: 204px;
6355
}
6456

6557
/* Navigation */
@@ -95,12 +87,20 @@ abbr[title] {
9587
.phpdocumentor-title {
9688
font-family: var(--font-secondary);
9789
color: var(--title-text-color);
98-
letter-spacing: -1px;
90+
letter-spacing: 1px;
9991
line-height: 1.2;
10092
text-align: center;
101-
padding: 0.67em 0;
102-
margin-top: 0;
93+
padding: 0;
94+
margin: 1.0em 0;
95+
font-size: var(--text-xl);
96+
font-weight: normal;
97+
}
98+
99+
.phpdocumentor-title a {
100+
text-decoration: none;
101+
color: var(--title-text-color);
103102
}
103+
104104
.phpdocumentor-title small {
105105
text-shadow: none;
106106
font-size: var(--text-xxs);
@@ -204,20 +204,21 @@ abbr[title] {
204204
}
205205

206206
.phpdocumentor-search__field {
207-
background-color: #fff;
208-
border: 0;
209-
border-radius: 50px;
207+
background: #f2efec;
208+
border: 1px solid var(--primary-color);
209+
border-radius: 3px;
210210
color: #333;
211211
font-size: 18px;
212212
line-height: 50px;
213-
padding-left: 45px;
214-
width: 80%;
215-
height: 50px;
213+
padding-left: 1.3em;
214+
padding-right: 1.3em;
215+
width: 50%;
216+
height: 40px;
216217
margin-bottom: 0;
217218
}
218219

219220
.phpdocumentor-search__field:focus {
220-
border: none;
221+
border: 1px solid var(--primary-color-darken);
221222
}
222223

223224
.autoComplete_highlighted {
@@ -336,7 +337,4 @@ main.phpdocumentor::after {
336337
border-bottom: 1px solid var(--table-separator-color);
337338
}
338339

339-
.phpdocumentor-title {
340-
font-size: var(--text-xxxxl);
341-
}
342340
}

data/templates/woocommerce/css/variables.css.twig

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:root {
22
/* Typography */
3-
--font-primary: 'Source Sans Pro', Helvetica, Arial, sans-serif;
3+
--font-primary: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Noto Sans, Roboto, Helvetica Neue, Arial, sans-serif;
44
--font-secondary: "proxima-nova", sans-serif;
55
--line-height--primary: 1.6;
66
--letter-spacing--primary: .05rem;
@@ -19,11 +19,11 @@
1919
--text-xxxxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio));
2020

2121
/* Colors */
22-
--primary-color: hsl(267, 38%, 52%);
23-
--primary-color-darken: hsl(267, 38%, 52%);
24-
--primary-color-darker: hsl(267, 57%, 20%);
25-
--primary-color-lighten: hsl(267, 57%, 80%);
26-
--primary-color-lighter: hsl(267, 57%, 97%);
22+
--primary-color: #720eec;
23+
--primary-color-darken: #3c087e;
24+
--primary-color-darker:rgb(48, 7, 101);
25+
--primary-color-lighten: #b884f8;
26+
--primary-color-lighter: #e3cefc;
2727
--dark-gray: #d1d1d1;
2828
--light-gray: #f0f0f0;
2929

@@ -40,9 +40,9 @@
4040
--button-color-primary: var(--primary-color);
4141
--button-text-color: hsl(0, 0%, 33%);
4242
--button-text-color-primary: white;
43-
--popover-background-color: hsla(285, 29%, 97%, 0.9);
44-
--link-color-primary: var(--primary-color-darken);
45-
--link-hover-color-primary: var(--primary-color-darker);
43+
--popover-background-color: #f9f5fe;
44+
--link-color-primary: var(--primary-color);
45+
--link-hover-color-primary: var(--primary-color-darken);
4646
--form-field-border-color: var(--dark-gray);
4747
--form-field-color: #fff;
4848
--admonition-success-color: var(--primary-color);
-2.12 KB
Binary file not shown.
-1.41 KB
Binary file not shown.
-1.2 KB
Binary file not shown.
15.1 KB
Loading
15.8 KB
Loading

0 commit comments

Comments
 (0)