-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #851 from acquia/beta6.9.0
- Loading branch information
0 parents
commit f6dea1e
Showing
33 changed files
with
6,761 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea/ | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: php | ||
|
||
script: | ||
- yarn | ||
- yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Contributing to Site Studio Theme | ||
Feature requests, bugs, support requests, and milestones are tracked via the [GitHub issue queue](https://github.com/acquia/cohesion-theme/issues). | ||
|
||
Before submitting an issue or pull request, please read and take the time to understand this guide. Issues not adhering to these guidelines may be closed. | ||
|
||
## Submitting issues | ||
|
||
* Issues filed with this project are not subject to an SLA. | ||
* Site Studio is distributed under the GPLv2 license; all documentation, code, and guidance is provided without warranty. | ||
* The project maintainers are under no obligation to respond to support requests, feature requests, or pull requests. | ||
|
||
## Submitting pull requests | ||
|
||
Pull requests must also adhere to the following guidelines: | ||
- PRs should be atomic and targeted at a single issue rather than broad-scope. | ||
- PRs must contain clear testing steps and justification, as well as all other information required by the pull request template. | ||
- PRs must pass automated tests before they will be reviewed. We recommend you run the tests locally before submitting (see below). | ||
- PRs must comply with Drupal coding standards and best practices as defined by the project maintainers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* Compile .scss source to .css | ||
*/ | ||
|
||
var gulp = require('gulp'); | ||
var sass = require('gulp-sass'); | ||
var stripCssComments = require('gulp-strip-css-comments'); | ||
|
||
gulp.task('default', async function () { | ||
gulp.src('./scss/*.scss') | ||
.pipe(sass({outputStyle: 'expanded', follow: true}).on('error', sass.logError)) | ||
.pipe(stripCssComments()) | ||
.pipe(gulp.dest('./css/')); | ||
}); | ||
|
||
gulp.task('watch', function () { | ||
gulp.watch('scss/**/*.scss', {}, gulp.series('default')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Site Studio minimal theme | ||
|
||
Developer documentation. | ||
|
||
## Compiling Sass from source. | ||
|
||
**To install Gulp and dependencies:** | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
or | ||
|
||
``` | ||
yarn | ||
``` | ||
|
||
**To compile the styles:** | ||
|
||
``` | ||
npm run build | ||
``` | ||
|
||
or | ||
|
||
``` | ||
yarn run build | ||
``` | ||
|
||
And check the ./css/ directory. | ||
|
||
**To watch the ./scss/ directory and automatically compile when files are changed:** | ||
|
||
``` | ||
npm run watch | ||
``` | ||
|
||
or | ||
|
||
``` | ||
yarn run watch | ||
``` | ||
|
||
## License | ||
|
||
Copyright (C) 2020 Acquia, Inc. | ||
|
||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. | ||
|
||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Site Studio minimal | ||
type: theme | ||
description: A minimal theme as a basis for Site Studio powered websites. It includes some basic styling for Drupal admin functions. | ||
core_version_requirement: ^8.8.0 || ^9 | ||
|
||
# Defines the base theme. | ||
base theme: stable | ||
|
||
libraries: | ||
- cohesion_theme/global-styling | ||
|
||
cohesion: true | ||
|
||
# Defines theme regions available. | ||
regions: | ||
header: Header | ||
featured: Featured | ||
content: Content | ||
sidebar_first: First sidebar | ||
sidebar_second: Second sidebar | ||
footer: Footer | ||
dx8_hidden: Site Studio hidden region |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
global-styling: | ||
css: | ||
theme: | ||
css/main.css: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
*/ | ||
|
||
use Drupal\Core\Form\FormStateInterface; | ||
|
||
/** | ||
* Implements hook_form_alter(). | ||
*/ | ||
function cohesion_theme_form_alter(&$form, FormStateInterface $form_state, $form_id) { | ||
|
||
// Add placeholder to search block form input. | ||
if ($form_id === 'search_block_form') { | ||
$form['keys']['#attributes']['placeholder'] = t('Search'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "acquia/cohesion-theme", | ||
"description": "Site Studio minimal theme", | ||
"license": "GPL-2.0+", | ||
"authors":[ | ||
{ | ||
"name": "Acquia Engineering", | ||
"homepage": "https://www.acquia.com", | ||
"role": "Maintainer" | ||
} | ||
], | ||
"type": "drupal-theme", | ||
"version": "6.9.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Schema for the configuration files of the Claro theme. | ||
|
||
cohesion_theme.settings: | ||
type: theme_settings | ||
label: 'Site studio settings' |
Oops, something went wrong.