├── .gitattributes
├── screenshot.png
├── scss
├── blocks
│ ├── _misc.scss
│ ├── _more.scss
│ ├── _blockgallery.scss
│ ├── _verse.scss
│ ├── _table.scss
│ ├── _audio-video.scss
│ ├── _code.scss
│ ├── _embed.scss
│ ├── _font-sizes.scss
│ ├── _list.scss
│ ├── _preformatted.scss
│ ├── _file.scss
│ ├── _paragraph.scss
│ ├── _captions.scss
│ ├── _archives-categories.scss
│ ├── _latest-comments.scss
│ ├── _separator.scss
│ ├── _image.scss
│ ├── _cover.scss
│ ├── _gallery.scss
│ ├── _button.scss
│ ├── _color-palette.scss
│ ├── _quote.scss
│ ├── _latest-posts.scss
│ ├── _columns.scss
│ ├── _pullquote.scss
│ ├── _blocks.scss
│ └── _coblocks.scss
├── modules
│ ├── _clearings.scss
│ ├── _error404.scss
│ ├── _night-mode.scss
│ ├── _cf7.scss
│ ├── _pagination.scss
│ ├── _ninja.scss
│ ├── _gravity.scss
│ ├── _accessibility.scss
│ ├── _icons.scss
│ ├── _print.scss
│ ├── _customizer.scss
│ ├── _comments.scss
│ └── night-mode-content.scss
├── layout
│ ├── _main.scss
│ ├── _layout.scss
│ ├── _search.scss
│ ├── _footer.scss
│ ├── _header-search.scss
│ ├── _header.scss
│ └── _posts.scss
├── navigation
│ ├── _links.scss
│ ├── _social.scss
│ ├── _dropdown.scss
│ └── _navigation.scss
├── typography
│ ├── _typography.scss
│ ├── _copy.scss
│ └── _headings.scss
├── media
│ ├── _media.scss
│ ├── _galleries.scss
│ └── _captions.scss
├── elements
│ ├── _elements.scss
│ ├── _fields.scss
│ └── _buttons.scss
├── _normalize.scss
├── widgets
│ └── _widgets.scss
├── _variables.scss
├── _base.scss
├── style.scss
└── _mixins.scss
├── assets
├── images
│ └── logo.png
└── js
│ ├── skip-link-focus-fix.js
│ ├── customize-control-range.js
│ ├── customize-controls.js
│ ├── global.js
│ ├── navigation.js
│ └── customize-preview.js
├── .gitignore
├── inc
├── customizer
│ ├── scss
│ │ ├── _variables.scss
│ │ ├── customize-controls.scss
│ │ └── customize-range-control.scss
│ ├── defaults.php
│ ├── class-coblocks-upgrade-control.php
│ ├── sanitization.php
│ ├── customizer-editor.php
│ ├── class-coblocks-range-control.php
│ └── customizer-css.php
├── template-functions.php
├── auto-load-next-post.php
├── icons.php
├── back-compat.php
├── jetpack.php
└── plugins.php
├── 404.php
├── sidebar.php
├── page.php
├── searchform.php
├── components
├── post
│ ├── content-excerpt.php
│ └── content.php
└── page
│ └── content-page.php
├── single.php
├── README.md
├── archive.php
├── footer.php
├── package.json
├── index.php
├── search.php
├── CONTRIBUTING.md
├── comments.php
├── header.php
└── README.txt
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/godaddy-wordpress/coblocks-theme/HEAD/screenshot.png
--------------------------------------------------------------------------------
/scss/blocks/_misc.scss:
--------------------------------------------------------------------------------
1 | .entry-content > iframe[id*="blubrryplayer"] {
2 | display: block;
3 | }
4 |
--------------------------------------------------------------------------------
/scss/blocks/_more.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | > [id*="more-"] {
3 | display: none;
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/godaddy-wordpress/coblocks-theme/HEAD/assets/images/logo.png
--------------------------------------------------------------------------------
/scss/modules/_clearings.scss:
--------------------------------------------------------------------------------
1 | .clear,
2 | .clearfix,
3 | .textwidget,
4 | .site-footer,
5 | .entry-content,
6 | .primary-menu,
7 | article[class^="post-"] {
8 | @include clearfix;
9 | }
--------------------------------------------------------------------------------
/scss/modules/_error404.scss:
--------------------------------------------------------------------------------
1 | .error404 {
2 |
3 | .page-header {
4 | margin: 0 auto 30px;
5 | }
6 |
7 | .search-form {
8 | max-width: 300px;
9 | margin: 0 auto;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/scss/layout/_main.scss:
--------------------------------------------------------------------------------
1 | .site-content {
2 | overflow: hidden;
3 | z-index: 2;
4 | padding-top: 3em;
5 |
6 | @media only screen and (min-width: 700px) {
7 | padding-top: 4em;
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.cache
2 | .ftppass
3 | *.sublime-project
4 | *.sublime-workspace
5 | *.DS_Store
6 | *.log
7 | *.zip
8 | *.map
9 | *.pot
10 | *.css
11 | *.min.css
12 | *.min.js
13 | _demo/
14 | _dist/
15 | node_modules
16 | environment.json
17 |
--------------------------------------------------------------------------------
/scss/blocks/_blockgallery.scss:
--------------------------------------------------------------------------------
1 | .wp-block-blockgallery-stacked {
2 |
3 | .blockgallery--caption {
4 | margin-bottom: 0 !important;
5 | }
6 |
7 | li:last-child .blockgallery--caption {
8 | margin-bottom: -10px !important;
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/scss/blocks/_verse.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .wp-block-verse {
3 | @include blockMobileDisplay();
4 | font-size: $font__size-xs;
5 | line-height: 1.8;
6 | padding-top: 0.7em;
7 | padding-bottom: 0.65em;
8 | padding-left: 1em;
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/scss/blocks/_table.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .wp-block-table {
3 | @include blockMobileDisplay();
4 | padding: 20px 25px;
5 |
6 | @media screen and (max-width: $content__width) {
7 | width: calc( 100% - #{$content__padding * 2} );
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/scss/blocks/_audio-video.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .wp-block-audio {
3 | audio {
4 | margin-bottom: -10px;
5 | width: 100%;
6 | }
7 | }
8 |
9 | .wp-block-video {
10 | video {
11 | margin-bottom: -10px;
12 | width: 100%;
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/scss/blocks/_code.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .wp-block-code {
3 | @include blockMobileDisplay();
4 | padding: 0.8em 1.1em;
5 |
6 | &,
7 | code {
8 | background: none;
9 | }
10 |
11 | code {
12 | font-size: 14px;
13 | line-height: 1.8;
14 | padding: 0;
15 | top: 0;
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/scss/blocks/_embed.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .wp-block-embed {
3 | .jetpack-video-wrapper,
4 | .fluid-width-video-wrapper {
5 | margin: 0;
6 | }
7 |
8 | &-twitter {
9 | .twitter-tweet {
10 | margin-bottom: 0 !important;
11 | margin-left: auto;
12 | margin-right: auto;
13 | }
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/scss/blocks/_font-sizes.scss:
--------------------------------------------------------------------------------
1 | .has-small-font-size {
2 | font-size: $font__size-editor--small;
3 | }
4 |
5 | .has-medium-font-size {
6 | font-size: $font__size-editor--medium;
7 | }
8 |
9 | .has-large-font-size {
10 | font-size: $font__size-editor--large;
11 | }
12 |
13 | .has-huge-font-size {
14 | font-size: $font__size-editor--huge;
15 | }
16 |
--------------------------------------------------------------------------------
/inc/customizer/scss/_variables.scss:
--------------------------------------------------------------------------------
1 | // Transitions.
2 | $range--opacity-speed: 150ms;
3 | $range--opacity-cubic: cubic-bezier(0.694, 0.0482, 0.335, 1);
4 |
5 | // Colors.
6 | $white: #fff;
7 | $gray: #555d66;
8 | $blue: #0073aa;
9 | $red: #dc3232;
10 | $customizer_blue: #0085ba;
11 | $customizer_blue_bg: rgba(0, 167, 233, 0.075);
12 |
13 | $background: #eee;
14 | $border-color: #b4b9be;
15 |
--------------------------------------------------------------------------------
/scss/modules/_night-mode.scss:
--------------------------------------------------------------------------------
1 | $night_mode_background_base: #1c1b1b;
2 | $night_mode_background: #1c1b1b !important;
3 | $night_mode_text: #939393 !important;
4 | $night_mode_heading: #d3d3d3 !important;
5 |
6 | .night-mode {
7 | @import "night-mode-content";
8 | }
9 |
10 | @media (prefers-color-scheme: dark) {
11 | @import "night-mode-content";
12 |
13 | #night-mode-toggle {
14 | display: none !important;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/scss/blocks/_list.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | ul,
3 | ol {
4 |
5 | li {
6 | margin: 0 0 5px 20px;
7 | }
8 |
9 | ol {
10 | margin-top: 7px;
11 | margin-bottom: 7px;
12 | padding-left: 0;
13 |
14 | li {
15 | list-style: decimal;
16 | }
17 | }
18 |
19 | ul {
20 | margin-top: 7px;
21 | margin-bottom: 7px;
22 | padding-left: 0;
23 |
24 | li {
25 | list-style: circle;
26 | }
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/scss/blocks/_preformatted.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .wp-block-preformatted {
3 | background: none;
4 | font-size: $font__size-xs;
5 | line-height: 1.8;
6 | margin-bottom: $content__spacer--mobile + 4px;
7 | margin-top: $content__spacer--mobile + 5px;
8 | white-space: pre-wrap;
9 |
10 | @media screen and (min-width: $content__media-query) {
11 | margin-bottom: $content__spacer + 5px;
12 | margin-top: $content__spacer + 6px;
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/scss/blocks/_file.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .wp-block-file {
3 | a {
4 | box-shadow: none;
5 | }
6 |
7 | a:not(.wp-block-file__button) {
8 | text-decoration: underline;
9 | }
10 |
11 | .wp-block-file__button {
12 | background: $black;
13 | font-size: $font__size-xs;
14 | font-weight: 500;
15 | font-family: $font__heading;
16 | left: 10px;
17 | padding: 0.6em 1.2em 0.55em;
18 | position: relative;
19 | top: -2px;
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/scss/navigation/_links.scss:
--------------------------------------------------------------------------------
1 | a {
2 | color: inherit;
3 | text-decoration: none;
4 |
5 | &:hover,
6 | &:active {
7 | outline: 0;
8 | }
9 | }
10 |
11 | .pingback a:not(.comment-edit-link),
12 | .entry-content a:not(.wp-block-button__link) {
13 | box-shadow: inset 0 -1px 0 currentColor;
14 | text-decoration: none;
15 |
16 | &:focus {
17 | outline: thin dotted;
18 | }
19 |
20 | &:hover,
21 | &:focus {
22 | box-shadow: inset 0 0 0 currentColor, 0 3px 0 currentColor;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/scss/modules/_cf7.scss:
--------------------------------------------------------------------------------
1 | .wpcf7-form {
2 |
3 | .wpcf7-not-valid-tip {
4 | @include font-size(15px);
5 | margin-bottom: .9em;
6 | margin-top: -1.3em;
7 | }
8 |
9 | .wpcf7-response-output {
10 | @include font-size(14px);
11 | background: $background;
12 | border-radius: 4px;
13 | border: none;
14 | font-family: $font__heading;
15 | font-style: inherit;
16 | text-align: center;
17 | padding-top: .4em;
18 | padding-bottom: .4em;
19 | margin-left: auto;
20 | margin-right: auto;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/scss/typography/_typography.scss:
--------------------------------------------------------------------------------
1 | body,
2 | button,
3 | input,
4 | select,
5 | textarea {
6 | @include fluid-type(600px, 1200px, 17px, 19px);
7 | @include fluid-line-height(600px, 820px, 1.8, calc(1.4em + (1.6 - 1.3) * ((100vw - 18em)/(35 - 18))), 1.8);
8 | color: $color__text-main;
9 | font-family: $font__body;
10 | line-height: $font__line-height-body;
11 | }
12 |
13 | body {
14 | -webkit-overflow-scrolling: touch;
15 | -webkit-text-size-adjust: none;
16 | text-rendering: optimizeLegibility;
17 | word-wrap: break-word;
18 | }
19 |
20 | @import "headings";
21 |
22 | @import "copy";
23 |
--------------------------------------------------------------------------------
/scss/blocks/_paragraph.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .has-drop-cap {
3 | &:not(:focus)::first-letter {
4 | font-size: 62px;
5 | font-weight: 800;
6 | line-height: 1;
7 | margin: 0 0.275em 0 0;
8 | padding-top: 7px;
9 | margin-bottom: -3px;
10 | }
11 | }
12 |
13 | p.has-background {
14 | @include blockMobileDisplay();
15 | margin-bottom: $content__spacer--mobile;
16 | margin-top: $content__spacer--mobile;
17 |
18 | @media screen and (min-width: $content__media-query) {
19 | margin-bottom: $content__spacer + 12px;
20 | margin-top: $content__spacer + 12px;
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/scss/modules/_pagination.scss:
--------------------------------------------------------------------------------
1 | .pagination {
2 | margin-top: 80px;
3 | text-align: center;
4 | @include clearfix();
5 |
6 | a,
7 | span {
8 | color: $black;
9 | @include font-size(12px);
10 | text-transform: uppercase;
11 | transform: translate3d(0, 0, 0);
12 | letter-spacing: 0.15em;
13 | text-decoration: none;
14 | display: inline-block;
15 | font-weight: 400;
16 | vertical-align: middle;
17 | transition: opacity 200ms cubic-bezier(0.33,0,0.2,1);
18 | }
19 |
20 | a:hover {
21 | opacity: 0.4;
22 | }
23 |
24 | .page-numbers:not(.next):not(.prev) {
25 | display: none;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/scss/blocks/_captions.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 |
3 | figcaption {
4 | display: block;
5 | font-family: $font__figcaption;
6 | font-size: $font__size-xs;
7 | line-height: $font__line-height-pre;
8 | margin: 0 0 -10px !important;
9 | padding-top: 10px;
10 | text-align: center;
11 |
12 | a {
13 | color: inherit;
14 | }
15 | }
16 |
17 | figcaption:not(.blockgallery--caption),
18 | .blockgallery:not(.has-caption-color) figcaption {
19 | color: $gray;
20 | }
21 |
22 | .wp-block-gallery .blocks-gallery-item figcaption {
23 | color: $white !important;
24 | margin: 0 !important;
25 | padding-bottom: 10px;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/scss/media/_media.scss:
--------------------------------------------------------------------------------
1 | .size-full,
2 | .size-large,
3 | .alignnone:not(.wp-block-gallery) {
4 | display: block;
5 | height: auto;
6 | max-width: 100%;
7 | }
8 |
9 | /* Make sure embeds and iframes fit their containers. */
10 | embed,
11 | iframe,
12 | object {
13 | max-width: 100%;
14 | }
15 |
16 | /*--------------------------------------------------------------
17 | ## Galleries
18 | --------------------------------------------------------------*/
19 | @import "galleries";
20 |
21 | /*--------------------------------------------------------------
22 | ## Captions
23 | --------------------------------------------------------------*/
24 | @import "captions";
25 |
--------------------------------------------------------------------------------
/404.php:
--------------------------------------------------------------------------------
1 |
9 |
10 |
19 |
20 |
14 |
15 |
30 |
--------------------------------------------------------------------------------
/scss/blocks/_archives-categories.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .wp-block-archives,
3 | .wp-block-categories {
4 |
5 | &.alignleft {
6 | @media screen and (min-width: $content__media-query) {
7 | margin-bottom: 1em;
8 | padding-left: 0;
9 | }
10 | }
11 |
12 | &.alignright {
13 |
14 | @media screen and (min-width: $content__media-query) {
15 | margin-bottom: 1em;
16 | padding-right: 0;
17 | }
18 |
19 | @media screen and (max-width: $content__width) {
20 | margin-left: 0;
21 | }
22 | }
23 |
24 | &.aligncenter {
25 | list-style: none;
26 | padding-left: 0;
27 | text-align: center;
28 | }
29 |
30 | &.alignfull {
31 | padding-left: 20px;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/scss/modules/_ninja.scss:
--------------------------------------------------------------------------------
1 | .nf-form-content {
2 | margin-top: 2em;
3 |
4 | .nf-field-label {
5 | margin-bottom: 0 !important;
6 |
7 | label {
8 | font-weight: 500;
9 | }
10 | }
11 |
12 | .ninja-forms-field {
13 | border-width: 2px !important;
14 | }
15 |
16 | .nf-error-msg {
17 | @include font-size(15px);
18 | font-family: $font__heading;
19 | }
20 | }
21 |
22 | .nf-error-field-errors {
23 | @include font-size(14px);
24 | background: $background;
25 | border-radius: 4px;
26 | border: none;
27 | color: $black !important;
28 | font-family: $font__heading;
29 | font-style: inherit;
30 | text-align: center;
31 | padding-top: .4em;
32 | padding-bottom: .4em;
33 | margin-left: auto;
34 | margin-right: auto;
35 | }
36 |
--------------------------------------------------------------------------------
/scss/modules/_gravity.scss:
--------------------------------------------------------------------------------
1 | .gform_wrapper {
2 | max-width: $content__width !important;
3 |
4 | ul,
5 | .gfield {
6 | list-style: none;
7 | padding: 0;
8 | margin: 0;
9 | }
10 |
11 | .gfield_checkbox {
12 | margin-top: 0;
13 | }
14 |
15 | .gfield_select {
16 | margin-bottom: 15px;
17 | }
18 |
19 | .ginput_container_checkbox {
20 | margin-bottom: 25px !important;
21 | }
22 |
23 | ul li.field_description_below div.ginput_container_checkbox, ul li.field_description_below div.ginput_container_radio {
24 | margin-top: 0 !important;
25 | }
26 |
27 | input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]) {
28 | padding: .36em .95em .3em !important;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/scss/modules/_accessibility.scss:
--------------------------------------------------------------------------------
1 | // Text meant only for screen readers.
2 | .screen-reader-text {
3 | clip: rect(1px, 1px, 1px, 1px);
4 | height: 1px;
5 | overflow: hidden;
6 | position: absolute !important;
7 | width: 1px;
8 | word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
9 |
10 | &:focus {
11 | @include font-size(15px);
12 | background-color: $color--background-screen;
13 | border-radius: 3px;
14 | clip: auto;
15 | color: $color--text-screen;
16 | display: block;
17 | height: auto;
18 | left: 5px;
19 | line-height: normal;
20 | padding: 0.9375rem;
21 | text-decoration: none;
22 | top: 5px;
23 | width: auto;
24 | z-index: 100000;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/scss/blocks/_latest-comments.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .wp-block-latest-comments {
3 | margin: $content__spacer--mobile + 7px auto $content__spacer--mobile + 5px;
4 | padding-left: 0;
5 |
6 | @media screen and (min-width: $content__media-query) {
7 | margin-bottom: $content__spacer + 5px;
8 | margin-top: $content__spacer + 5px;
9 | }
10 |
11 | &.alignwide {
12 | @include blockWideDisplay();
13 | }
14 |
15 | &__comment {
16 | @include font-size(17px);
17 | margin-bottom: 1.4em !important;
18 | }
19 |
20 | &__comment-date {
21 | @include font-size(14px);
22 | color: $gray;
23 | font-family: $font__figcaption;
24 | margin-top: 0.75em;
25 | }
26 |
27 | &__comment-excerpt p {
28 | font-size: 17px;
29 | line-height: 1.6;
30 | margin-bottom: 0;
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/assets/js/skip-link-focus-fix.js:
--------------------------------------------------------------------------------
1 | /**
2 | * File skip-link-focus-fix.js.
3 | *
4 | * Helps with accessibility for keyboard only users.
5 | *
6 | * Learn more: https://git.io/vWdr2
7 | */
8 | (function() {
9 | var isIe = /(trident|msie)/i.test( navigator.userAgent );
10 |
11 | if ( isIe && document.getElementById && window.addEventListener ) {
12 | window.addEventListener( 'hashchange', function() {
13 | var id = location.hash.substring( 1 ),
14 | element;
15 |
16 | if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
17 | return;
18 | }
19 |
20 | element = document.getElementById( id );
21 |
22 | if ( element ) {
23 | if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
24 | element.tabIndex = -1;
25 | }
26 |
27 | element.focus();
28 | }
29 | }, false );
30 | }
31 | })();
32 |
--------------------------------------------------------------------------------
/inc/customizer/scss/customize-controls.scss:
--------------------------------------------------------------------------------
1 | /* Upgrade to the pro version button */
2 | #customize-controls .control-section-upgrade-theme .accordion-section-title:hover,
3 | #customize-controls .control-section-upgrade-theme .accordion-section-title:focus {
4 | background-color: #fff;
5 | }
6 |
7 | .control-section-upgrade-theme .accordion-section-title .button {
8 | margin-top: -4px !important;
9 | font-weight: 400;
10 | margin-left: 8px;
11 | }
12 |
13 | .rtl .control-section-upgrade-theme .accordion-section-title .button {
14 | margin-left: 0;
15 | margin-right: 8px;
16 | }
17 |
18 | /* Minor positioning fixes */
19 | #customize-control-blogname {
20 | margin-top: 5px;
21 | }
22 |
23 | #customize-control-custom_logo_border_radius {
24 | margin-top: -5px;
25 |
26 | .customize-control-title {
27 | font-weight: 600;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/scss/modules/_icons.scss:
--------------------------------------------------------------------------------
1 | #sprite {
2 | @include hide;
3 | }
4 |
5 | .svg-fallback {
6 | display: none;
7 |
8 | .no-svg & {
9 | display: inline-block;
10 | }
11 | }
12 |
13 | /* Dropdown toggle fallbacks */
14 |
15 | .no-svg .dropdown-toggle {
16 | padding: 0.5em 0 0;
17 | right: 0;
18 | text-align: center;
19 | width: 2em;
20 |
21 | .svg-icon {
22 | display: none;
23 | }
24 |
25 | .svg-fallback.icon-down {
26 | @include font-size(15px);
27 | font-weight: bold;
28 | line-height: 1;
29 | transform: rotate(180deg);
30 | color: $gray;
31 | position: relative;
32 | top: -3px;
33 | right: -10px;
34 | }
35 | }
36 |
37 | .no-svg .dropdown-toggle.toggled-on .svg-fallback.icon-down {
38 | top: 2px;
39 | transform: rotate(0);
40 | }
41 |
42 | .no-svg .dropdown-toggle .svg-fallback.icon-down:before {
43 | content: "\005E";
44 | }
45 |
--------------------------------------------------------------------------------
/scss/blocks/_separator.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .wp-block-separator {
3 | background: none;
4 | border-bottom-color: $black;
5 | max-width: $content__width--less-padding - $content__padding * 2;
6 |
7 | &:not(.is-style-wide):not(.is-style-dots) {
8 | width: calc(100px - #{$content__padding} * 2);
9 | }
10 |
11 | &.is-style-wide {
12 | margin-left: $content__padding;
13 | margin-right: $content__padding;
14 |
15 | @media screen and (min-width: $content__media-query) {
16 | margin-left: auto;
17 | margin-right: auto;
18 | }
19 | }
20 |
21 | &.is-style-dots {
22 | opacity: 1;
23 | line-height: 1.7;
24 |
25 | &::before {
26 | font-size: 36px;
27 | font-weight: 800;
28 | letter-spacing: 0.55em;
29 | margin-left: 19px;
30 | padding-left: 0;
31 | top: calc(50% - 28px);
32 | }
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/inc/template-functions.php:
--------------------------------------------------------------------------------
1 |
9 |
10 |
17 |
--------------------------------------------------------------------------------
/scss/layout/_search.scss:
--------------------------------------------------------------------------------
1 | .search-form {
2 | position: relative;
3 |
4 | .search-field {
5 | margin: 0;
6 | }
7 |
8 | .search-submit {
9 | bottom: 3px;
10 | padding: 0.2em 0.8em;
11 | position: absolute;
12 | right: -2px;
13 | top: 2px;
14 | height: 46px;
15 |
16 | .svg-icon {
17 | fill: $black;
18 | top: 0.05em;
19 | position: relative;
20 | }
21 | }
22 | }
23 |
24 | .search-no-results {
25 |
26 | .site-main {
27 | @media only screen and (min-height: 500px) {
28 | display: flex;
29 | align-items: center;
30 | margin: 0;
31 | padding: 0;
32 | width: 100vw;
33 | height: 100vh;
34 | position: absolute;
35 | top: 0;
36 | z-index: -1;
37 | }
38 | }
39 |
40 | .search-wrapper {
41 | margin: 0 auto !important;
42 | padding: 0;
43 | text-align: center;
44 | }
45 |
46 | .page-header {
47 | margin: 0 auto 15px;
48 | }
49 |
50 | .site-footer {
51 | display: none;
52 | }
53 | }
54 |
55 |
--------------------------------------------------------------------------------
/scss/media/_galleries.scss:
--------------------------------------------------------------------------------
1 | .gallery-item {
2 | display: inline-block;
3 | text-align: left;
4 | vertical-align: top;
5 | margin: 0 0 1.5em;
6 | padding: 0 1em 0 0;
7 | width: 50%;
8 |
9 | a {
10 | box-shadow: none !important;
11 | }
12 | }
13 |
14 | .gallery-columns-1 .gallery-item {
15 | width: 100%;
16 | }
17 |
18 | .gallery-columns-2 .gallery-item {
19 | max-width: 50%;
20 | }
21 |
22 | .gallery-columns-3 .gallery-item {
23 | max-width: 33.33%;
24 | }
25 |
26 | .gallery-item a,
27 | .gallery-item a:hover,
28 | .gallery-item a:focus {
29 | box-shadow: none;
30 | background: none;
31 | display: inline-block;
32 | max-width: 100%;
33 | }
34 |
35 | .gallery-item a img {
36 | display: block;
37 | transition: filter 0.2s ease-in;
38 | backface-visibility: hidden;
39 | }
40 |
41 | .gallery-item a:hover img,
42 | .gallery-item a:focus img {
43 | filter: opacity(60%);
44 | }
45 |
46 | .gallery-caption {
47 | display: block;
48 | text-align: left;
49 | padding: 0 10px 0 0;
50 | margin-bottom: 0;
51 | }
52 |
--------------------------------------------------------------------------------
/scss/navigation/_social.scss:
--------------------------------------------------------------------------------
1 | .social-navigation ul li a {
2 | cursor: pointer;
3 | display: inline-block;
4 | overflow: hidden;
5 | color: $black;
6 | }
7 |
8 | .social-navigation {
9 | transition: margin 0.3s cubic-bezier(0.694, 0.0482, 0.335, 1);
10 |
11 | @media only screen and (max-width: 299px) {
12 | display: none;
13 | }
14 |
15 | li {
16 | display: inline-block;
17 | transform: translate3d(0, 0, 0);
18 | line-height: 1;
19 | padding: 0 1px;
20 | max-height: 24px;
21 |
22 | &:first-child {
23 | padding-left: 0;
24 | }
25 |
26 | &:last-child {
27 | padding-right: 0;
28 | }
29 | }
30 |
31 | a {
32 | transition: opacity 100ms cubic-bezier(0.645, 0.045, 0.355, 1);
33 |
34 | @include hover {
35 |
36 | &:hover {
37 | opacity: 0.7;
38 | }
39 | }
40 |
41 | }
42 |
43 | .site-header & {
44 | position: relative;
45 | margin-left: 7px;
46 |
47 | svg {
48 | fill: $black;
49 | }
50 | }
51 |
52 | .customize-partial-edit-shortcut button {
53 | display: none;
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/components/post/content-excerpt.php:
--------------------------------------------------------------------------------
1 |
13 | >
14 |
15 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/scss/blocks/_image.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .wp-block-image {
3 | img {
4 | display: block;
5 |
6 | @media screen and (max-width: $content__align--mobile-media-query--max) {
7 | width: 100%;
8 | }
9 | }
10 |
11 | .alignleft {
12 | margin-right: $content__padding;
13 |
14 | @media screen and (min-width: $content__align--mobile-media-query--min) {
15 | margin-right: 40px;
16 | }
17 | }
18 |
19 | .alignright {
20 | margin-left: $content__padding;
21 |
22 | @media screen and (min-width: $content__align--mobile-media-query--min) {
23 | margin-left: 40px;
24 | }
25 | }
26 |
27 | .alignleft,
28 | .alignright {
29 | max-width: 100%;
30 |
31 | @media screen and (min-width: $content__align--mobile-media-query--min) {
32 | margin-bottom: 1.75em;
33 | margin-top: 0.5em;
34 | }
35 |
36 | // Override theme styles from core.
37 | @media screen and (max-width: $content__align--mobile-media-query--max) {
38 | display: block;
39 | float: none;
40 | margin-left: 0;
41 | margin-right: 0;
42 | }
43 | }
44 |
45 | .alignfull img {
46 | margin-left: auto;
47 | margin-right: auto;
48 | width: 100vw;
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/scss/typography/_copy.scss:
--------------------------------------------------------------------------------
1 | em,
2 | cite {
3 | font-style: italic;
4 | }
5 |
6 | b,
7 | strong {
8 | font-weight: bold;
9 | }
10 |
11 | p {
12 | margin: 0 0 1em;
13 | }
14 |
15 | dfn,
16 | cite,
17 | em,
18 | i {
19 | font-style: italic;
20 | }
21 |
22 | q {
23 | quotes: "“" "”" "‘" "’";
24 | }
25 |
26 | address {
27 | font-style: italic;
28 | margin: 0 0 1.75em;
29 | }
30 |
31 | code,
32 | kbd,
33 | tt,
34 | var,
35 | samp,
36 | pre {
37 | font-family: Menlo, Consolas, monaco, monospace;
38 | font-size: $font__size-xs;
39 | }
40 |
41 | pre {
42 | background-color: $color--background-pre;
43 | clear: both;
44 | display: block;
45 | overflow: auto;
46 | white-space: pre-wrap;
47 | word-wrap: break-word;
48 | }
49 |
50 | code {
51 | @include font-size(15px);
52 | padding: 3px 10px;
53 | position: relative;
54 | top: -1px;
55 | border-radius: 3px;
56 | background-color: $color--background-pre;
57 | }
58 |
59 | abbr,
60 | acronym {
61 | border-bottom: 1px dotted $color--border-abbr;
62 | cursor: help;
63 | }
64 |
65 | ins {
66 | background: $color--background-ins;
67 | text-decoration: none;
68 | }
69 |
70 | big {
71 | font-size: 125%;
72 | }
73 |
74 | strike,
75 | del {
76 | text-decoration: line-through;
77 | }
--------------------------------------------------------------------------------
/single.php:
--------------------------------------------------------------------------------
1 |
11 | >
12 |
13 |
14 |
15 |
19 |
20 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | '
' . esc_html__( 'Pages:', 'coblocks' ),
43 | 'after' => '
',
44 | )
45 | );
46 | ?>
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # CoBlocks WordPress Theme
2 |
3 | #### Notice: The CoBlocks WordPress theme in being deprecated in favor of the uber-flexible Go WordPress theme. Go was built by the team who builds CoBlocks, and with it you'll have access to at least five global design styles, innovative design controls, header/footer variations, and WooCommerce support.
4 |
5 | ## Development ##
6 | 1. Clone the GitHub repository: `https://github.com/godaddy/coblocks-theme.git`
7 | 2. Browse to the folder in the command line.
8 | 3. Run the `npm install` command to install the theme's dependencies within a /node_modules/ folder.
9 | 4. Run the `default` gulp task for development.
10 | 5. Run the `build` gulp task to process build files and generate a zip.
11 |
12 | ## Contributions ##
13 | Please read the [guidelines for contributing](https://github.com/godaddy/coblocks-theme/blob/master/CONTRIBUTING.md) to CoBlocks. Anyone is welcome to contribute!
14 |
15 | There are various ways you can contribute:
16 |
17 | 1. Raise an [Issue](https://github.com/godaddy/coblocks-theme/issues/new) on GitHub
18 | 2. Send a pull request with your bug fixes and/or new features
19 | 3. Provide feedback and suggestions on [enhancements](https://github.com/godaddy/coblocks-theme/issues?direction=desc&labels=Enhancement&page=1&sort=created&state=open)
--------------------------------------------------------------------------------
/scss/blocks/_cover.scss:
--------------------------------------------------------------------------------
1 | .entry-content {
2 | .wp-block-cover {
3 | @include blockMobileDisplay();
4 | width: auto;
5 |
6 | .wp-block-cover-text {
7 | font-family: $font__heading;
8 | font-size: $font__size-lg;
9 | font-weight: $font__weight-heading;
10 | max-width: 600px;
11 | width: calc(100vw - (2 * 30px));
12 | }
13 |
14 | &.alignwide {
15 | @include blockWideDisplay();
16 |
17 | .wp-block-cover-text {
18 | max-width: calc(5 * (100vw / 12));
19 | padding: 30px;
20 | }
21 | }
22 |
23 | &.alignfull {
24 | .wp-block-cover-text {
25 | max-width: calc(5.5 * (100vw / 12));
26 | padding: 50px;
27 | }
28 | }
29 |
30 | &.alignleft,
31 | &.alignright,
32 | &.aligncenter {
33 | .wp-block-cover-text {
34 | left: 50%;
35 | padding: 20px;
36 | position: absolute;
37 | top: 50%;
38 | transform: translate(-50%, -50%);
39 | width: 100%;
40 | z-index: 1;
41 | }
42 | }
43 |
44 | &.alignleft,
45 | &.alignright {
46 | width: calc(100% - (2 * #{$content__padding}));
47 |
48 | @media screen and (min-width: $content__align--mobile-media-query--min) {
49 | margin-top: 0.5em;
50 | width: 100%;
51 | }
52 | }
53 |
54 | &.has-left-content {
55 | justify-content: flex-start;
56 | }
57 |
58 | &.has-right-content {
59 | justify-content: flex-end;
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/inc/customizer/defaults.php:
--------------------------------------------------------------------------------
1 | false,
23 | 'custom_logo_max_width' => 50,
24 | 'custom_logo_mobile_max_width' => 50,
25 | 'custom_logo_border_radius' => true,
26 |
27 | // Colors.
28 | 'heading_color' => '#191521',
29 | 'alt_heading_color' => '#565d67',
30 | 'text_color' => '#191521',
31 | 'header_icon_color' => '#191521',
32 | 'nav_color' => '#565d67',
33 | 'mobile_nav_color' => '#191521',
34 | 'footer_bg_color' => '#f1f1f1',
35 | 'footer_text_color' => '#191521',
36 |
37 | // Options.
38 | 'header_search' => true,
39 | 'night_mode' => true,
40 | 'categories' => true,
41 | 'tags' => true,
42 | 'author_meta' => true,
43 | )
44 | );
45 | }
46 |
47 | return isset( $defaults[ $name ] ) ? $defaults[ $name ] : null;
48 | }
49 |
--------------------------------------------------------------------------------
/archive.php:
--------------------------------------------------------------------------------
1 | coblocks_get_icon_svg( 'chevron_left', 40 ) . '' . __( 'Previous page', 'coblocks' ) . '',
36 | 'next_text' => '' . __( 'Next page', 'coblocks' ) . '' . coblocks_get_icon_svg( 'chevron_right', 22 ),
37 | 'before_page_number' => '' . __( 'Page', 'coblocks' ) . ' ',
38 | )
39 | );
40 |
41 | else :
42 | get_template_part( 'components/post/content', 'none' );
43 | endif;
44 |
45 | get_footer();
46 |
--------------------------------------------------------------------------------
/inc/auto-load-next-post.php:
--------------------------------------------------------------------------------
1 | 'main.site-main',
17 | 'title_selector' => 'h1.entry-title',
18 | 'navigation_container' => 'nav.post-navigation',
19 | 'comments_container' => 'div#comments',
20 | )
21 | );
22 | }
23 | endif;
24 | add_action( 'after_setup_theme', 'coblocks_alnp_setup' );
25 |
26 | /**
27 | * Filter the location of the auto load next post template.
28 | */
29 | function coblocks_alnp_template_location() {
30 | return '/components/post/';
31 | }
32 | add_filter( 'alnp_template_location', 'coblocks_alnp_template_location' );
33 |
34 | /**
35 | * Modify the post divider with a little more pizazz.
36 | */
37 | function coblocks_alnp_post_divider() {
38 | ?>
39 |
40 |
41 |
42 |
43 |
44 |
45 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |