Skip to content

Commit

Permalink
Merge pull request #851 from acquia/beta6.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cohesion-flotz committed Jun 7, 2022
0 parents commit f6dea1e
Show file tree
Hide file tree
Showing 33 changed files with 6,761 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
package-lock.json
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: php

script:
- yarn
- yarn test
18 changes: 18 additions & 0 deletions CONTRIBUTING.md
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.
18 changes: 18 additions & 0 deletions Gulpfile.js
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'));
});
51 changes: 51 additions & 0 deletions README.md
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.
22 changes: 22 additions & 0 deletions cohesion_theme.info.yml
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
4 changes: 4 additions & 0 deletions cohesion_theme.libraries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
global-styling:
css:
theme:
css/main.css: {}
18 changes: 18 additions & 0 deletions cohesion_theme.theme
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');
}
}
14 changes: 14 additions & 0 deletions composer.json
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"
}
5 changes: 5 additions & 0 deletions config/schema/cohesion_theme.schema.yml
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'
Loading

0 comments on commit f6dea1e

Please sign in to comment.