Commit 951c861e authored by Mattia Migliorini's avatar Mattia Migliorini

Remove Valencia files in sites/all/themes/

Update Valencia
parent b16eabf8
......@@ -102,7 +102,7 @@
"source": {
"type": "git",
"url": "git@code.ubuntu-it.org:ubuntu-it-web/valencia.git",
"reference": "b107fa775f259da3ebe6ab3b15d01634a4c2e22c"
"reference": "83b33429c98e2a63afe8b5c07f43e08597db3ce1"
},
"require": {
"composer/installers": "~1.0"
......@@ -121,7 +121,7 @@
}
],
"description": "A theme for Drupal 7 developed by the Ubuntu Italy community",
"time": "2014-11-16 12:01:17"
"time": "2014-11-22 15:28:04"
}
],
"packages-dev": [],
......
*.sublime*
.sass-cache
node_modules/
\ No newline at end of file
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['Gruntfile.js', 'js/**/*.js'],
options: {
ignores: ['js/core.js', 'js/yui-min.js']
}
},
sass: {
dist: {
options: {
style: 'compressed'
},
files: {
'css/style.min.css': 'sass/style.scss'
}
},
check: {
options: {
check: true
},
files: {
'css/style.css': 'sass/style.scss'
}
},
dev: {
options: {
style: 'expanded',
// trace: true,
lineNumbers: true
},
files: {
'css/style.css': 'sass/style.scss'
}
}
},
watch: {
js: {
files: ['Gruntfile.js','js/**/*.js'],
tasks: ['jshint'],
options: {
atBegin: true
}
},
css: {
files: 'sass/**/*.scss',
tasks: ['sass:dev'],
options: {
atBegin: true
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['watch']);
grunt.registerTask('dist', ['jshint', 'sass:dist']);
grunt.registerTask('check', ['jshint', 'sass:check']);
};
\ No newline at end of file
{
"name": "ubuntu-it-web/valencia",
"type": "drupal-theme",
"description": "A theme for Drupal 7 developed by the Ubuntu Italy community",
"license": "GPLv2",
"authors": [
{
"name": "Ubuntu Italy Webteam",
"email": "gruppo-web@ubuntu-it.org"
}
],
"minimum-stability": "dev",
"require": {
"composer/installers": "~1.0"
},
"extra": {
"installer-name": "valencia"
}
}
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
/**
* Ubuntu Core Front-End Framework
*
* Core javascript file part of Ubuntu Core Front-End Framework
*
* This file containes the classes required by ubuntu.com to interact.
*
* @project Ubuntu Core Front-End Framework
* @author Web Team at Canonical Ltd
* @copyright 2012 Canonical Ltd
*
*/
/**
* Table of contents
*
* Core
* - setEqualHeight
* - hashBang
* - getPullQuotes
* - setupTooltips
*
*/
if(!core){ var core = {}; }
YUI().use('node', 'anim', function(Y) {
core.setEqualHeight = function($className) {
var maxHeight = 0;
var heightArray = Array();
var collection = Y.all('.'+$className);
collection.each(function(node) {
node.all(' > div, > ul li').each(function(node) {
if(node.get('clientHeight') > maxHeight){
maxHeight = node.get('clientHeight');
}
});
node.all('> div, > ul li').setStyle('height', maxHeight);
maxHeight = 0;
});
}
core.hashBang = function() {
Y.all('#main-content a').each(function (node) {
var hrefValue = node.get('href');
if( hrefValue.indexOf("#") != -1 ) {
var cleanTarget = core.qualifyURL(hrefValue.substr(0,hrefValue.indexOf('#')));
var hashValue = hrefValue.substr(hrefValue.indexOf('#')+1);
var cleanURL = window.location.href;
node.setAttribute('data-hash',hashValue);
node.set('href',hrefValue.substr(0,hrefValue.indexOf('#')));
if(cleanURL == cleanTarget){
node.on("click", function (e) {
e.preventDefault();
window.name = null;
if(!this.hasClass('slideless')) {
core.slideToAnchor(this.getAttribute('data-hash'));
}
});
}else{
node.on("click", function (e) {
window.name = '¬'+node.getAttribute('data-hash');
});
}
}else{
node.on("click", function (e) {
window.name = null;
});
}
});
core.checkForSession();
}
core.qualifyURL = function($url) {
var img = document.createElement('img');
img.src = $url;
$url = img.src;
//img.src = null;
img = null;
return $url;
}
core.checkForSession = function() {
var session = window.name;
if(session){
if(session.charAt(0) == '¬'){
core.jumpToAnchor(session.substring(1));
}
}
}
core.slideToAnchor = function($name) {
var target;
var destination = 0;
if($name != ''){
destination = Y.one('#'+$name).getXY()[1] - 20;
}
var webkitAnim = new Y.Anim({
node: Y.one('html'),
to: { scroll: [0, destination]},
easing: 'easeOut',
duration: 1,
});
var ffAnim = new Y.Anim({
node: Y.one('body'),
to: { scroll: [0, destination]},
easing: 'easeOut',
duration: 1,
});
webkitAnim.run(1000);
ffAnim.run(1000);
}
core.jumpToAnchor = function($name) {
if(document.getElementById($name)){
document.getElementById($name).scrollIntoView();
}else{
window.name = null;
}
}
core.getPullQuotes = function() {
Y.all('span.pullquote').each(function (node) {
var item = Y.Node.create('<div class="pull-quote js">&ldquo;'+node.getContent()+'&rdquo;</div>');
node.get('parentNode').get('parentNode').get('parentNode').append(item);
});
}
core.setupTooltips = function() {
if(Y.one('.tooltip') != null) {
Y.all('.tooltip').each(function (node) {
node.get('parentNode').prepend('<p class="tooltip-label">'+node.get('title')+'</p>');
var title = this.get('title');
node.on('mouseover', function(e){
this.set('title','');
this.get('parentNode').one('.tooltip-label').setStyle('display', 'inline');
});
node.on('mouseout', function(e){
this.set('title',title);
this.get('parentNode').one('.tooltip-label').setStyle('display', 'none');
});
});
}
}
core.sectionTabs = function() {
if(Y.one('.tabbed-content')) {
var p = Y.one('.tabbed-menu a.active');
var s = p.get('href').split('#')[1];
var a = Y.one('.arrow');
var w = (p.get('clientWidth') / 2) - 7;
var x = (p.get('parentNode').getXY()[0] - p.get('parentNode').get('parentNode').getXY()[0]) + w;
Y.all('.tabbed-content').each(function() {
if(this.get('id') != s){
this.setStyle('opacity', '0');
}
}
);
a.setStyle('left',x+'px').setStyle('display', 'inline');
Y.all('.tabbed-menu a').on('click',function(e) {
e.preventDefault();
Y.all('.tabbed-menu a').removeClass('active');
e.currentTarget.addClass('active');
Y.all('.tabbed-content').addClass('hide').setStyle('opacity','0');
s = e.currentTarget.getAttribute('data-hash');
Y.one('#'+s).removeClass('hide');
new Y.Anim({ node: '#'+s, to: { opacity: 1 } }).run();
x = (e.currentTarget.get('parentNode').getXY()[0] - e.currentTarget.get('parentNode').get('parentNode').getXY()[0]) + w;
new Y.Anim({ node: a, to: { left: x+'px' } }).run();
});
}
}
core.svgFallback = function() {
if(Modernizr){
if (!Modernizr.svg || !Modernizr.backgroundsize) {
Y.all("img[src$='.svg']").each(function(node) {
node.setAttribute("src", node.getAttribute('src').toString().match(/.*\/(.+?)\./)[0]+'png');
});
}
}
};
core.sectionTabs();
core.hashBang();
core.setEqualHeight('equal-height');
core.getPullQuotes();
core.setupTooltips();
core.svgFallback();
});
\ No newline at end of file
This diff is collapsed.
{
"name": "valencia",
"version": "0.1.0",
"description": "A theme for Drupal 7 developed by the Ubuntu Italy community.",
"scripts": {
"test": "check"
},
"repository": {
"type": "git",
"url": "git@code.ubuntu-it.org:ubuntu-it-web/valencia.git"
},
"author": "ubuntu-it-web",
"license": "GPLv2",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-sass": "^0.8.1",
"grunt-contrib-watch": "^0.6.1"
}
}
//--------------------------------------------------
// Formatting classes
//--------------------------------------------------
.page-description {
background: none repeat scroll 0 0 $light-grey;
border: 1px solid $warm-grey;
padding: em-calc(10 10 12);
@include rounded-corners;
@include font-size;
line-height: em-calc(22);
}
.middleinfo {
padding: em-calc(8);
margin-bottom: em-calc(6);
@include rounded-corners;
&.gray {
background: $warm-grey;
border: 1px solid $light-grey;
}
}
//--------------------------------------------------
// Classes for header with a background
//--------------------------------------------------
h1 small, h2 small {
font-size: 0.7em !important;
}
.background-wallpaper {
color: #ffffff;
.note {
color: rgba(255, 255, 255, 0.6) !important;
}
.box {
@include box-shadow(0px 1px 2px 0px rgba(0, 0, 0, 0.2) inset);
}
.link-button {
color: #ffffff !important;
}
}
// Background images
.download-desktop {
@extend .background-wallpaper;
background: url('../img/backgrounds/download-desktop.jpg') 100% 70%;
}
.lubuntu {
@extend .background-wallpaper;
background: url('../img/backgrounds/lubuntu.png');
}
.community {
@extend .background-wallpaper;
background: url('../img/backgrounds/community.jpg');
}
.full-width {
width: 100% !important;
}
.link-button {
background: transparent !important;
padding: 0 !important;
font-size: 16px !important;
color: #333333 !important;
}
//--------------------------------------------------
// Valencia SASS Constants
//--------------------------------------------------
// Base font-size for the base em value.
$em-base: 16 !default;
\ No newline at end of file
//--------------------------------------------------
// Custom SASS functions
//--------------------------------------------------
// Strip unit.
@function strip-unit( $num ) {
@return $num / ($num * 0 + 1);
}
// Convert to em.
@function convert-to-em( $value ) {
$value: strip-unit( $value ) / strip-unit( $em-base ) * 1em;
@if ( $value == 0em ) {
$value: 0; // Turn 0em to 0
}
@return $value;
}
//--------------------------------------------------
// EM CALC
//
// Call it with 1, 2, 3, or 4 parameters.
// 'px' is not required but supported:
//
// em-calc(10 20 30px 40);
//
// Space delimited, if you want to delimit using commas,
// wrap it in another pair of brackets.
//
// em-calc((10, 20, 30, 40px));
//
//--------------------------------------------------
@function em-calc($values) {
$max: length($values);
@if $max == 1 {
@return convert-to-em( nth( $values, 1 ) );
}
$em-values: ();
@for $i from 1 through $max {
$em-values: append( $em-values, convert-to-em( nth( $values, $i ) ) );
}
@return $em-values;
}
\ No newline at end of file
/**
* mixins
*
* @section mixins
*/
@mixin transition($transition: all .5s) {
-webkit-transition:$transition;
-moz-transition:$transition;
transition:$transition;
}
@mixin placeholder($color) {
&::-webkit-input-placeholder {
color: $color;
}
&:-moz-placeholder { // Firefox 18-
color: $color;
}
&::-moz-placeholder { // Firefox 19+
color: $color;
}
&:-ms-input-placeholder {
color: $color;
}
}
@mixin box-shadow($shadow) {
-webkit-box-shadow: $shadow;
-mox-box-shadow: $shadow;
-ms-box-shadow: $shadow;
box-shadow: $shadow;
}
@charset "UTF-8";
/**
* Ubuntu Patterns Stylesheet
*
* The CSS file required by Ubuntu patterns page
*
* @project Ubuntu Patterns
* @author Web Team at Canonical Ltd
* @copyright 2012 Canonical Ltd
*
* @see http://design.ubuntu.com
*/
/**
* standard colors
*
* @colordef standard colors
*/
/* assets database path */
$asset-path: "//assets.ubuntu.com/sites/ubuntu/latest/u/img/";
/* usage: background: url(#{$asset-path}/backgrounds/background.jpg) no-repeat 0 0; */
$ubuntu-orange: #dd4814; /* ubuntu orange (used for text links also on any site except canonical) */
$light-orange: #fdf6f2; /* used as background on pre text */
$canonical-aubergine: #772953; /* canonical aubergine */
$light-aubergine: #77216f; /* light aubergine (consumer) */
$mid-aubergine: #5e2750; /* mid aubergine (both) */
$dark-aubergine: #2c001e; /* dark aubergine (enterprise) */
$warm-grey: #888888; /* warm grey */
$cool-grey: #333333; /* cool grey */
$light-grey: #f7f7f7; /* light grey */
/* notifications */
$error: #df382c; /* red */
$warning: #eca918; /* yellow */
$success: #38b44a; /* green */
$information: #19b6ee; /* cyan */
/* colour coded status - from negative to positive (Icon: canonical circle) */
$status-red: #df382c; /* red, for status that require immediate attention */
$status-grey: #888888; /* grey, for disabled status or ones that don’t require attention */
$status-yellow: #efb73e; /* yellow, for status that require attention */
$status-blue: #19b6ee; /* blue, for status that don’t require action */
$status-green: #38b44a; /* green, for positive status */
/* misc colours */
$box-solid-grey: #efefef;
$link-color: $ubuntu-orange; /* This is the global link color, mainly used for links in content */
/* grid variables */
$base: 14;
$gutter-width: 20px;
$grid-gutter: 20px;
$gutter: 2.12766%;
$one-col: 6.38297%;
$two-col: 14.89361%;
$three-col: 23.40425%;
$four-col: 31.91489%;
$five-col: 40.42553%;
$six-col: 48.93617%;
$seven-col: 57.4468%;
$eight-col: 65.95744%;
$nine-col: 74.46808%;
$ten-col: 82.97872%;
$eleven-col: 91.48936%;
$nav-bg: #f0f0f0;
$nav-link-color: #333;
$nav-border-dark: #d4d7d4;
$nav-border-light: #f2f2f4;
$nav-hover-bg: #d0d0d0;
$nav-active-bg: #ddd;
$breakpoint-medium: "only screen and (min-width: 768px)";
$breakpoint-large: "only screen and (min-width: 984px)";
@media only screen and (min-width : 768px) { $base: 15; }
@media only screen and (min-width: 984px) { $base: 14; }
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
@charset "UTF-8";
/**
* Ubuntu Core Front-End Framework
*
* Grid file part of the Ubuntu Core Front-End Framework
*
* This grid is composed by 14 columns (units) separated by 13 gutters (1/3 unit).
* The first and last column are for padding purposes only.
* The content fits in the middle 12 columns.
* Possible divisions: 1 (12 units + 11 gutters), 2 (6 units + 5 gutters),
* 3 ( 4 units + 3 gutters) and 4 (3 units + 2 gutters).
*
* When 1 unit = 60px, 1 gutter = 20px
*
* @project Ubuntu Core Front-End Framework
* @author Web Team at Canonical Ltd
* @copyright 2012 Canonical Ltd
*
* @see http://gridinator.com/
*/
/**
* Table of contents
*
* Main containers
* Columns
* Empty columns
* Borders
* Push and pull
* Verticla gutter
* Last
* Clearing
one-col 60
two-col 140
three-col 220
four-col 300
five-col 380
six-col 460
seven-col 540
eight-col 630
nine-col 700
ten-col 780
eleven-col 860
twelve-col 940
*/
.fake { display: none; }
body {
font-size: 14px;
}
.one-col, .two-col, .three-col, .four-col, .five-col, .six-col, .seven-col, .eight-col, .nine-col, .ten-col, .eleven-col, .twelve-col, .col {
@include box-sizing;
clear: none;
display: inline-block;
float: none;
margin-right: $gutter;
margin-bottom: 20px;
padding: 0;
position: relative;
width: 100%;
}
.twelve-col {
.one-col,
.two-col,
.three-col,
.four-col,
.five-col,
.six-col,
.seven-col,
.eight-col,
.nine-col,
.ten-col,
.eleven-col { width: 100%; }
}
.last-col, .last { margin-right: 0; }
/**
* Clearing
*
* Hard and soft clearing classes
*
* @section clearing
*/
.clearfix:after, .container:after {
clear: both;
content: "\0020";
display: block;
height: 0;
overflow:hidden;
visibility: hidden;
}
.clear { clear: both; }
.clearfix { display: block; }
/**
* mixins
*
* @section mixins
*/
@mixin font-size ($size: 16) {
font-size: ($size / $base)+em;
margin-bottom: (12 / $size)+em;
}
@mixin box-sizing ($type: border-box) {
-webkit-box-sizing: $type;
-moz-box-sizing: $type;