├── .dockerignore ├── Dockerfile ├── README.md ├── docker-compose.yml ├── entrypoint.sh ├── examples ├── custom-image │ ├── Dockerfile │ ├── scripts │ │ ├── pre-launch.d │ │ │ └── 99cc_all │ │ └── setup.d │ │ │ ├── 50modules_themes │ │ │ └── 90updb │ └── themes │ │ └── zen │ │ ├── LICENSE.txt │ │ ├── README-FIRST.txt │ │ ├── STARTERKIT │ │ ├── README.txt │ │ ├── STARTERKIT.info.txt │ │ ├── config.rb │ │ ├── css │ │ │ ├── README.txt │ │ │ ├── components │ │ │ │ ├── misc-rtl.css │ │ │ │ └── misc.css │ │ │ ├── layouts │ │ │ │ ├── fixed-rtl.css │ │ │ │ ├── fixed.css │ │ │ │ ├── responsive-rtl.css │ │ │ │ └── responsive.css │ │ │ ├── normalize-rtl.css │ │ │ ├── normalize.css │ │ │ ├── print.css │ │ │ ├── styles-rtl.css │ │ │ └── styles.css │ │ ├── favicon.ico │ │ ├── images-source │ │ │ └── screenshot.psd │ │ ├── images │ │ │ ├── help.png │ │ │ ├── menu-collapsed-rtl.png │ │ │ ├── menu-collapsed.png │ │ │ ├── menu-expanded.png │ │ │ ├── menu-leaf.png │ │ │ ├── message-24-error.png │ │ │ ├── message-24-ok.png │ │ │ ├── message-24-warning.png │ │ │ └── progress.gif │ │ ├── js │ │ │ ├── README.txt │ │ │ └── script.js │ │ ├── logo.png │ │ ├── sass-extensions │ │ │ └── zen-grids │ │ │ │ ├── DO_NOT_MODIFY │ │ │ │ ├── LICENSE.txt │ │ │ │ ├── README.txt │ │ │ │ ├── lib │ │ │ │ └── zen-grids.rb │ │ │ │ ├── stylesheets │ │ │ │ ├── _zen.scss │ │ │ │ └── zen │ │ │ │ │ ├── _background.scss │ │ │ │ │ └── _grids.scss │ │ │ │ ├── templates │ │ │ │ ├── project │ │ │ │ │ ├── _init.scss │ │ │ │ │ ├── _layout.scss │ │ │ │ │ ├── _modules.scss │ │ │ │ │ ├── _visually-hidden.scss │ │ │ │ │ ├── example.html │ │ │ │ │ ├── manifest.rb │ │ │ │ │ └── styles.scss │ │ │ │ └── unit-tests │ │ │ │ │ ├── README.txt │ │ │ │ │ ├── manifest.rb │ │ │ │ │ ├── sass │ │ │ │ │ ├── function-zen-direction-flip.scss │ │ │ │ │ ├── function-zen-grid-item-width.scss │ │ │ │ │ ├── function-zen-half-gutter.scss │ │ │ │ │ ├── function-zen-unit-width.scss │ │ │ │ │ ├── zen-clear.scss │ │ │ │ │ ├── zen-float.scss │ │ │ │ │ ├── zen-grid-background.scss │ │ │ │ │ ├── zen-grid-container.scss │ │ │ │ │ ├── zen-grid-flow-item.scss │ │ │ │ │ ├── zen-grid-item-base.scss │ │ │ │ │ ├── zen-grid-item.scss │ │ │ │ │ └── zen-nested-container.scss │ │ │ │ │ └── test-results │ │ │ │ │ ├── function-zen-direction-flip.css │ │ │ │ │ ├── function-zen-grid-item-width.css │ │ │ │ │ ├── function-zen-half-gutter.css │ │ │ │ │ ├── function-zen-unit-width.css │ │ │ │ │ ├── zen-clear.css │ │ │ │ │ ├── zen-float.css │ │ │ │ │ ├── zen-grid-background.css │ │ │ │ │ ├── zen-grid-container.css │ │ │ │ │ ├── zen-grid-flow-item.css │ │ │ │ │ ├── zen-grid-item-base.css │ │ │ │ │ ├── zen-grid-item.css │ │ │ │ │ └── zen-nested-container.css │ │ │ │ └── zen-grids.gemspec │ │ ├── sass │ │ │ ├── README.txt │ │ │ ├── _init.scss │ │ │ ├── _mixins.scss │ │ │ ├── _normalize-rtl.scss │ │ │ ├── _normalize.scss │ │ │ ├── _print.scss │ │ │ ├── components │ │ │ │ ├── _misc-rtl.scss │ │ │ │ └── _misc.scss │ │ │ ├── layouts │ │ │ │ ├── _fixed-rtl.scss │ │ │ │ ├── _fixed.scss │ │ │ │ ├── _responsive-rtl.scss │ │ │ │ └── _responsive.scss │ │ │ ├── styles-rtl.scss │ │ │ └── styles.scss │ │ ├── screenshot.png │ │ ├── template.php │ │ ├── templates │ │ │ └── README.txt │ │ └── theme-settings.php │ │ ├── js │ │ ├── html5-respond.js │ │ ├── html5.js │ │ └── respond.js │ │ ├── logo.png │ │ ├── panels-layouts │ │ └── zen-no-wrapper │ │ │ ├── icon.png │ │ │ ├── zen-no-wrapper.tpl.php │ │ │ └── zen_no_wrapper.inc │ │ ├── template.php │ │ ├── templates │ │ ├── block--no-wrapper.tpl.php │ │ ├── block.tpl.php │ │ ├── comment-wrapper.tpl.php │ │ ├── comment.tpl.php │ │ ├── html.tpl.php │ │ ├── maintenance-page.tpl.php │ │ ├── node.tpl.php │ │ ├── page.tpl.php │ │ ├── pane-header.tpl.php │ │ ├── pane-messages.tpl.php │ │ ├── pane-navigation.tpl.php │ │ ├── panels-pane.tpl.php │ │ ├── region--footer.tpl.php │ │ ├── region--no-wrapper.tpl.php │ │ ├── region--sidebar.tpl.php │ │ ├── region.tpl.php │ │ └── user-picture.tpl.php │ │ ├── theme-settings.php │ │ ├── zen-internals │ │ ├── css │ │ │ ├── styles-fixed-rtl.css │ │ │ ├── styles-fixed.css │ │ │ ├── styles-rtl.css │ │ │ └── styles.css │ │ ├── extras │ │ │ ├── README.txt │ │ │ ├── sass │ │ │ │ ├── _init_extras.scss │ │ │ │ ├── components │ │ │ │ │ ├── css-misc-rtl.scss │ │ │ │ │ └── css-misc.scss │ │ │ │ ├── css-normalize-rtl.scss │ │ │ │ ├── css-normalize.scss │ │ │ │ ├── css-print.scss │ │ │ │ ├── layouts │ │ │ │ │ ├── css-fixed-rtl.scss │ │ │ │ │ ├── css-fixed.scss │ │ │ │ │ ├── css-responsive-rtl.scss │ │ │ │ │ └── css-responsive.scss │ │ │ │ ├── styles-fixed-rtl.scss │ │ │ │ └── styles-fixed.scss │ │ │ └── text-replacements │ │ │ │ ├── components │ │ │ │ ├── misc--form-item--replace.txt │ │ │ │ ├── misc--form-item--search.txt │ │ │ │ ├── misc--form-item-2--replace.txt │ │ │ │ ├── misc--form-item-2--search.txt │ │ │ │ ├── misc--form-item-3--replace.txt │ │ │ │ ├── misc--form-item-3--search.txt │ │ │ │ ├── misc--form-item-4--replace.txt │ │ │ │ ├── misc--form-item-4--search.txt │ │ │ │ ├── misc--navigation-links--replace.txt │ │ │ │ ├── misc--navigation-links--search.txt │ │ │ │ ├── misc--pager--replace.txt │ │ │ │ ├── misc--pager--search.txt │ │ │ │ ├── misc--titles--replace.txt │ │ │ │ └── misc--titles--search.txt │ │ │ │ ├── layouts │ │ │ │ ├── fixed--sidebar-first--replace.txt │ │ │ │ ├── fixed--sidebar-first--search.txt │ │ │ │ ├── fixed--sidebar-first-2--replace.txt │ │ │ │ ├── fixed--sidebar-first-2--search.txt │ │ │ │ ├── fixed--sidebar-second--replace.txt │ │ │ │ ├── fixed--sidebar-second--search.txt │ │ │ │ ├── fixed--sidebar-second-2--replace.txt │ │ │ │ ├── fixed--sidebar-second-2--search.txt │ │ │ │ ├── fixed--two-sidebars--replace.txt │ │ │ │ ├── fixed--two-sidebars--search.txt │ │ │ │ ├── fixed--two-sidebars-2--replace.txt │ │ │ │ ├── fixed--two-sidebars-2--search.txt │ │ │ │ ├── fixed--two-sidebars-3--replace.txt │ │ │ │ ├── fixed--two-sidebars-3--search.txt │ │ │ │ ├── fixed-rtl--sidebar-first--replace.txt │ │ │ │ ├── fixed-rtl--sidebar-first--search.txt │ │ │ │ ├── fixed-rtl--sidebar-first-2--replace.txt │ │ │ │ ├── fixed-rtl--sidebar-first-2--search.txt │ │ │ │ ├── fixed-rtl--sidebar-second--replace.txt │ │ │ │ ├── fixed-rtl--sidebar-second--search.txt │ │ │ │ ├── fixed-rtl--sidebar-second-2--replace.txt │ │ │ │ ├── fixed-rtl--sidebar-second-2--search.txt │ │ │ │ ├── fixed-rtl--two-sidebars--replace.txt │ │ │ │ ├── fixed-rtl--two-sidebars--search.txt │ │ │ │ ├── fixed-rtl--two-sidebars-2--replace.txt │ │ │ │ ├── fixed-rtl--two-sidebars-2--search.txt │ │ │ │ ├── fixed-rtl--two-sidebars-3--replace.txt │ │ │ │ ├── fixed-rtl--two-sidebars-3--search.txt │ │ │ │ ├── responsive--large-sidebar-first--replace.txt │ │ │ │ ├── responsive--large-sidebar-first--search.txt │ │ │ │ ├── responsive--large-sidebar-first-2--replace.txt │ │ │ │ ├── responsive--large-sidebar-first-2--search.txt │ │ │ │ ├── responsive--large-sidebar-second--replace.txt │ │ │ │ ├── responsive--large-sidebar-second--search.txt │ │ │ │ ├── responsive--large-sidebar-second-2--replace.txt │ │ │ │ ├── responsive--large-sidebar-second-2--search.txt │ │ │ │ ├── responsive--large-two-sidebars--replace.txt │ │ │ │ ├── responsive--large-two-sidebars--search.txt │ │ │ │ ├── responsive--large-two-sidebars-2--replace.txt │ │ │ │ ├── responsive--large-two-sidebars-2--search.txt │ │ │ │ ├── responsive--large-two-sidebars-3--replace.txt │ │ │ │ ├── responsive--large-two-sidebars-3--search.txt │ │ │ │ ├── responsive--small-screen--replace.txt │ │ │ │ ├── responsive--small-screen--search.txt │ │ │ │ ├── responsive--small-sidebar-first--replace.txt │ │ │ │ ├── responsive--small-sidebar-first--search.txt │ │ │ │ ├── responsive--small-sidebar-first-2--replace.txt │ │ │ │ ├── responsive--small-sidebar-first-2--search.txt │ │ │ │ ├── responsive--small-sidebar-second--replace.txt │ │ │ │ ├── responsive--small-sidebar-second--search.txt │ │ │ │ ├── responsive--small-sidebar-second-2--replace.txt │ │ │ │ ├── responsive--small-sidebar-second-2--search.txt │ │ │ │ ├── responsive--small-two-sidebars--replace.txt │ │ │ │ ├── responsive--small-two-sidebars--search.txt │ │ │ │ ├── responsive--small-two-sidebars-2--replace.txt │ │ │ │ ├── responsive--small-two-sidebars-2--search.txt │ │ │ │ ├── responsive--small-two-sidebars-3--replace.txt │ │ │ │ ├── responsive--small-two-sidebars-3--search.txt │ │ │ │ ├── responsive--small-two-sidebars-4--replace.txt │ │ │ │ ├── responsive--small-two-sidebars-4--search.txt │ │ │ │ ├── responsive--small-two-sidebars-5--replace.txt │ │ │ │ ├── responsive--small-two-sidebars-5--search.txt │ │ │ │ ├── responsive--small-two-sidebars-6--replace.txt │ │ │ │ ├── responsive--small-two-sidebars-6--search.txt │ │ │ │ ├── responsive--small-two-sidebars-7--replace.txt │ │ │ │ ├── responsive--small-two-sidebars-7--search.txt │ │ │ │ ├── responsive-rtl--large-sidebar-first--replace.txt │ │ │ │ ├── responsive-rtl--large-sidebar-first--search.txt │ │ │ │ ├── responsive-rtl--large-sidebar-first-2--replace.txt │ │ │ │ ├── responsive-rtl--large-sidebar-first-2--search.txt │ │ │ │ ├── responsive-rtl--large-sidebar-second--replace.txt │ │ │ │ ├── responsive-rtl--large-sidebar-second--search.txt │ │ │ │ ├── responsive-rtl--large-sidebar-second-2--replace.txt │ │ │ │ ├── responsive-rtl--large-sidebar-second-2--search.txt │ │ │ │ ├── responsive-rtl--large-two-sidebars--replace.txt │ │ │ │ ├── responsive-rtl--large-two-sidebars--search.txt │ │ │ │ ├── responsive-rtl--large-two-sidebars-2--replace.txt │ │ │ │ ├── responsive-rtl--large-two-sidebars-2--search.txt │ │ │ │ ├── responsive-rtl--large-two-sidebars-3--replace.txt │ │ │ │ ├── responsive-rtl--large-two-sidebars-3--search.txt │ │ │ │ ├── responsive-rtl--small-screen--replace.txt │ │ │ │ ├── responsive-rtl--small-screen--search.txt │ │ │ │ ├── responsive-rtl--small-sidebar-first--replace.txt │ │ │ │ ├── responsive-rtl--small-sidebar-first--search.txt │ │ │ │ ├── responsive-rtl--small-sidebar-first-2--replace.txt │ │ │ │ ├── responsive-rtl--small-sidebar-first-2--search.txt │ │ │ │ ├── responsive-rtl--small-sidebar-second--replace.txt │ │ │ │ ├── responsive-rtl--small-sidebar-second--search.txt │ │ │ │ ├── responsive-rtl--small-sidebar-second-2--replace.txt │ │ │ │ ├── responsive-rtl--small-sidebar-second-2--search.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars--replace.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars--search.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars-2--replace.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars-2--search.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars-3--replace.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars-3--search.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars-4--replace.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars-4--search.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars-5--replace.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars-5--search.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars-6--replace.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars-6--search.txt │ │ │ │ ├── responsive-rtl--small-two-sidebars-7--replace.txt │ │ │ │ └── responsive-rtl--small-two-sidebars-7--search.txt │ │ │ │ ├── normalize--button--replace.txt │ │ │ │ ├── normalize--button--search.txt │ │ │ │ ├── normalize--fieldset--replace.txt │ │ │ │ ├── normalize--fieldset--search.txt │ │ │ │ ├── normalize--font-face--replace.txt │ │ │ │ ├── normalize--font-face--search.txt │ │ │ │ ├── normalize--font-family--replace.txt │ │ │ │ ├── normalize--font-family--search.txt │ │ │ │ ├── normalize--headings--replace.txt │ │ │ │ ├── normalize--headings--search.txt │ │ │ │ ├── normalize--html--replace.txt │ │ │ │ ├── normalize--html--search.txt │ │ │ │ ├── normalize--img--replace.txt │ │ │ │ ├── normalize--img--search.txt │ │ │ │ ├── normalize--links--replace.txt │ │ │ │ ├── normalize--links--search.txt │ │ │ │ ├── print--abbr--replace.txt │ │ │ │ ├── print--abbr--search.txt │ │ │ │ ├── print--site-name--replace.txt │ │ │ │ ├── print--site-name--search.txt │ │ │ │ ├── print--useful-url--replace.txt │ │ │ │ ├── print--useful-url--search.txt │ │ │ │ ├── print--visible-url--replace.txt │ │ │ │ └── print--visible-url--search.txt │ │ ├── generate.sh │ │ ├── images │ │ │ ├── help.png │ │ │ ├── menu-collapsed-rtl.png │ │ │ ├── menu-collapsed.png │ │ │ ├── menu-expanded.png │ │ │ ├── menu-leaf.png │ │ │ ├── message-24-error.png │ │ │ ├── message-24-ok.png │ │ │ ├── message-24-warning.png │ │ │ └── progress.gif │ │ ├── screenshot.png │ │ ├── template.theme-registry.inc │ │ ├── template.zen.inc │ │ └── zen.drush.inc │ │ └── zen.info └── postgres │ └── docker-compose.yml ├── php-conf.d └── drupal-recommends.ini ├── scripts ├── pre-launch.d │ ├── 00conf_php │ ├── 05servername_baseurl │ ├── 99file_perm │ └── README.txt └── setup.d │ ├── 40site-install │ └── README.txt └── sites └── default ├── files └── .dockerignore └── settings.php /.dockerignore: -------------------------------------------------------------------------------- 1 | examples/ 2 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:apache 2 | MAINTAINER Sam Stoelinga 3 | 4 | ENTRYPOINT ["/entrypoint.sh"] 5 | 6 | # Provide compatibility for images depending on previous versions 7 | RUN ln -s /var/www/html /app 8 | 9 | # Update apache2 configuration for drupal 10 | RUN a2enmod rewrite 11 | 12 | # Install packages and PHP-extensions 13 | RUN apt-get -q update \ 14 | && DEBIAN_FRONTEND=noninteractive apt-get -yq --no-install-recommends install \ 15 | file \ 16 | libfreetype6 \ 17 | libjpeg62 \ 18 | libpng12-0 \ 19 | libpq-dev \ 20 | libx11-6 \ 21 | libxpm4 \ 22 | mysql-client \ 23 | postgresql-client \ 24 | && BUILD_DEPS="libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng12-dev libxpm-dev re2c zlib1g-dev"; \ 25 | DEBIAN_FRONTEND=noninteractive apt-get -yq --no-install-recommends install $BUILD_DEPS \ 26 | && docker-php-ext-configure gd \ 27 | --with-jpeg-dir=/usr/lib/x86_64-linux-gnu --with-png-dir=/usr/lib/x86_64-linux-gnu \ 28 | --with-xpm-dir=/usr/lib/x86_64-linux-gnu --with-freetype-dir=/usr/lib/x86_64-linux-gnu \ 29 | && docker-php-ext-install gd mbstring pdo_mysql pdo_pgsql zip \ 30 | && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $BUILD_DEPS \ 31 | && rm -rf /var/lib/apt/lists/* \ 32 | && pecl install uploadprogress 33 | 34 | # Download Drupal from ftp.drupal.org 35 | ENV DRUPAL_VERSION=7.50 36 | ENV DRUPAL_TARBALL_MD5=f23905b0248d76f0fc8316692cd64753 37 | WORKDIR /var/www 38 | RUN rm -R html \ 39 | && curl -OsS https://ftp.drupal.org/files/projects/drupal-${DRUPAL_VERSION}.tar.gz \ 40 | && echo "${DRUPAL_TARBALL_MD5} drupal-${DRUPAL_VERSION}.tar.gz" | md5sum -c \ 41 | && tar -xf drupal-${DRUPAL_VERSION}.tar.gz && rm drupal-${DRUPAL_VERSION}.tar.gz \ 42 | && mv drupal-${DRUPAL_VERSION} html \ 43 | && cd html \ 44 | && rm [A-Z]*.txt install.php web.config sites/default/default.settings.php 45 | 46 | # Install composer and drush by using composer 47 | ENV COMPOSER_BIN_DIR=/usr/local/bin 48 | RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ 49 | && composer global require drush/drush:7.* \ 50 | && drush cc drush \ 51 | && mkdir /etc/drush && echo " /etc/drush/drushrc.php 52 | 53 | # Add PHP-settings 54 | ADD php-conf.d/ $PHP_INI_DIR/conf.d/ 55 | 56 | # copy sites/default's defaults 57 | WORKDIR html 58 | ADD sites/ sites/ 59 | 60 | # Add README.md, entrypoint-script and scripts-folder 61 | ADD entrypoint.sh README.md / 62 | ADD /scripts/ /scripts/ 63 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | # This is a sample configuration to run a Drupal-instance with Docker-Compose. 2 | # For customization options see: https://docs.docker.com/compose/yml/ 3 | 4 | web: 5 | image: samos123/drupal:7.x 6 | links: 7 | - db:mysql 8 | volumes: 9 | - /var/www/html/sites 10 | - /var/www/private 11 | environment: 12 | - UPLOAD_LIMIT=20M 13 | - MEMORY_LIMIT=128M 14 | - VIRTUAL_HOST=foo.bar.zap 15 | 16 | db: 17 | image: mysql 18 | environment: 19 | - MYSQL_ROOT_PASSWORD=password 20 | volumes: 21 | - /var/lib/mysql 22 | -------------------------------------------------------------------------------- /entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | function run_scripts () { 5 | SCRIPTS_DIR="/scripts/$1.d" 6 | SCRIPT_FILES_PATTERN="^${SCRIPTS_DIR}/[0-9][0-9][a-zA-Z0-9_-]+$" 7 | SCRIPTS=$(find "$SCRIPTS_DIR" -type f -uid 0 -executable -regex "$SCRIPT_FILES_PATTERN" | sort) 8 | if [ -n "$SCRIPTS" ] ; then 9 | echo "=>> $1-scripts:" 10 | for script in $SCRIPTS ; do 11 | echo "=> $script" 12 | . "$script" 13 | done 14 | fi 15 | } 16 | 17 | ### auto-configure database from environment-variables 18 | 19 | if [ -n "$MYSQL_PORT_3306_TCP" ] && [ -n "$POSTGRES_PORT_5432_TCP" ]; then 20 | if [ -z "$DB_HOST" ] && [ -z "$DB_DRIVER" ]; then 21 | echo "ERROR: A linked MySQL- and a linked Postgres-container were detected." 22 | echo " You must set the DB_DRIVER-variable to either 'mysql' or 'pgsql'." 23 | exit 1 24 | fi 25 | fi 26 | 27 | if [ -n "$MYSQL_PORT_3306_TCP" ]; then 28 | DB_DRIVER=mysql 29 | if [ -z "$DB_HOST" ]; then 30 | DB_HOST=$MYSQL_PORT_3306_TCP_ADDR 31 | DB_PORT=$MYSQL_PORT_3306_TCP_PORT 32 | else 33 | echo >&2 "WARNING: Both DB_HOST and MYSQL_PORT_3306_TCP found." 34 | echo >&2 " Connecting to DB_HOST ($DB_HOST)" 35 | echo >&2 " instead of the linked mysql container." 36 | fi 37 | elif [ -n "$POSTGRES_PORT_5432_TCP" ]; then 38 | DB_DRIVER=pgsql 39 | if [ -z "$DB_HOST" ]; then 40 | DB_HOST=$POSTGRES_PORT_5432_TCP_ADDR 41 | DB_PORT=$POSTGRES_PORT_5432_TCP_PORT 42 | else 43 | echo >&2 "WARNING: Both DB_HOST and POSTGRES_PORT_5432_TCP found." 44 | echo >&2 " Connecting to DB_HOST ($DB_HOST)" 45 | echo >&2 " instead of the linked postgres container." 46 | fi 47 | fi 48 | 49 | if [ -z "$DB_HOST" ]; then 50 | echo >&2 "ERROR: missing DB_HOST and MYSQL_PORT_3306_TCP or POSTGRES_PORT_5432_TCP environment variables." 51 | echo >&2 " Did you forget to --link some_mysql_container:mysql, --link some_postgres_container:postgres, or set an external db" 52 | echo >&2 " with -e DB_HOST=hostname?" 53 | exit 1 54 | fi 55 | 56 | 57 | ### set database configuration defaults if necessary 58 | 59 | : ${DB_DRIVER:='mysql'} 60 | : ${DB_NAME:='drupal'} 61 | 62 | if [ "${DB_DRIVER}" = 'mysql' ]; then 63 | : ${DB_USER:='root'} 64 | if [ "${DB_USER}" = 'root' ]; then 65 | : ${DB_PASS:=$MYSQL_ENV_MYSQL_ROOT_PASSWORD} 66 | fi 67 | : ${DB_PORT:='3306'} 68 | elif [ "${DB_DRIVER}" = 'pgsql' ]; then 69 | : ${DB_USER:='postgres'} 70 | if [ "$DB_USER" = 'postgres' ]; then 71 | : ${DB_PASS:=$POSTGRES_ENV_POSTGRES_PASSWORD} 72 | fi 73 | : ${DB_PORT:='5432'} 74 | fi 75 | 76 | if [ -z "$DB_PASS" ]; then 77 | echo >&2 "ERROR: missing required DB_PASS environment variable" 78 | echo >&2 " Did you forget to -e DB_PASS=... ?" 79 | echo >&2 80 | echo >&2 " (Also of interest might be DB_USER and DB_NAME.)" 81 | exit 1 82 | fi 83 | 84 | 85 | ### other defaults 86 | 87 | : ${ADMIN_USER:='admin'} # DO NOT export! 88 | : ${ADMIN_PASSWORD:='changeme'} # DO NOT export! 89 | 90 | 91 | ### store database-configuration 92 | 93 | export DB_DRIVER DB_HOST DB_PORT DB_NAME DB_USER DB_PASS 94 | echo -e "# Drupals's database configuration, parsed in /var/www/sites/default/settings.php\n 95 | export DB_DRIVER=${DB_DRIVER} DB_HOST=${DB_HOST} DB_PORT=${DB_PORT} DB_NAME=${DB_NAME} DB_USER=${DB_USER} DB_PASS=${DB_PASS}" >> /etc/bash.bashrc 96 | 97 | 98 | ### connect to database 99 | 100 | echo 101 | echo "=> Trying to connect to a database using:" 102 | echo " Database Driver: $DB_DRIVER" 103 | echo " Database Host: $DB_HOST" 104 | echo " Database Port: $DB_PORT" 105 | echo " Database Username: $DB_USER" 106 | echo " Database Password: $DB_PASS" 107 | echo " Database Name: $DB_NAME" 108 | echo 109 | 110 | for ((i=0;i<20;i++)) 111 | do 112 | if [[ $DB_DRIVER == "mysql" ]]; then 113 | DB_CONNECTABLE=$(mysql -u"$DB_USER" -p"$DB_PASS" -h"$DB_HOST" -P"$DB_PORT" -e 'status' >/dev/null 2>&1; echo "$?") 114 | elif [[ $DB_DRIVER == "pgsql" ]]; then 115 | DB_CONNECTABLE=$(PGPASSWORD=$DB_PASS psql -U "$DB_USER" -h "$DB_HOST" -p "$DB_PORT" -l >/dev/null 2>&1; echo "$?") 116 | fi 117 | if [[ $DB_CONNECTABLE -eq 0 ]]; then 118 | break 119 | fi 120 | sleep 3 121 | done 122 | 123 | if ! [[ $DB_CONNECTABLE -eq 0 ]]; then 124 | echo "Cannot connect to database" 125 | exit "${DB_CONNECTABLE}" 126 | fi 127 | 128 | 129 | ### Initial setup if database doesn't exist 130 | 131 | if ! drush pm-list > /dev/null 2>&1; then 132 | run_scripts setup 133 | echo "=> Done installing site!" 134 | if [ $EXTRA_SETUP_SCRIPT ]; then 135 | echo "=> WARNING: The usage of EXTRA_SETUP_SCRIPT is deprectated. Put your script into /scripts/post-setup.d/" 136 | . $EXTRA_SETUP_SCRIPT 137 | echo "=> Successfully ran extra setup script ${EXTRA_SETUP_SCRIPT}." 138 | fi 139 | else 140 | echo "=> Skipped setup - database ${DB_NAME} already exists." 141 | fi 142 | 143 | 144 | ### 145 | 146 | run_scripts pre-launch 147 | 148 | unset ADMIN_USER 149 | unset ADMIN_PASSWORD 150 | 151 | exec apache2-foreground 152 | 153 | exit 1 154 | -------------------------------------------------------------------------------- /examples/custom-image/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM samos123/drupal 2 | 3 | RUN drush pm-download module_filter 4 | ADD themes/ sites/all/themes/ 5 | ADD scripts/ /scripts 6 | -------------------------------------------------------------------------------- /examples/custom-image/scripts/pre-launch.d/99cc_all: -------------------------------------------------------------------------------- 1 | drush cc all 2 | -------------------------------------------------------------------------------- /examples/custom-image/scripts/setup.d/50modules_themes: -------------------------------------------------------------------------------- 1 | drush pm-enable module_filter 2 | drush pm-enable zen 3 | drush vset theme_default zen 4 | -------------------------------------------------------------------------------- /examples/custom-image/scripts/setup.d/90updb: -------------------------------------------------------------------------------- 1 | drush updb 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/README-FIRST.txt: -------------------------------------------------------------------------------- 1 | WHERE TO START 2 | -------------- 3 | 4 | Yay! You opened the correct file first. The first thing that people notice when 5 | they download the Zen theme is that there are A LOT of files -- way more than 6 | other themes. 7 | 8 | Don't worry! You don't need to learn everything all at once in order to make a 9 | Drupal theme. Zen will do the bits you haven't learned and patiently wait for 10 | you to discover the documentation and inline comments about them. 11 | 12 | 13 | WHAT ARE BASE THEMES, SUB-THEMES AND STARTER THEMES? 14 | ---------------------------------------------------- 15 | 16 | Often the best way to learn a system is to take an existing example and modify 17 | it to see how it works. One big disadvantage of this learning method is that if 18 | you break something and the original example worked before you hacked it, 19 | there's very little incentive for others to help you. 20 | 21 | Drupal's theming system has a solution to this problem: parent themes and 22 | sub-themes. A "sub-theme" will inherit all its HTML markup, CSS, and PHP code 23 | from its "parent theme" (also called a "base theme".) And with Drupal themes, 24 | it's easy for a sub-theme to override just the parts of the parent theme it 25 | wants to modify. 26 | 27 | A "starter theme" is a sub-theme designed specifically to be a good starting 28 | point for developing a custom theme for your website. It is usually paired with 29 | a base theme. 30 | 31 | So how do you create a theme with Zen? 32 | 33 | The Zen theme includes the Zen base theme as well as a starter theme called 34 | "STARTERKIT". You shouldn't modify any of the CSS or PHP files in the zen/ 35 | folder; but instead you should create a sub-theme of zen and put it in a folder 36 | outside of the root zen/ folder. 37 | 38 | 39 | SUGGESTED READING 40 | ----------------- 41 | 42 | Installation 43 | If you don't know how to install a Drupal theme, there is a quick primer later 44 | in this document. 45 | 46 | Building a theme with Zen 47 | See the STARTERKIT/README.txt file for full instructions. 48 | 49 | Theme .info file 50 | Your sub-theme's .info file holds the basic information about your theme that 51 | Drupal needs to know: its name, description, features, template regions, CSS 52 | files, and JavaScript. Don't worry about all these lines just yet. 53 | 54 | CSS 55 | Once you have created your sub-theme, look at the README.txt in your 56 | sub-theme's css folder. Don't freak out about all the files in this directory; 57 | just read the README.txt file for an explanation. 58 | 59 | Templates 60 | Now take a look at the README.txt in your sub-theme's templates folder. 61 | 62 | 63 | ONLINE READING 64 | -------------- 65 | 66 | Full documentation on the Zen theme can be found in Drupal's Handbook: 67 | https://drupal.org/documentation/theme/zen 68 | 69 | Excellent documentation on Drupal theming can be found in the Theme Guide: 70 | https://drupal.org/theme-guide 71 | 72 | 73 | INSTALLATION 74 | ------------ 75 | 76 | 1. Download Zen from https://drupal.org/project/zen 77 | 78 | 2. Unpack the downloaded file, take the entire zen folder and place it in your 79 | Drupal installation under sites/all/themes. (Additional installation folders 80 | can be used; see https://drupal.org/getting-started/install-contrib/themes 81 | for more information.) 82 | 83 | For more information about acceptable theme installation directories, read 84 | the sites/default/default.settings.php file in your Drupal installation. 85 | 86 | 3. Log in as an administrator on your Drupal site and go to the Appearance page 87 | at admin/appearance. You will see the Zen theme listed under the Disabled 88 | Themes heading with links on how to create your own sub-theme. You can 89 | optionally make Zen the default theme. 90 | 91 | 4. Now build your own sub-theme by reading the STARTERKIT/README.txt file. 92 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/config.rb: -------------------------------------------------------------------------------- 1 | # 2 | # This file is only needed for Compass/Sass integration. If you are not using 3 | # Compass, you may safely ignore or delete this file. 4 | # 5 | # If you'd like to learn more about Sass and Compass, see the sass/README.txt 6 | # file for more information. 7 | # 8 | 9 | 10 | # Change this to :production when ready to deploy the CSS to the live server. 11 | environment = :development 12 | #environment = :production 13 | 14 | # In development, we can turn on the FireSass-compatible debug_info. 15 | firesass = false 16 | #firesass = true 17 | 18 | 19 | # Location of the theme's resources. 20 | css_dir = "css" 21 | sass_dir = "sass" 22 | extensions_dir = "sass-extensions" 23 | images_dir = "images" 24 | javascripts_dir = "js" 25 | 26 | 27 | # Require any additional compass plugins installed on your system. 28 | #require 'ninesixty' 29 | #require 'zen-grids' 30 | 31 | # Assuming this theme is in sites/*/themes/THEMENAME, you can add the partials 32 | # included with a module by uncommenting and modifying one of the lines below: 33 | #add_import_path "../../../default/modules/FOO" 34 | #add_import_path "../../../all/modules/FOO" 35 | #add_import_path "../../../../modules/FOO" 36 | 37 | 38 | ## 39 | ## You probably don't need to edit anything below this. 40 | ## 41 | 42 | # You can select your preferred output style here (can be overridden via the command line): 43 | # output_style = :expanded or :nested or :compact or :compressed 44 | output_style = (environment == :development) ? :expanded : :compressed 45 | 46 | # To enable relative paths to assets via compass helper functions. Since Drupal 47 | # themes can be installed in multiple locations, we don't need to worry about 48 | # the absolute path to the theme from the server root. 49 | relative_assets = true 50 | 51 | # To disable debugging comments that display the original location of your selectors. Uncomment: 52 | # line_comments = false 53 | 54 | # Pass options to sass. For development, we turn on the FireSass-compatible 55 | # debug_info if the firesass config variable above is true. 56 | sass_options = (environment == :development && firesass == true) ? {:debug_info => true} : {} 57 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/css/components/misc-rtl.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * RTL companion for the modular-styles.css file. 4 | */ 5 | 6 | /** 7 | * Branding header. 8 | */ 9 | 10 | /* Wrapping link for logo. */ 11 | .header__logo { 12 | float: right; 13 | } 14 | 15 | /* The secondary menu (login, etc.) */ 16 | .header__secondary-menu { 17 | float: left; 18 | } 19 | 20 | /** 21 | * Navigation bar. 22 | */ 23 | 24 | /* Main menu and secondary menu links and menu block links. */ 25 | #navigation .links, 26 | #navigation .menu { 27 | text-align: right; 28 | } 29 | #navigation .links li, 30 | #navigation .menu li { 31 | /* A simple method to get navigation links to appear in one line. */ 32 | float: right; 33 | padding: 0 0 0 10px; 34 | } 35 | 36 | /** 37 | * Messages. 38 | */ 39 | .messages, 40 | .messages--status, 41 | .messages--warning, 42 | .messages--error { 43 | padding: 10px 50px 10px 10px; 44 | background-position: 99% 8px; 45 | } 46 | 47 | /** 48 | * Tabs. 49 | */ 50 | .tabs-primary__tab, 51 | .tabs-secondary__tab, 52 | .tabs-secondary__tab.is-active { 53 | float: right; 54 | } 55 | 56 | /** 57 | * Inline styles. 58 | */ 59 | 60 | /* List of links */ 61 | .inline li { 62 | /* Bug in Safari causes display: inline to fail. */ 63 | display: inline-block; 64 | padding: 0 0 0 1em; 65 | } 66 | 67 | /* The inline field label used by the Fences.module */ 68 | span.field-label { 69 | padding: 0 0 0 1em; 70 | } 71 | 72 | /** 73 | * "More" links. 74 | */ 75 | .more-link { 76 | text-align: left; 77 | } 78 | .more-help-link { 79 | text-align: left; 80 | } 81 | .more-help-link a { 82 | background-position: 100% 50%; 83 | padding: 1px 20px 1px 0; 84 | } 85 | 86 | /** 87 | * Menus. 88 | */ 89 | .menu__item.is-collapsed { 90 | list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII='); 91 | *list-style-image: url('../../images/menu-collapsed-rtl.png'); 92 | } 93 | 94 | /** 95 | * Comments. 96 | */ 97 | 98 | /* Nested comments are indented. */ 99 | .indented { 100 | margin-left: 0; 101 | margin-right: 30px; 102 | } 103 | 104 | /** 105 | * Forms. 106 | */ 107 | 108 | /* Drupal's default login form block */ 109 | #user-login-form { 110 | text-align: right; 111 | } 112 | html.js #user-login-form li.openid-link, 113 | #user-login-form li.openid-link { 114 | /* Un-do some of the padding on the ul list. */ 115 | margin-left: 0; 116 | margin-right: -20px; 117 | } 118 | 119 | /* 120 | * Drupal admin tables. 121 | */ 122 | form th { 123 | text-align: right; 124 | padding-left: 1em; 125 | padding-right: 0; 126 | } 127 | 128 | /** 129 | * Collapsible fieldsets. 130 | * 131 | * @see collapse.js 132 | */ 133 | html.js .collapsible .fieldset-legend { 134 | background-position: 98% 75%; 135 | padding-left: 0; 136 | padding-right: 15px; 137 | } 138 | html.js .collapsed .fieldset-legend { 139 | background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII='); 140 | *background-image: url('../../images/menu-collapsed-rtl.png'); 141 | background-position: 98% 50%; 142 | } 143 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/css/layouts/fixed-rtl.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * RTL companion for the layout-fixed-width.css file. 4 | */ 5 | 6 | /** 7 | * The layout when there is only one sidebar, the right one. 8 | */ 9 | 10 | /* Span 4 columns, starting in 2nd column from right. */ 11 | .sidebar-first #content { 12 | float: right; 13 | width: 764px; 14 | margin-right: 196px; 15 | margin-left: -980px; 16 | } 17 | 18 | /* Span 1 column, starting in 1st column from right. */ 19 | .sidebar-first .region-sidebar-first { 20 | float: right; 21 | width: 176px; 22 | margin-right: 0px; 23 | margin-left: -196px; 24 | } 25 | 26 | /** 27 | * The layout when there is only one sidebar, the left one. 28 | */ 29 | 30 | /* Span 4 columns, starting in 1st column from right. */ 31 | .sidebar-second #content { 32 | float: right; 33 | width: 764px; 34 | margin-right: 0px; 35 | margin-left: -784px; 36 | } 37 | 38 | /* Span 1 column, starting in 5th column from right. */ 39 | .sidebar-second .region-sidebar-second { 40 | float: right; 41 | width: 176px; 42 | margin-right: 784px; 43 | margin-left: -980px; 44 | } 45 | 46 | /** 47 | * The layout when there are two sidebars. 48 | */ 49 | 50 | /* Span 3 columns, starting in 2nd column from right. */ 51 | .two-sidebars #content { 52 | float: right; 53 | width: 568px; 54 | margin-right: 196px; 55 | margin-left: -784px; 56 | } 57 | 58 | /* Span 1 column, starting in 1st column from right. */ 59 | .two-sidebars .region-sidebar-first { 60 | float: right; 61 | width: 176px; 62 | margin-right: 0px; 63 | margin-left: -196px; 64 | } 65 | 66 | /* Span 1 column, starting in 5th column from right. */ 67 | .two-sidebars .region-sidebar-second { 68 | float: right; 69 | width: 176px; 70 | margin-right: 784px; 71 | margin-left: -980px; 72 | } 73 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/css/layouts/fixed.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Positioning for a fixed-width, desktop-centric layout. 4 | * 5 | * Define CSS classes to create a table-free, 3-column, 2-column, or single 6 | * column layout depending on whether blocks are enabled in the left or right 7 | * columns. 8 | * 9 | * This layout uses the Zen Grids plugin for Compass: http://zengrids.com 10 | */ 11 | 12 | /** 13 | * Center the page. 14 | * 15 | * If you want to make the page a fixed width and centered in the viewport, 16 | * this is the standards-compliant way to do that. 17 | */ 18 | #page, 19 | .region-bottom { 20 | margin-left: auto; 21 | margin-right: auto; 22 | width: 980px; 23 | } 24 | 25 | /* Apply the shared properties of grid items in a single, efficient ruleset. */ 26 | #header, 27 | #content, 28 | #navigation, 29 | .region-sidebar-first, 30 | .region-sidebar-second, 31 | #footer { 32 | padding-left: 10px; 33 | padding-right: 10px; 34 | border-left: 0 !important; 35 | border-right: 0 !important; 36 | word-wrap: break-word; 37 | *behavior: url("/path/to/boxsizing.htc"); 38 | _display: inline; 39 | _overflow: hidden; 40 | _overflow-y: visible; 41 | } 42 | 43 | /* Containers for grid items and flow items. */ 44 | #header, 45 | #main, 46 | #footer { 47 | *position: relative; 48 | *zoom: 1; 49 | } 50 | #header:before, 51 | #header:after, 52 | #main:before, 53 | #main:after, 54 | #footer:before, 55 | #footer:after { 56 | content: ""; 57 | display: table; 58 | } 59 | #header:after, 60 | #main:after, 61 | #footer:after { 62 | clear: both; 63 | } 64 | 65 | /* Navigation bar */ 66 | #main { 67 | /* Move all the children of #main down to make room. */ 68 | padding-top: 3em; 69 | position: relative; 70 | } 71 | #navigation { 72 | /* Move the navbar up inside #main's padding. */ 73 | position: absolute; 74 | top: 0; 75 | height: 3em; 76 | width: 960px; 77 | } 78 | 79 | /** 80 | * The layout when there is only one sidebar, the left one. 81 | */ 82 | 83 | /* Span 4 columns, starting in 2nd column from left. */ 84 | .sidebar-first #content { 85 | float: left; 86 | width: 764px; 87 | margin-left: 196px; 88 | margin-right: -980px; 89 | } 90 | 91 | /* Span 1 column, starting in 1st column from left. */ 92 | .sidebar-first .region-sidebar-first { 93 | float: left; 94 | width: 176px; 95 | margin-left: 0px; 96 | margin-right: -196px; 97 | } 98 | 99 | /** 100 | * The layout when there is only one sidebar, the right one. 101 | */ 102 | 103 | /* Span 4 columns, starting in 1st column from left. */ 104 | .sidebar-second #content { 105 | float: left; 106 | width: 764px; 107 | margin-left: 0px; 108 | margin-right: -784px; 109 | } 110 | 111 | /* Span 1 column, starting in 5th column from left. */ 112 | .sidebar-second .region-sidebar-second { 113 | float: left; 114 | width: 176px; 115 | margin-left: 784px; 116 | margin-right: -980px; 117 | } 118 | 119 | /** 120 | * The layout when there are two sidebars. 121 | */ 122 | 123 | /* Span 3 columns, starting in 2nd column from left. */ 124 | .two-sidebars #content { 125 | float: left; 126 | width: 568px; 127 | margin-left: 196px; 128 | margin-right: -784px; 129 | } 130 | 131 | /* Span 1 column, starting in 1st column from left. */ 132 | .two-sidebars .region-sidebar-first { 133 | float: left; 134 | width: 176px; 135 | margin-left: 0px; 136 | margin-right: -196px; 137 | } 138 | 139 | /* Span 1 column, starting in 5th column from left. */ 140 | .two-sidebars .region-sidebar-second { 141 | float: left; 142 | width: 176px; 143 | margin-left: 784px; 144 | margin-right: -980px; 145 | } 146 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/css/normalize-rtl.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Normalize-rtl.scss is the RTL language extension of normalize.scss 4 | */ 5 | 6 | /** 7 | * Lists 8 | */ 9 | dd { 10 | margin: 0 30px 0 0; 11 | } 12 | 13 | /* Address paddings set differently in IE 6/7. */ 14 | menu, 15 | ol, 16 | ul { 17 | padding: 0 30px 0 0; 18 | } 19 | 20 | /** 21 | * Forms 22 | */ 23 | legend { 24 | /* Correct alignment displayed oddly in IE 6/7. */ 25 | *margin-left: 0; 26 | *margin-right: -7px; 27 | } 28 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/css/print.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Print styling 4 | * 5 | * We provide some sane print styling for Drupal using Zen's layout method. 6 | */ 7 | 8 | /** 9 | * By importing this CSS file as media "all", we allow this print file to be 10 | * aggregated with other stylesheets, for improved front-end performance. 11 | */ 12 | @media print { 13 | 14 | /* Underline all links. */ 15 | a:link, 16 | a:visited { 17 | text-decoration: underline !important; 18 | } 19 | 20 | /* Don't underline header. */ 21 | a:link.header__site-link, 22 | a:visited.header__site-link { 23 | text-decoration: none !important; 24 | } 25 | 26 | /* Add visible URL after links. */ 27 | #content a[href]:after { 28 | content: " (" attr(href) ")"; 29 | font-weight: normal; 30 | font-size: 16px; 31 | } 32 | 33 | /* Only display useful links. */ 34 | #content a[href^="javascript:"]:after, 35 | #content a[href^="#"]:after { 36 | content: ""; 37 | } 38 | 39 | /* Add visible title after abbreviations. */ 40 | #content abbr[title]:after { 41 | content: " (" attr(title) ")"; 42 | } 43 | 44 | /* Un-float the content. */ 45 | #content { 46 | float: none !important; 47 | width: 100% !important; 48 | margin: 0 !important; 49 | padding: 0 !important; 50 | } 51 | 52 | /* Turn off any background colors or images. */ 53 | body, 54 | #page, 55 | #main, 56 | #content { 57 | color: #000; 58 | background-color: transparent !important; 59 | background-image: none !important; 60 | } 61 | 62 | /* Hide sidebars and nav elements. */ 63 | #skip-link, 64 | #toolbar, 65 | #navigation, 66 | .region-sidebar-first, 67 | .region-sidebar-second, 68 | #footer, 69 | .breadcrumb, 70 | .tabs, 71 | .action-links, 72 | .links, 73 | .book-navigation, 74 | .forum-topic-navigation, 75 | .pager, 76 | .feed-icons { 77 | visibility: hidden; 78 | display: none; 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/css/styles-rtl.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * RTL companion for the styles.css file. 4 | */ 5 | 6 | /* HTML element (SMACSS base) rules */ 7 | @import "normalize-rtl.css"; 8 | 9 | /* Layout rules */ 10 | @import "layouts/responsive-rtl.css"; 11 | 12 | /* Component (SMACSS module) rules */ 13 | @import "components/misc-rtl.css"; 14 | 15 | /* SMACSS theme rules */ 16 | /* @import "theme-A-rtl.css"; */ 17 | /* @import "theme-B-rtl.css"; */ 18 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/css/styles.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Styles are organized using the SMACSS technique. @see http://smacss.com/book/ 4 | * 5 | * When you turn on CSS aggregation at admin/config/development/performance, all 6 | * of these @include files will be combined into a single file. 7 | */ 8 | 9 | /* HTML element (SMACSS base) rules */ 10 | @import "normalize.css"; 11 | 12 | /* Layout rules */ 13 | @import "layouts/responsive.css"; 14 | 15 | /* Component (SMACSS module) rules */ 16 | @import "components/misc.css"; 17 | /* Optionally, add your own components here. */ 18 | @import "print.css"; 19 | 20 | /* SMACSS theme rules */ 21 | /* @import "theme-A.css"; */ 22 | /* @import "theme-B.css"; */ 23 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/favicon.ico -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/images-source/screenshot.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/images-source/screenshot.psd -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/images/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/images/help.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/images/menu-collapsed-rtl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/images/menu-collapsed-rtl.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/images/menu-collapsed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/images/menu-collapsed.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/images/menu-expanded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/images/menu-expanded.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/images/menu-leaf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/images/menu-leaf.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/images/message-24-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/images/message-24-error.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/images/message-24-ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/images/message-24-ok.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/images/message-24-warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/images/message-24-warning.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/images/progress.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/images/progress.gif -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/js/README.txt: -------------------------------------------------------------------------------- 1 | Your theme can add JavaScript files in two ways: 2 | 3 | 1. To add a JavaScript file to all pages on your website, edit your sub-theme's 4 | .info file and add a line like this one: 5 | 6 | scripts[] = js/my-jquery-script.js 7 | 8 | 2. To add a JavaScript file depending on a certain condition, you can add it 9 | using some PHP code in a preprocess function: 10 | 11 | drupal_add_js(drupal_get_path('theme', 'THEME_NAME') . '/js/my-jquery-script.js', array('group' => JS_THEME)); 12 | 13 | For the full documentation of drupal_add_js(), see: 14 | http://api.drupal.org/api/function/drupal_add_js 15 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/js/script.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * A JavaScript file for the theme. 4 | * 5 | * In order for this JavaScript to be loaded on pages, see the instructions in 6 | * the README.txt next to this file. 7 | */ 8 | 9 | // JavaScript should be made compatible with libraries other than jQuery by 10 | // wrapping it with an "anonymous closure". See: 11 | // - https://drupal.org/node/1446420 12 | // - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth 13 | (function ($, Drupal, window, document, undefined) { 14 | 15 | 16 | // To understand behaviors, see https://drupal.org/node/756722#behaviors 17 | Drupal.behaviors.my_custom_behavior = { 18 | attach: function(context, settings) { 19 | 20 | // Place your code here. 21 | 22 | } 23 | }; 24 | 25 | 26 | })(jQuery, Drupal, this, this.document); 27 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/logo.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/DO_NOT_MODIFY: -------------------------------------------------------------------------------- 1 | This is a copy of the "zen-grids" extension. 2 | 3 | It now overrides the original which was found here: 4 | 5 | /Library/Ruby/Gems/1.8/gems/zen-grids-1.4 6 | 7 | Unpacking an extension is useful when you need to easily peruse the 8 | extension's source. You might find yourself tempted to change the 9 | stylesheets here. If you do this, you'll find it harder to take 10 | updates from the original author. Sometimes this seems like a good 11 | idea at the time, but in a few months, you'll probably regret it. 12 | 13 | In the future, if you take an update of this framework, you'll need to run 14 | 15 | compass unpack zen-grids 16 | 17 | again or remove this unpacked extension. 18 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/README.txt: -------------------------------------------------------------------------------- 1 | ABOUT zen-grids 2 | --------------- 3 | 4 | Zen Grids is an intuitive, flexible grid system that leverages the natural 5 | source order of your content to make it easier to create fluid responsive 6 | designs. With an easy-to-use Sass mixin set, the Zen Grids system can be applied 7 | to an infinite number of layouts, including responsive, adaptive, fluid and 8 | fixed-width layouts. 9 | 10 | More information can be found at http://zengrids.com 11 | 12 | 13 | USAGE 14 | ----- 15 | 16 | Here's a simple example: a content column with a sidebar on each side, aligned 17 | to a 12 column grid. 18 | 19 | @import "zen"; 20 | 21 | $zen-gutter-width: 40px; // Set the gutter size. A half-gutter is used on 22 | // each side of each column. 23 | 24 | .container { 25 | @include zen-grid-container(); // Define the container for your grid items. 26 | } 27 | 28 | $zen-column-count: 12; // Set the number of grid columns to use in this media 29 | // query. You'll likely want a different grid for 30 | // different screen sizes. 31 | 32 | @media all and (min-width: 50em) { 33 | .sidebar1 { 34 | @include zen-grid-item(3, 1); // Span 3 columns starting in 1st column. 35 | } 36 | .content { 37 | @include zen-grid-item(6, 4); // Span 6 columns starting in 4th column. 38 | } 39 | .sidebar2 { 40 | @include zen-grid-item(3, 10); // Span 3 columns starting in 10th column. 41 | } 42 | } 43 | 44 | Within the .container element, the .sidebar1, .sidebar2 and .content elements 45 | can be in any order. 46 | 47 | Zen Grids has built-in support for the Box-sizing Polyfill which adds 48 | "box-sizing: border-box" support to IE7 and earlier. 49 | 50 | - Download the polyfill at https://github.com/Schepp/box-sizing-polyfill 51 | - Place the boxsizing.htc file in your website. 52 | - Set Zen Grids' $box-sizing-polyfill-path variable to the absolute path to the 53 | boxsizing.htc file on your website. For example: 54 | $box-sizing-polyfill-path: "/scripts/polyfills/boxsizing.htc"; 55 | 56 | 57 | INSTALLATION 58 | ------------ 59 | 60 | Zen grids is distributed as a Ruby Gem. On your computer, simply run: 61 | 62 | sudo gem install zen-grids 63 | 64 | If you are using Compass (and you should!) then you can add it to an existing 65 | project by editing the project's configuration file, config.rb, and adding this 66 | line: 67 | 68 | require 'zen-grids' 69 | 70 | You can then start using Zen Grids in your Sass files. Just add this line to one 71 | of your .sass or .scss files and start creating! 72 | 73 | @import "zen"; 74 | 75 | 76 | REQUIREMENTS 77 | ------------ 78 | 79 | - Sass 3.2 or later 80 | 81 | For the zen/background module only: 82 | - Compass 0.12 or later 83 | 84 | 85 | LICENSE 86 | ------- 87 | 88 | Available under the GPL v2 license. See LICENSE.txt. 89 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/lib/zen-grids.rb: -------------------------------------------------------------------------------- 1 | require 'compass' 2 | extension_path = File.expand_path(File.join(File.dirname(__FILE__), "..")) 3 | Compass::Frameworks.register('zen-grids', :path => extension_path) 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/stylesheets/_zen.scss: -------------------------------------------------------------------------------- 1 | // Import the partial for Zen Grids. 2 | 3 | @import "zen/grids"; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/_init.scss: -------------------------------------------------------------------------------- 1 | // 2 | // @file 3 | // This file sets up all our variables and load all the modules we need for all 4 | // generated CSS in this project. To use it, simply: @import "init"; 5 | // 6 | 7 | // Legacy browser variables for Compass. 8 | $legacy-support-for-ie6 : false; 9 | $legacy-support-for-ie7 : false; 10 | 11 | // Set up Zen Grids. 12 | $zen-column-count : 1; 13 | $zen-gutter-width : 20px; 14 | $zen-auto-include-item-base : false; 15 | 16 | // 17 | // Import our modules. 18 | // 19 | @import "zen"; 20 | @import "zen/background"; 21 | @import "visually-hidden"; 22 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/_layout.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Layout styles. 4 | * 5 | * We use example breakpoints of 444px, 666px, 777px, 999px and 1111px. The 6 | * right breakpoints to use for your site depend on your content. 7 | */ 8 | 9 | .centered { 10 | @include zen-grid-background(); 11 | padding: { 12 | top: 1.5em; 13 | bottom: 1.5em; 14 | } 15 | margin: { 16 | left: auto; 17 | right: auto; 18 | } 19 | max-width: 1111px; 20 | } 21 | 22 | /* Set the shared properties for all grid items. */ 23 | %grid-item, 24 | .grid-item { 25 | @include zen-grid-item-base(); 26 | } 27 | 28 | /* Set the container for our grid items. */ 29 | .main { 30 | @include zen-grid-container(); 31 | } 32 | 33 | /* Horizontal navigation bar */ 34 | @media all and (min-width: 444px) { 35 | $zen-column-count: 1; 36 | $navbar-height: 5em; 37 | 38 | .main { 39 | padding-top: $navbar-height; 40 | } 41 | .grid-item__menu { 42 | @include zen-grid-item(1, 1); 43 | margin-top: -$navbar-height; 44 | height: $navbar-height; 45 | } 46 | } 47 | 48 | @media all and (min-width: 444px) and (max-width: 665px) { 49 | $zen-column-count: 2; 50 | 51 | .centered { 52 | @include zen-grid-background(); 53 | } 54 | .grid-item__content { 55 | @include zen-grid-item(2, 1); 56 | } 57 | .grid-item__aside1 { 58 | @include zen-clear(); // Clear left-floated elements (.grid-item__content) 59 | @include zen-grid-item(1, 1); 60 | } 61 | .grid-item__aside2 { 62 | @include zen-grid-item(1, 2); 63 | } 64 | } 65 | 66 | @media all and (min-width: 666px) and (max-width: 776px) { 67 | $zen-column-count: 3; 68 | 69 | .centered { 70 | @include zen-grid-background(); 71 | } 72 | .grid-item__content { 73 | @include zen-grid-item(2, 1); 74 | } 75 | .grid-item__aside1 { 76 | @include zen-grid-item(1, 1, right); // Position from the right 77 | } 78 | .grid-item__aside2 { 79 | @include zen-clear(); // Clear left-floated elements (.grid-item__content) 80 | @include zen-grid-item(2, 1); 81 | } 82 | } 83 | 84 | @media all and (min-width: 777px) and (max-width: 998px) { 85 | $zen-column-count: 3; 86 | 87 | .centered { 88 | @include zen-grid-background(); 89 | } 90 | .grid-item__content { 91 | @include zen-grid-item(2, 1); 92 | } 93 | .grid-item__aside1 { 94 | @include zen-grid-item(1, 1, right); // Position from the right 95 | } 96 | .grid-item__aside2 { 97 | @include zen-clear(right); // Clear right-floated elements (.grid-item__aside1) 98 | @include zen-grid-item(1, 1, right); 99 | } 100 | } 101 | 102 | @media all and (min-width: 999px) { 103 | $zen-column-count: 5; 104 | 105 | .centered { 106 | @include zen-grid-background(); 107 | } 108 | .grid-item__content { 109 | @include zen-grid-item(3, 2); 110 | } 111 | .grid-item__aside1 { 112 | @include zen-grid-item(1, 1); 113 | } 114 | .grid-item__aside2 { 115 | @include zen-grid-item(1, 5); 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/_modules.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Modular styles. 4 | */ 5 | 6 | 7 | html { 8 | font-size: 16px; 9 | line-height: 1.5em; 10 | } 11 | 12 | p { 13 | margin: { 14 | top: 1.5em; 15 | bottom: 1.5em; 16 | } 17 | } 18 | 19 | /* Skip link styling */ 20 | .skip-link { 21 | margin: 0; 22 | } 23 | .skip-link__link, 24 | .skip-link__link:visited { 25 | display: block; 26 | width: 100%; 27 | padding: 2px 0 3px 0; 28 | text-align: center; 29 | background-color: #666; 30 | color: #fff; 31 | } 32 | /* The skip-link link will be completely hidden until a user tabs to the link. */ 33 | @media all and (min-width: 444px) { 34 | .skip-link__link { 35 | @include visually-focusable(); 36 | } 37 | } 38 | 39 | /* Set a consistent padding around all containers */ 40 | .header, 41 | .footer { 42 | @extend %grid-item; 43 | } 44 | .grid-item, 45 | .footer { 46 | padding-top: 1.5em; 47 | } 48 | 49 | /* Source-order meta info */ 50 | header { 51 | h1, 52 | h2 { 53 | display: inline; 54 | } 55 | p { 56 | display: inline; 57 | text-transform: uppercase; 58 | font-size: 0.8em; 59 | color: #c00; 60 | } 61 | } 62 | 63 | .pull-quote { 64 | $font-size: 1.2em; 65 | 66 | @include zen-float(); 67 | @include zen-grid-flow-item(1, 2); 68 | @media all and (min-width: 999px) { 69 | @include zen-grid-flow-item(1, 3); 70 | } 71 | margin: { 72 | top: 1em*(1.5em/$font-size); 73 | } 74 | font-size: $font-size; 75 | line-height: 1em*(1.5em/$font-size); 76 | font-weight: bold; 77 | font-style: italic; 78 | } 79 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/_visually-hidden.scss: -------------------------------------------------------------------------------- 1 | // 2 | // @file 3 | // Accessibility features. 4 | // 5 | 6 | // As defined by http://snook.ca/archives/html_and_css/hiding-content-for-accessibility 7 | @mixin visually-hidden { 8 | position: absolute !important; 9 | height: 1px; 10 | width: 1px; 11 | overflow: hidden; 12 | @if $legacy-support-for-ie6 or $legacy-support-for-ie7 { 13 | clip: rect(1px 1px 1px 1px); // IE6 and IE7 use the wrong syntax. 14 | } 15 | clip: rect(1px, 1px, 1px, 1px); 16 | } 17 | 18 | // Turns off the visually-hidden effect. 19 | @mixin visually-hidden-off { 20 | position: static !important; 21 | clip: auto; 22 | height: auto; 23 | width: auto; 24 | overflow: auto; 25 | } 26 | 27 | // Makes an element visually hidden, except when it receives focus. 28 | @mixin visually-focusable { 29 | @include visually-hidden(); 30 | 31 | &:active, 32 | &:focus { 33 | @include visually-hidden-off(); 34 | } 35 | } 36 | 37 | // Placeholder styles for use with @extend. 38 | %visually-hidden { 39 | @include visually-hidden(); 40 | } 41 | %visually-hidden-off { 42 | @include visually-hidden-off(); 43 | } 44 | %visually-focusable { 45 | @extend %visually-hidden; 46 | 47 | &:active, 48 | &:focus { 49 | @extend %visually-hidden-off; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/example.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Zen Grids: sample usage 6 | 7 | 8 | 9 | 10 | 13 | 14 |
15 | 16 |
17 |

Zen Grids: sample usage

18 |
19 | 20 |
21 | 22 |
23 |
24 |

Main content

25 |

Source order: 1

26 |
27 | 28 |

Alice did not quite know what to say to this: so she helped herself to some tea and bread-and-butter, and then turned to the Dormouse, and repeated her question. ‘Why did they live at the bottom of a well?’

29 |

The Dormouse again took a minute or two to think about it, and then said, ‘It was a treacle-well.’

30 |

‘There’s no such thing!’ Alice was beginning very angrily, but the Hatter and the March Hare went ‘Sh! sh!’ and the Dormouse sulkily remarked, ‘If you can’t be civil, you’d better finish the story for yourself.’

31 |

‘No, please go on!’ Alice said very humbly; ‘I won’t interrupt again. I dare say there may be ONE.’

32 |
33 | 34 | 44 | 45 | 52 | 53 | 61 | 62 |
63 | 64 |
65 | © 2013. The small print. 66 |
67 | 68 |
69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/manifest.rb: -------------------------------------------------------------------------------- 1 | description "The Zen Grids system." 2 | 3 | stylesheet '_init.scss', :media => 'all' 4 | stylesheet '_layout.scss', :media => 'all' 5 | stylesheet '_modules.scss', :media => 'all' 6 | stylesheet '_visually-hidden.scss', :media => 'all' 7 | stylesheet 'styles.scss', :media => 'all' 8 | 9 | html 'example.html' 10 | 11 | help %Q{ 12 | Zen Grids is an intuitive, flexible grid system that leverages the natural source order of your content to make it easier to create fluid responsive designs. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts, including responsive, adaptive, fluid and fixed-width layouts. To learn more, visit: 13 | 14 | http://zengrids.com 15 | } 16 | 17 | welcome_message %Q{ 18 | You rock! The Zen Grids system is now installed on your computer. Go check out 19 | how to use the system at: 20 | 21 | http://zengrids.com 22 | 23 | It's easy! 24 | } 25 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/styles.scss: -------------------------------------------------------------------------------- 1 | // Import the initialization partial. 2 | @import "init"; 3 | 4 | // Aggregate all the stylesheets into one file. 5 | @import "layout"; 6 | @import "modules"; 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/README.txt: -------------------------------------------------------------------------------- 1 | UNIT TESTS FOR ZEN GRIDS 2 | ------------------------ 3 | 4 | To run the unit tests for Zen Grids: 5 | 6 | 1. Create a "tests" Compass project using the unit-tests pattern: 7 | 8 | compass create tests -r zen-grids --using=zen-grids/unit-tests 9 | 10 | 2. From inside the "tests" project, compare the compiled stylesheets to the 11 | previous unit test results in the test-results directory: 12 | 13 | diff -r test-results/ stylesheets/ 14 | 15 | If the unit tests were successful, the above command should report no 16 | differences. 17 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/manifest.rb: -------------------------------------------------------------------------------- 1 | description "Unit tests for the Zen Grids system." 2 | 3 | stylesheet 'sass/function-zen-direction-flip.scss', :media => 'all', :to => 'function-zen-direction-flip.scss' 4 | stylesheet 'sass/function-zen-grid-item-width.scss', :media => 'all', :to => 'function-zen-grid-item-width.scss' 5 | stylesheet 'sass/function-zen-half-gutter.scss', :media => 'all', :to => 'function-zen-half-gutter.scss' 6 | stylesheet 'sass/function-zen-unit-width.scss', :media => 'all', :to => 'function-zen-unit-width.scss' 7 | stylesheet 'sass/zen-clear.scss', :media => 'all', :to => 'zen-clear.scss' 8 | stylesheet 'sass/zen-float.scss', :media => 'all', :to => 'zen-float.scss' 9 | stylesheet 'sass/zen-grid-background.scss', :media => 'all', :to => 'zen-grid-background.scss' 10 | stylesheet 'sass/zen-grid-container.scss', :media => 'all', :to => 'zen-grid-container.scss' 11 | stylesheet 'sass/zen-grid-flow-item.scss', :media => 'all', :to => 'zen-grid-flow-item.scss' 12 | stylesheet 'sass/zen-grid-item-base.scss', :media => 'all', :to => 'zen-grid-item-base.scss' 13 | stylesheet 'sass/zen-grid-item.scss', :media => 'all', :to => 'zen-grid-item.scss' 14 | stylesheet 'sass/zen-nested-container.scss', :media => 'all', :to => 'zen-nested-container.scss' 15 | 16 | file 'test-results/function-zen-direction-flip.css' 17 | file 'test-results/function-zen-grid-item-width.css' 18 | file 'test-results/function-zen-half-gutter.css' 19 | file 'test-results/function-zen-unit-width.css' 20 | file 'test-results/zen-clear.css' 21 | file 'test-results/zen-float.css' 22 | file 'test-results/zen-grid-background.css' 23 | file 'test-results/zen-grid-container.css' 24 | file 'test-results/zen-grid-flow-item.css' 25 | file 'test-results/zen-grid-item-base.css' 26 | file 'test-results/zen-grid-item.css' 27 | file 'test-results/zen-nested-container.css' 28 | 29 | file 'README.txt' 30 | 31 | help %Q{ 32 | To run the unit tests, simply run "compass compile" and compare the generated 33 | CSS to those in the results directory. 34 | diff -r results css 35 | } 36 | 37 | welcome_message %Q{ 38 | You rock! The unit tests for the Zen Grids system are now installed. 39 | } 40 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-direction-flip.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-direction-flip() 4 | */ 5 | 6 | @import "zen"; 7 | 8 | #test-zen-direction-flip { 9 | /* Test zen-direction-flip(left) */ 10 | float: zen-direction-flip(left); 11 | 12 | /* Test zen-direction-flip(right) */ 13 | float: zen-direction-flip(right); 14 | 15 | /* Test zen-direction-flip(both) */ 16 | float: zen-direction-flip(both); 17 | 18 | /* Test zen-direction-flip(none) */ 19 | float: zen-direction-flip(none); 20 | 21 | /* Test zen-direction-flip(invalid) */ 22 | float: zen-direction-flip(invalid); 23 | } 24 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-grid-item-width.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-grid-item-width() 4 | */ 5 | 6 | @import "zen"; 7 | 8 | #test-zen-grid-item-width { 9 | /* Test zen-grid-item-width(1) with default $zen-column-count: 1 */ 10 | width: zen-grid-item-width(1); 11 | 12 | /* Test zen-grid-item-width(2) with $zen-column-count: 5 */ 13 | $zen-column-count: 5; 14 | width: zen-grid-item-width(2); 15 | $zen-column-count: 1; 16 | 17 | /* Test zen-grid-item-width(2, 5) */ 18 | width: zen-grid-item-width(2, 5); 19 | 20 | /* Test zen-grid-item-width(1) with $zen-grid-width: 100px */ 21 | $zen-grid-width: 100px; 22 | width: zen-grid-item-width(1); 23 | $zen-grid-width: 100%; 24 | 25 | /* Test zen-grid-item-width(2, 5) with $zen-grid-width: 100px */ 26 | $zen-grid-width: 100px; 27 | width: zen-grid-item-width(2, 5); 28 | $zen-grid-width: 100%; 29 | 30 | /* Test zen-grid-item-width(2, 5, $grid-width: 1000px) */ 31 | width: zen-grid-item-width(2, 5, $grid-width: 1000px); 32 | 33 | /* Test zen-grid-item-width(2, 5, $grid-width: 1000px, $box-sizing: content-box) */ 34 | width: zen-grid-item-width(2, 5, $grid-width: 1000px, $box-sizing: content-box); 35 | 36 | /* Test zen-grid-item-width(2, 5, $gutter-width: 10px, $grid-width: 1000px, $box-sizing: content-box) */ 37 | width: zen-grid-item-width(2, 5, $gutter-width: 10px, $grid-width: 1000px, $box-sizing: content-box); 38 | } 39 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-half-gutter.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-half-gutter() 4 | */ 5 | 6 | @import "zen"; 7 | 8 | #test-zen-half-gutter { 9 | /* Test zen-half-gutter() with default $zen-gutter-width: 20px */ 10 | padding-left: zen-half-gutter(); 11 | 12 | /* Test zen-half-gutter() with $zen-gutter-width: 30px */ 13 | $zen-gutter-width: 30px; 14 | padding-left: zen-half-gutter(); 15 | 16 | /* Test zen-half-gutter(10em) */ 17 | padding-left: zen-half-gutter(10em); 18 | 19 | /* Test zen-half-gutter(11em) */ 20 | padding-left: zen-half-gutter(11em); 21 | 22 | /* Test zen-half-gutter(10px) */ 23 | padding-left: zen-half-gutter(10px); 24 | 25 | /* Test zen-half-gutter(11px) */ 26 | padding-left: zen-half-gutter(11px); 27 | 28 | /* Test zen-half-gutter(11px, right) */ 29 | padding-left: zen-half-gutter(11px, right); 30 | 31 | /* Test zen-half-gutter(11px) with $zen-float-direction: right */ 32 | $zen-float-direction: right; 33 | padding-left: zen-half-gutter(11px); 34 | 35 | /* Test zen-half-gutter(11px, left) with $zen-float-direction: right */ 36 | padding-left: zen-half-gutter(11px, left); 37 | } 38 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-unit-width.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-unit-width() 4 | */ 5 | 6 | @import "zen"; 7 | 8 | #test-zen-unit-width { 9 | /* Test zen-unit-width() with default $zen-column-count: 1 */ 10 | width: zen-unit-width(); 11 | 12 | /* Test zen-unit-width() with $zen-column-count: 5 */ 13 | $zen-column-count: 5; 14 | width: zen-unit-width(); 15 | $zen-column-count: 1; 16 | 17 | /* Test zen-unit-width(5) */ 18 | width: zen-unit-width(5); 19 | 20 | /* Test zen-unit-width() with $zen-grid-width: 100px */ 21 | $zen-grid-width: 100px; 22 | width: zen-unit-width(); 23 | $zen-grid-width: 100%; 24 | 25 | /* Test zen-unit-width(5) with $zen-grid-width: 100px */ 26 | $zen-grid-width: 100px; 27 | width: zen-unit-width(5); 28 | $zen-grid-width: 100%; 29 | 30 | /* Test zen-unit-width(5, 100px) */ 31 | width: zen-unit-width(5, 100px); 32 | } 33 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-clear.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-clear() 4 | */ 5 | 6 | @import "zen"; 7 | 8 | #test-zen-clear { 9 | /* Test zen-clear() */ 10 | @include zen-clear(); 11 | 12 | /* Test zen-clear() with $zen-float-direction: right */ 13 | $zen-float-direction: right; 14 | @include zen-clear(); 15 | $zen-float-direction: left; 16 | 17 | /* Test zen-clear(left) */ 18 | @include zen-clear(left); 19 | 20 | /* Test zen-clear(left, $reverse-all-floats: TRUE) */ 21 | @include zen-clear(left, $reverse-all-floats: TRUE); 22 | 23 | /* Test zen-clear(left) with: $zen-reverse-all-floats: TRUE; */ 24 | $zen-reverse-all-floats: TRUE; 25 | @include zen-clear(left); 26 | } 27 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-float.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-float() 4 | */ 5 | 6 | @import "zen"; 7 | 8 | #test-zen-float { 9 | /* Test zen-float() */ 10 | @include zen-float(); 11 | 12 | /* Test zen-float() with $zen-float-direction: right */ 13 | $zen-float-direction: right; 14 | @include zen-float(); 15 | $zen-float-direction: left; 16 | 17 | /* Test zen-float(left) */ 18 | @include zen-float(left); 19 | 20 | /* Test zen-float(left, $reverse-all-floats: TRUE) */ 21 | @include zen-float(left, $reverse-all-floats: TRUE); 22 | 23 | /* Test zen-float(left) with: $zen-reverse-all-floats: TRUE; */ 24 | $zen-reverse-all-floats: TRUE; 25 | @include zen-float(left); 26 | } 27 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-background.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-grid-background() 4 | */ 5 | 6 | @import "zen/background"; 7 | 8 | #test-zen-grid-background { 9 | /* Test zen-grid-background() with 1 column grid and 20px gutter */ 10 | $zen-grid-numbers: top; 11 | @include zen-grid-background(); 12 | $zen-grid-numbers: both; 13 | 14 | // Turn off numbers for all other tests. 15 | $zen-grid-numbers: none; 16 | 17 | /* Test zen-grid-background() with 12 column grid and 20px gutter */ 18 | $zen-column-count: 12; 19 | @include zen-grid-background(); 20 | $zen-column-count: 1; 21 | 22 | /* Test zen-grid-background(), 5 column grid, 10% gutter and black grid color */ 23 | $zen-column-count: 5; 24 | $zen-gutter-width: 10%; 25 | $zen-grid-color: #000; 26 | @include zen-grid-background(); 27 | $zen-column-count: 1; 28 | $zen-gutter-width: 20px; 29 | $zen-grid-color: rgba(#ffdede, 0.8); 30 | 31 | /* Test zen-grid-background() with 5 column grid and 40px gutter */ 32 | $zen-column-count: 5; 33 | $zen-gutter-width: 40px; 34 | @include zen-grid-background(); 35 | $zen-column-count: 1; 36 | $zen-gutter-width: 20px; 37 | 38 | /* Test zen-grid-background(), 5 column grid and 10% gutter and $zen-reverse-all-floats */ 39 | $zen-column-count: 5; 40 | $zen-gutter-width: 10%; 41 | $zen-reverse-all-floats: true; 42 | @include zen-grid-background(); 43 | $zen-column-count: 1; 44 | $zen-gutter-width: 20px; 45 | $zen-reverse-all-floats: false; 46 | 47 | /* Test zen-grid-background() with 5 column grid and 40px gutter and $zen-reverse-all-floats */ 48 | $zen-column-count: 5; 49 | $zen-gutter-width: 40px; 50 | $zen-reverse-all-floats: true; 51 | @include zen-grid-background(); 52 | $zen-column-count: 1; 53 | $zen-gutter-width: 20px; 54 | $zen-reverse-all-floats: false; 55 | 56 | /* Test zen-grid-background() with $zen-grid-width: 1000px, 5 column grid and 40px gutter */ 57 | $zen-grid-width: 1000px; 58 | $zen-column-count: 5; 59 | $zen-gutter-width: 40px; 60 | @include zen-grid-background(); 61 | $zen-grid-width: 100%; 62 | $zen-column-count: 1; 63 | $zen-gutter-width: 20px; 64 | 65 | /* Test zen-grid-background() with all 24 grid numbers */ 66 | $zen-column-count: 24; 67 | @include zen-grid-background(); 68 | $zen-column-count: 1; 69 | } 70 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-container.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-grid-container() 4 | */ 5 | 6 | @import "zen"; 7 | 8 | #test-zen-grid-container { 9 | /* Test zen-grid-container() */ 10 | @include zen-grid-container(); 11 | } 12 | 13 | #test-zen-grid-container-2 { 14 | /* Test zen-grid-container() with $legacy-support-for-ie7: true */ 15 | $legacy-support-for-ie7: true; 16 | @include zen-grid-container(); 17 | $legacy-support-for-ie7: false; 18 | } 19 | 20 | #test-zen-grid-container-3 { 21 | /* Test zen-grid-container() with $legacy-support-for-ie6: true */ 22 | $legacy-support-for-ie6: true; 23 | $legacy-support-for-ie7: true; 24 | @include zen-grid-container(); 25 | $legacy-support-for-ie6: false; 26 | $legacy-support-for-ie7: false; 27 | } 28 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-flow-item.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-grid-flow-item() 4 | */ 5 | 6 | @import "zen"; 7 | 8 | #test-zen-grid-flow-item { 9 | /* Test zen-grid-flow-item(1) without setting $column-count */ 10 | @include zen-grid-flow-item(1); 11 | 12 | /* Test zen-grid-flow-item(1, 4) with 20px gutter */ 13 | @include zen-grid-flow-item(1, 4); 14 | 15 | /* Test zen-grid-flow-item(1, 4) with 15px gutter */ 16 | $zen-gutter-width: 15px; 17 | @include zen-grid-flow-item(1, 4); 18 | $zen-gutter-width: 20px; 19 | 20 | /* Test zen-grid-flow-item(1) with 5 columns, 20px gutter and $zen-grid-width: 1000px */ 21 | $zen-column-count: 5; 22 | $zen-grid-width: 1000px; 23 | @include zen-grid-flow-item(1); 24 | $zen-column-count: 1; 25 | $zen-grid-width: 100%; 26 | 27 | /* Test zen-grid-flow-item(1) with 5 columns, 20px gutter, $zen-grid-width: 1000px, $alpha-gutter: true and $omega-gutter: false */ 28 | $zen-column-count: 5; 29 | $zen-grid-width: 1000px; 30 | @include zen-grid-flow-item(1, $alpha-gutter: true, $omega-gutter: false); 31 | $zen-column-count: 1; 32 | $zen-grid-width: 100%; 33 | 34 | /* Test zen-grid-flow-item(1) with 5 columns, 20px gutter, $zen-grid-width: 1000px and $omega-gutter: false */ 35 | $zen-column-count: 5; 36 | $zen-grid-width: 1000px; 37 | @include zen-grid-flow-item(1, $omega-gutter: false); 38 | $zen-column-count: 1; 39 | $zen-grid-width: 100%; 40 | 41 | /* Test zen-grid-flow-item(1, 4) with 15px gutter and $zen-float-direction: right */ 42 | $zen-gutter-width: 15px; 43 | $zen-float-direction: right; 44 | @include zen-grid-flow-item(1, 4); 45 | $zen-gutter-width: 20px; 46 | $zen-float-direction: left; 47 | 48 | /* Test zen-grid-flow-item(1, 4) with 15px gutter and $alpha-gutter: true */ 49 | $zen-gutter-width: 15px; 50 | @include zen-grid-flow-item(1, 4, $alpha-gutter: true); 51 | $zen-gutter-width: 20px; 52 | 53 | /* Test zen-grid-flow-item(1, 4) with 15px gutter and $omega-gutter: false */ 54 | $zen-gutter-width: 15px; 55 | @include zen-grid-flow-item(1, 4, $omega-gutter: false); 56 | $zen-gutter-width: 20px; 57 | 58 | /* Test zen-grid-flow-item(3, 4) with 20px gutter and $alpha-gutter: true */ 59 | @include zen-grid-flow-item(3, 4, $alpha-gutter: true); 60 | 61 | /* Test zen-grid-flow-item(3, 4) with 20px gutter and $omega-gutter: false */ 62 | @include zen-grid-flow-item(3, 4, $omega-gutter: false); 63 | 64 | /* Test zen-grid-flow-item(1, 4) with 15px gutter, $zen-float-direction: right and $alpha-gutter: true */ 65 | $zen-gutter-width: 15px; 66 | $zen-float-direction: right; 67 | @include zen-grid-flow-item(1, 4, $alpha-gutter: true); 68 | $zen-gutter-width: 20px; 69 | $zen-float-direction: left; 70 | 71 | /* Test zen-grid-flow-item(1, 4) with $zen-box-sizing: content-box and 10% gutter */ 72 | $zen-gutter-width: 10%; 73 | $zen-box-sizing: content-box; 74 | @include zen-grid-flow-item(1, 4); 75 | $zen-gutter-width: 20px; 76 | $zen-box-sizing: border-box; 77 | 78 | /* Test zen-grid-flow-item(1, 4) with $zen-auto-include-flow-item-base: false */ 79 | $zen-auto-include-flow-item-base: false; 80 | @include zen-grid-flow-item(1, 4); 81 | } 82 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-item-base.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-grid-item-base() 4 | */ 5 | 6 | @import "zen"; 7 | 8 | #test-zen-grid-item-base { 9 | /* Test zen-grid-item-base() */ 10 | @include zen-grid-item-base(); 11 | 12 | /* Test zen-grid-item-base() with $zen-box-sizing: content-box */ 13 | $zen-box-sizing: content-box; 14 | @include zen-grid-item-base(); 15 | $zen-box-sizing: border-box; 16 | 17 | /* Test zen-grid-item-base() with $legacy-support-for-ie7: true */ 18 | $legacy-support-for-ie7: true; 19 | @include zen-grid-item-base(); 20 | $legacy-support-for-ie7: false; 21 | 22 | /* Test zen-grid-item-base() with $box-sizing-polyfill-path: "/boxsizing.htc" and $legacy-support-for-ie7: true */ 23 | $box-sizing-polyfill-path: "/boxsizing.htc"; 24 | $legacy-support-for-ie7: true; 25 | @include zen-grid-item-base(); 26 | $box-sizing-polyfill-path: ""; 27 | $legacy-support-for-ie7: false; 28 | 29 | /* Test zen-grid-item-base() with $box-sizing-polyfill-path: "/boxsizing.htc" and $legacy-support-for-ie6: true */ 30 | $box-sizing-polyfill-path: "/boxsizing.htc"; 31 | $legacy-support-for-ie6: true; 32 | @include zen-grid-item-base(); 33 | $box-sizing-polyfill-path: ""; 34 | $legacy-support-for-ie6: false; 35 | 36 | /* Test zen-grid-item-base() with $zen-gutter-width: 15px */ 37 | $zen-gutter-width: 15px; 38 | @include zen-grid-item-base(); 39 | $zen-gutter-width: 20px; 40 | 41 | /* Test zen-grid-item-base() with $zen-gutter-width: 15px and $zen-float-direction: right */ 42 | $zen-gutter-width: 15px; 43 | $zen-float-direction: right; 44 | @include zen-grid-item-base(); 45 | $zen-gutter-width: 20px; 46 | $zen-float-direction: left; 47 | 48 | /* Test zen-grid-item-base() with $zen-gutter-width: 15px and $zen-reverse-all-floats: true */ 49 | $zen-gutter-width: 15px; 50 | $zen-reverse-all-floats: true; 51 | @include zen-grid-item-base(); 52 | $zen-gutter-width: 20px; 53 | $zen-reverse-all-floats: false; 54 | } 55 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-item.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-grid-item() 4 | */ 5 | 6 | @import "zen"; 7 | 8 | #test-zen-grid-item { 9 | /* Test zen-grid-item(6, 4) with 12 column grid and 20px gutter */ 10 | $zen-column-count: 12; 11 | @include zen-grid-item(6, 4); 12 | $zen-column-count: 1; 13 | 14 | /* Test zen-grid-item(3, 3) with box-sizing: content-box, 5 column grid and 10% gutter */ 15 | $zen-column-count: 5; 16 | $zen-gutter-width: 10%; 17 | $zen-box-sizing: content-box; 18 | @include zen-grid-item(3, 3); 19 | $zen-column-count: 1; 20 | $zen-gutter-width: 20px; 21 | $zen-box-sizing: border-box; 22 | 23 | /* Turn off $zen-auto-include-item-base */ 24 | $zen-auto-include-item-base: false; 25 | 26 | /* Test zen-grid-item(3, 3) with 5 column grid and 40px gutter */ 27 | $zen-column-count: 5; 28 | $zen-gutter-width: 40px; 29 | @include zen-grid-item(3, 3); 30 | $zen-column-count: 1; 31 | $zen-gutter-width: 20px; 32 | 33 | /* Test zen-grid-item(3, 3, right) with 5 column grid and 40px gutter */ 34 | $zen-column-count: 5; 35 | $zen-gutter-width: 40px; 36 | @include zen-grid-item(3, 3, right); 37 | $zen-column-count: 1; 38 | $zen-gutter-width: 20px; 39 | 40 | /* Test zen-grid-item(3, 3) with 5 column grid and 40px gutter and $zen-reverse-all-floats */ 41 | $zen-column-count: 5; 42 | $zen-gutter-width: 40px; 43 | $zen-reverse-all-floats: true; 44 | @include zen-grid-item(3, 3); 45 | $zen-column-count: 1; 46 | $zen-gutter-width: 20px; 47 | $zen-reverse-all-floats: false; 48 | 49 | /* Test zen-grid-item(3, 3, right) with 5 column grid and 40px gutter and $zen-reverse-all-floats */ 50 | $zen-column-count: 5; 51 | $zen-gutter-width: 40px; 52 | $zen-reverse-all-floats: true; 53 | @include zen-grid-item(3, 3, right); 54 | $zen-column-count: 1; 55 | $zen-gutter-width: 20px; 56 | $zen-reverse-all-floats: false; 57 | 58 | /* Test zen-grid-item(3, 2.5) with 5 column grid and 40px gutter */ 59 | $zen-column-count: 5; 60 | $zen-gutter-width: 40px; 61 | @include zen-grid-item(3, 2.5); 62 | $zen-column-count: 1; 63 | $zen-gutter-width: 20px; 64 | 65 | /* Test zen-grid-item(3, 3) with $zen-grid-width: 1000px, 5 column grid and 40px gutter */ 66 | $zen-grid-width: 1000px; 67 | $zen-column-count: 5; 68 | $zen-gutter-width: 40px; 69 | @include zen-grid-item(3, 3); 70 | $zen-grid-width: 100%; 71 | $zen-column-count: 1; 72 | $zen-gutter-width: 20px; 73 | } 74 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-nested-container.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-nested-container() 4 | */ 5 | 6 | @import "zen"; 7 | 8 | #test-zen-nested-container { 9 | /* Test zen-nested-container() */ 10 | @include zen-nested-container(); 11 | } 12 | 13 | #test-zen-nested-container-2 { 14 | /* Test zen-nested-container() with $legacy-support-for-ie7: true */ 15 | $legacy-support-for-ie7: true; 16 | @include zen-nested-container(); 17 | $legacy-support-for-ie7: false; 18 | } 19 | 20 | #test-zen-nested-container-3 { 21 | /* Test zen-nested-container() with $legacy-support-for-ie6: true */ 22 | $legacy-support-for-ie6: true; 23 | $legacy-support-for-ie7: true; 24 | @include zen-nested-container(); 25 | $legacy-support-for-ie6: false; 26 | $legacy-support-for-ie7: false; 27 | } 28 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-direction-flip.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-direction-flip() 4 | */ 5 | #test-zen-direction-flip { 6 | /* Test zen-direction-flip(left) */ 7 | float: right; 8 | /* Test zen-direction-flip(right) */ 9 | float: left; 10 | /* Test zen-direction-flip(both) */ 11 | float: both; 12 | /* Test zen-direction-flip(none) */ 13 | float: none; 14 | /* Test zen-direction-flip(invalid) */ 15 | float: both; 16 | } 17 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-grid-item-width.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-grid-item-width() 4 | */ 5 | #test-zen-grid-item-width { 6 | /* Test zen-grid-item-width(1) with default $zen-column-count: 1 */ 7 | width: 100%; 8 | /* Test zen-grid-item-width(2) with $zen-column-count: 5 */ 9 | width: 40%; 10 | /* Test zen-grid-item-width(2, 5) */ 11 | width: 40%; 12 | /* Test zen-grid-item-width(1) with $zen-grid-width: 100px */ 13 | width: 100px; 14 | /* Test zen-grid-item-width(2, 5) with $zen-grid-width: 100px */ 15 | width: 40px; 16 | /* Test zen-grid-item-width(2, 5, $grid-width: 1000px) */ 17 | width: 400px; 18 | /* Test zen-grid-item-width(2, 5, $grid-width: 1000px, $box-sizing: content-box) */ 19 | width: 380px; 20 | /* Test zen-grid-item-width(2, 5, $gutter-width: 10px, $grid-width: 1000px, $box-sizing: content-box) */ 21 | width: 390px; 22 | } 23 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-half-gutter.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-half-gutter() 4 | */ 5 | #test-zen-half-gutter { 6 | /* Test zen-half-gutter() with default $zen-gutter-width: 20px */ 7 | padding-left: 10px; 8 | /* Test zen-half-gutter() with $zen-gutter-width: 30px */ 9 | padding-left: 15px; 10 | /* Test zen-half-gutter(10em) */ 11 | padding-left: 5em; 12 | /* Test zen-half-gutter(11em) */ 13 | padding-left: 5.5em; 14 | /* Test zen-half-gutter(10px) */ 15 | padding-left: 5px; 16 | /* Test zen-half-gutter(11px) */ 17 | padding-left: 5px; 18 | /* Test zen-half-gutter(11px, right) */ 19 | padding-left: 6px; 20 | /* Test zen-half-gutter(11px) with $zen-float-direction: right */ 21 | padding-left: 5px; 22 | /* Test zen-half-gutter(11px, left) with $zen-float-direction: right */ 23 | padding-left: 6px; 24 | } 25 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-unit-width.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-unit-width() 4 | */ 5 | #test-zen-unit-width { 6 | /* Test zen-unit-width() with default $zen-column-count: 1 */ 7 | width: 100%; 8 | /* Test zen-unit-width() with $zen-column-count: 5 */ 9 | width: 20%; 10 | /* Test zen-unit-width(5) */ 11 | width: 20%; 12 | /* Test zen-unit-width() with $zen-grid-width: 100px */ 13 | width: 100px; 14 | /* Test zen-unit-width(5) with $zen-grid-width: 100px */ 15 | width: 20px; 16 | /* Test zen-unit-width(5, 100px) */ 17 | width: 20px; 18 | } 19 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-clear.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-clear() 4 | */ 5 | #test-zen-clear { 6 | /* Test zen-clear() */ 7 | clear: left; 8 | /* Test zen-clear() with $zen-float-direction: right */ 9 | clear: right; 10 | /* Test zen-clear(left) */ 11 | clear: left; 12 | /* Test zen-clear(left, $reverse-all-floats: TRUE) */ 13 | clear: right; 14 | /* Test zen-clear(left) with: $zen-reverse-all-floats: TRUE; */ 15 | clear: right; 16 | } 17 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-float.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-float() 4 | */ 5 | #test-zen-float { 6 | /* Test zen-float() */ 7 | float: left; 8 | /* Test zen-float() with $zen-float-direction: right */ 9 | float: right; 10 | /* Test zen-float(left) */ 11 | float: left; 12 | /* Test zen-float(left, $reverse-all-floats: TRUE) */ 13 | float: right; 14 | /* Test zen-float(left) with: $zen-reverse-all-floats: TRUE; */ 15 | float: right; 16 | } 17 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-container.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-grid-container() 4 | */ 5 | #test-zen-grid-container { 6 | /* Test zen-grid-container() */ 7 | } 8 | #test-zen-grid-container:before, #test-zen-grid-container:after { 9 | content: ""; 10 | display: table; 11 | } 12 | #test-zen-grid-container:after { 13 | clear: both; 14 | } 15 | 16 | #test-zen-grid-container-2 { 17 | /* Test zen-grid-container() with $legacy-support-for-ie7: true */ 18 | *position: relative; 19 | *zoom: 1; 20 | } 21 | #test-zen-grid-container-2:before, #test-zen-grid-container-2:after { 22 | content: ""; 23 | display: table; 24 | } 25 | #test-zen-grid-container-2:after { 26 | clear: both; 27 | } 28 | 29 | #test-zen-grid-container-3 { 30 | /* Test zen-grid-container() with $legacy-support-for-ie6: true */ 31 | *position: relative; 32 | *zoom: 1; 33 | } 34 | #test-zen-grid-container-3:before, #test-zen-grid-container-3:after { 35 | content: ""; 36 | display: table; 37 | } 38 | #test-zen-grid-container-3:after { 39 | clear: both; 40 | } 41 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-item-base.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-grid-item-base() 4 | */ 5 | #test-zen-grid-item-base { 6 | /* Test zen-grid-item-base() */ 7 | padding-left: 10px; 8 | padding-right: 10px; 9 | -moz-box-sizing: border-box; 10 | -webkit-box-sizing: border-box; 11 | -ms-box-sizing: border-box; 12 | box-sizing: border-box; 13 | word-wrap: break-word; 14 | /* Test zen-grid-item-base() with $zen-box-sizing: content-box */ 15 | padding-left: 10px; 16 | padding-right: 10px; 17 | border-left: 0 !important; 18 | border-right: 0 !important; 19 | word-wrap: break-word; 20 | /* Test zen-grid-item-base() with $legacy-support-for-ie7: true */ 21 | padding-left: 10px; 22 | padding-right: 10px; 23 | -moz-box-sizing: border-box; 24 | -webkit-box-sizing: border-box; 25 | -ms-box-sizing: border-box; 26 | box-sizing: border-box; 27 | word-wrap: break-word; 28 | /* Test zen-grid-item-base() with $box-sizing-polyfill-path: "/boxsizing.htc" and $legacy-support-for-ie7: true */ 29 | padding-left: 10px; 30 | padding-right: 10px; 31 | -moz-box-sizing: border-box; 32 | -webkit-box-sizing: border-box; 33 | -ms-box-sizing: border-box; 34 | box-sizing: border-box; 35 | word-wrap: break-word; 36 | *behavior: url("/boxsizing.htc"); 37 | /* Test zen-grid-item-base() with $box-sizing-polyfill-path: "/boxsizing.htc" and $legacy-support-for-ie6: true */ 38 | padding-left: 10px; 39 | padding-right: 10px; 40 | -moz-box-sizing: border-box; 41 | -webkit-box-sizing: border-box; 42 | -ms-box-sizing: border-box; 43 | box-sizing: border-box; 44 | word-wrap: break-word; 45 | *behavior: url("/boxsizing.htc"); 46 | _display: inline; 47 | _overflow: hidden; 48 | _overflow-y: visible; 49 | /* Test zen-grid-item-base() with $zen-gutter-width: 15px */ 50 | padding-left: 7px; 51 | padding-right: 8px; 52 | -moz-box-sizing: border-box; 53 | -webkit-box-sizing: border-box; 54 | -ms-box-sizing: border-box; 55 | box-sizing: border-box; 56 | word-wrap: break-word; 57 | /* Test zen-grid-item-base() with $zen-gutter-width: 15px and $zen-float-direction: right */ 58 | padding-left: 8px; 59 | padding-right: 7px; 60 | -moz-box-sizing: border-box; 61 | -webkit-box-sizing: border-box; 62 | -ms-box-sizing: border-box; 63 | box-sizing: border-box; 64 | word-wrap: break-word; 65 | /* Test zen-grid-item-base() with $zen-gutter-width: 15px and $zen-reverse-all-floats: true */ 66 | padding-left: 8px; 67 | padding-right: 7px; 68 | -moz-box-sizing: border-box; 69 | -webkit-box-sizing: border-box; 70 | -ms-box-sizing: border-box; 71 | box-sizing: border-box; 72 | word-wrap: break-word; 73 | } 74 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-item.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-grid-item() 4 | */ 5 | #test-zen-grid-item { 6 | /* Test zen-grid-item(6, 4) with 12 column grid and 20px gutter */ 7 | float: left; 8 | width: 50%; 9 | margin-left: 25%; 10 | margin-right: -75%; 11 | padding-left: 10px; 12 | padding-right: 10px; 13 | -moz-box-sizing: border-box; 14 | -webkit-box-sizing: border-box; 15 | -ms-box-sizing: border-box; 16 | box-sizing: border-box; 17 | word-wrap: break-word; 18 | /* Test zen-grid-item(3, 3) with box-sizing: content-box, 5 column grid and 10% gutter */ 19 | float: left; 20 | width: 50%; 21 | margin-left: 40%; 22 | margin-right: -100%; 23 | padding-left: 5%; 24 | padding-right: 5%; 25 | border-left: 0 !important; 26 | border-right: 0 !important; 27 | word-wrap: break-word; 28 | /* Turn off $zen-auto-include-item-base */ 29 | /* Test zen-grid-item(3, 3) with 5 column grid and 40px gutter */ 30 | float: left; 31 | width: 60%; 32 | margin-left: 40%; 33 | margin-right: -100%; 34 | /* Test zen-grid-item(3, 3, right) with 5 column grid and 40px gutter */ 35 | float: right; 36 | width: 60%; 37 | margin-right: 40%; 38 | margin-left: -100%; 39 | /* Test zen-grid-item(3, 3) with 5 column grid and 40px gutter and $zen-reverse-all-floats */ 40 | float: right; 41 | width: 60%; 42 | margin-right: 40%; 43 | margin-left: -100%; 44 | /* Test zen-grid-item(3, 3, right) with 5 column grid and 40px gutter and $zen-reverse-all-floats */ 45 | float: left; 46 | width: 60%; 47 | margin-left: 40%; 48 | margin-right: -100%; 49 | /* Test zen-grid-item(3, 2.5) with 5 column grid and 40px gutter */ 50 | float: left; 51 | width: 60%; 52 | margin-left: 30%; 53 | margin-right: -90%; 54 | /* Test zen-grid-item(3, 3) with $zen-grid-width: 1000px, 5 column grid and 40px gutter */ 55 | float: left; 56 | width: 600px; 57 | margin-left: 400px; 58 | margin-right: -1000px; 59 | } 60 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-nested-container.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Test zen-nested-container() 4 | */ 5 | #test-zen-nested-container { 6 | /* Test zen-nested-container() */ 7 | padding-left: 0; 8 | padding-right: 0; 9 | } 10 | 11 | #test-zen-nested-container-2 { 12 | /* Test zen-nested-container() with $legacy-support-for-ie7: true */ 13 | padding-left: 0; 14 | padding-right: 0; 15 | } 16 | 17 | #test-zen-nested-container-3 { 18 | /* Test zen-nested-container() with $legacy-support-for-ie6: true */ 19 | padding-left: 0; 20 | padding-right: 0; 21 | } 22 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass-extensions/zen-grids/zen-grids.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | 3 | Gem::Specification.new do |s| 4 | s.name = 'zen-grids' 5 | 6 | s.summary = %q{A Compass plugin for Zen Grids, a fluid responsive grid system} 7 | s.description = %q{Zen Grids is an intuitive, flexible grid system that leverages the natural source order of your content to make it easier to create fluid responsive designs. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts, including responsive, adaptive, fluid and fixed-width layouts.} 8 | 9 | s.homepage = 'http://zengrids.com' 10 | s.license = 'GPL-2' 11 | s.rubyforge_project = 12 | 13 | s.version = '1.4' 14 | s.date = '2013-04-02' 15 | 16 | s.authors = ['John Albin Wilkins'] 17 | s.email = 'virtually.johnalbin@gmail.com' 18 | 19 | s.add_runtime_dependency('sass', ">= 3.1") 20 | 21 | s.files = %w[ 22 | LICENSE.txt 23 | README.txt 24 | lib/zen-grids.rb 25 | stylesheets/_zen.scss 26 | stylesheets/zen/_background.scss 27 | stylesheets/zen/_grids.scss 28 | templates/project/_init.scss 29 | templates/project/_layout.scss 30 | templates/project/_modules.scss 31 | templates/project/_visually-hidden.scss 32 | templates/project/example.html 33 | templates/project/manifest.rb 34 | templates/project/styles.scss 35 | templates/unit-tests/manifest.rb 36 | templates/unit-tests/README.txt 37 | templates/unit-tests/sass/function-zen-direction-flip.scss 38 | templates/unit-tests/sass/function-zen-grid-item-width.scss 39 | templates/unit-tests/sass/function-zen-half-gutter.scss 40 | templates/unit-tests/sass/function-zen-unit-width.scss 41 | templates/unit-tests/sass/zen-clear.scss 42 | templates/unit-tests/sass/zen-float.scss 43 | templates/unit-tests/sass/zen-grid-background.scss 44 | templates/unit-tests/sass/zen-grid-container.scss 45 | templates/unit-tests/sass/zen-grid-flow-item.scss 46 | templates/unit-tests/sass/zen-grid-item-base.scss 47 | templates/unit-tests/sass/zen-grid-item.scss 48 | templates/unit-tests/sass/zen-nested-container.scss 49 | templates/unit-tests/test-results/function-zen-direction-flip.css 50 | templates/unit-tests/test-results/function-zen-grid-item-width.css 51 | templates/unit-tests/test-results/function-zen-half-gutter.css 52 | templates/unit-tests/test-results/function-zen-unit-width.css 53 | templates/unit-tests/test-results/zen-clear.css 54 | templates/unit-tests/test-results/zen-float.css 55 | templates/unit-tests/test-results/zen-grid-background.css 56 | templates/unit-tests/test-results/zen-grid-container.css 57 | templates/unit-tests/test-results/zen-grid-flow-item.css 58 | templates/unit-tests/test-results/zen-grid-item-base.css 59 | templates/unit-tests/test-results/zen-grid-item.css 60 | templates/unit-tests/test-results/zen-nested-container.css 61 | zen-grids.gemspec 62 | ] 63 | end 64 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass/README.txt: -------------------------------------------------------------------------------- 1 | ABOUT SASS AND COMPASS 2 | ---------------------- 3 | 4 | This directory includes Sass versions of Zen's CSS files. 5 | 6 | Sass is a language that is just normal CSS plus some extra features, like 7 | variables, nested rules, math, mixins, etc. If your stylesheets are written in 8 | Sass, helper applications can convert them to standard CSS so that you can 9 | include the CSS in the normal ways with your theme. 10 | 11 | To learn more about Sass, visit: http://sass-lang.com 12 | 13 | Compass is a helper library for Sass. It includes libraries of shared mixins, a 14 | package manager to add additional extension libraries, and an executable that 15 | can easily convert Sass files into CSS. 16 | 17 | To learn more about Compass, visit: http://compass-style.org 18 | 19 | 20 | DEVELOPING WITH SASS AND COMPASS 21 | -------------------------------- 22 | 23 | To automatically generate the CSS versions of the scss while you are doing theme 24 | development, you'll need to tell Compass to "watch" the sass directory so that 25 | any time a .scss file is changed it will automatically place a generated CSS 26 | file into your sub-theme's css directory: 27 | 28 | compass watch 29 | 30 | If you are already in the root of your sub-theme's directory, you can simply 31 | type: compass watch 32 | 33 | While using generated CSS with Firebug, the line numbers it reports will be 34 | wrong since it will be showing the generated CSS file's line numbers and not the 35 | line numbers of the source Sass files. To correct this problem, you can install 36 | the FireSass plug-in into Firefox and then edit your sub-theme's config.rb file 37 | to set: firesass = true 38 | https://addons.mozilla.org/en-US/firefox/addon/firesass-for-firebug/ 39 | 40 | 41 | MOVING YOUR CSS TO PRODUCTION 42 | ----------------------------- 43 | 44 | Once you have finished your sub-theme development and are ready to move your CSS 45 | files to your production server, you'll need to tell sass to update all your CSS 46 | files and to compress them (to improve performance). Note: the Compass command 47 | will only generate CSS for .scss files that have recently changed; in order to 48 | force it to regenerate all the CSS files, you can use the Compass' clean command 49 | to delete all the generated CSS files. 50 | 51 | - Delete all CSS files by running: compass clean 52 | - Edit the config.rb file in your theme's directory and uncomment this line by 53 | deleting the "#" from the beginning: 54 | #environment = :production 55 | - Regenerate all the CSS files by running: compass compile 56 | 57 | And don't forget to turn on Drupal's CSS aggregation. :-) 58 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass/_mixins.scss: -------------------------------------------------------------------------------- 1 | // @file 2 | // Custom sass mixins 3 | // 4 | // Define the custom mixins for your project here. 5 | // http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#defining_a_mixin 6 | 7 | // Makes an element visually hidden, but accessible. 8 | // @see http://snook.ca/archives/html_and_css/hiding-content-for-accessibility 9 | @mixin element-invisible { 10 | position: absolute !important; 11 | height: 1px; 12 | width: 1px; 13 | overflow: hidden; 14 | @if $legacy-support-for-ie6 or $legacy-support-for-ie7 { 15 | clip: rect(1px 1px 1px 1px); // IE6 and IE7 use the wrong syntax. 16 | } 17 | clip: rect(1px, 1px, 1px, 1px); 18 | } 19 | 20 | // Turns off the element-invisible effect. 21 | @mixin element-invisible-off { 22 | position: static !important; 23 | clip: auto; 24 | height: auto; 25 | width: auto; 26 | overflow: auto; 27 | } 28 | 29 | // Makes an element visually hidden by default, but visible when focused. 30 | @mixin element-focusable { 31 | @include element-invisible; 32 | 33 | &:active, 34 | &:focus { 35 | @include element-invisible-off; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass/_normalize-rtl.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Normalize-rtl.scss is the RTL language extension of normalize.scss 4 | */ 5 | 6 | /** 7 | * Lists 8 | */ 9 | dd { 10 | margin: 0 $indent-amount 0 0; 11 | } 12 | 13 | /* Address paddings set differently in IE 6/7. */ 14 | menu, 15 | ol, 16 | ul { 17 | padding: 0 $indent-amount 0 0; 18 | } 19 | 20 | @if $legacy-support-for-ie6 or $legacy-support-for-ie7 { 21 | /** 22 | * Forms 23 | */ 24 | legend { 25 | /* Correct alignment displayed oddly in IE 6/7. */ 26 | *margin-left: 0; 27 | *margin-right: -7px; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass/_print.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Print styling 4 | * 5 | * We provide some sane print styling for Drupal using Zen's layout method. 6 | */ 7 | 8 | /** 9 | * By importing this CSS file as media "all", we allow this print file to be 10 | * aggregated with other stylesheets, for improved front-end performance. 11 | */ 12 | @media print { 13 | 14 | /* Underline all links. */ 15 | a:link, 16 | a:visited { 17 | text-decoration: underline !important; 18 | 19 | /* Don't underline header. */ 20 | &.header__site-link { 21 | text-decoration: none !important; 22 | } 23 | } 24 | 25 | #content { 26 | /* Add visible URL after links. */ 27 | a[href]:after { 28 | content: " (" attr(href) ")"; 29 | font-weight: normal; 30 | font-size: $base-font-size; 31 | } 32 | 33 | /* Only display useful links. */ 34 | a[href^="javascript:"]:after, 35 | a[href^="#"]:after { 36 | content: ""; 37 | } 38 | 39 | /* Add visible title after abbreviations. */ 40 | abbr[title]:after { 41 | content: " (" attr(title) ")"; 42 | } 43 | } 44 | 45 | /* Un-float the content. */ 46 | #content { 47 | float: none !important; 48 | width: 100% !important; 49 | margin: 0 !important; 50 | padding: 0 !important; 51 | } 52 | 53 | /* Turn off any background colors or images. */ 54 | body, 55 | #page, 56 | #main, 57 | #content { 58 | color: #000; 59 | background-color: transparent !important; 60 | background-image: none !important; 61 | } 62 | 63 | /* Hide sidebars and nav elements. */ 64 | #skip-link, 65 | #toolbar, 66 | #navigation, 67 | .region-sidebar-first, 68 | .region-sidebar-second, 69 | #footer, 70 | .breadcrumb, 71 | .tabs, 72 | .action-links, 73 | .links, 74 | .book-navigation, 75 | .forum-topic-navigation, 76 | .pager, 77 | .feed-icons { 78 | visibility: hidden; 79 | display: none; 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass/components/_misc-rtl.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * RTL companion for the modular-styles.css file. 4 | */ 5 | 6 | /** 7 | * Branding header. 8 | */ 9 | 10 | /* Wrapping link for logo. */ 11 | .header__logo { 12 | float: right; 13 | } 14 | 15 | /* The secondary menu (login, etc.) */ 16 | .header__secondary-menu { 17 | float: left; 18 | } 19 | 20 | /** 21 | * Navigation bar. 22 | */ 23 | 24 | /* Main menu and secondary menu links and menu block links. */ 25 | #navigation { 26 | .links, 27 | .menu { 28 | text-align: right; 29 | 30 | li { 31 | /* A simple method to get navigation links to appear in one line. */ 32 | float: right; 33 | padding: 0 0 0 10px; 34 | } 35 | } 36 | } 37 | 38 | /** 39 | * Messages. 40 | */ 41 | .messages { 42 | padding: 10px 50px 10px 10px; 43 | background-position: 99% 8px; 44 | } 45 | .messages--status { 46 | @extend .messages; 47 | } 48 | .messages--warning { 49 | @extend .messages; 50 | } 51 | .messages--error { 52 | @extend .messages; 53 | } 54 | 55 | /** 56 | * Tabs. 57 | */ 58 | %tabs__tab { 59 | float: right; 60 | } 61 | .tabs-primary__tab { 62 | @extend %tabs__tab; 63 | } 64 | .tabs-primary__tab.is-active { 65 | @extend .tabs-primary__tab; 66 | } 67 | .tabs-secondary__tab, 68 | .tabs-secondary__tab.is-active { 69 | @extend %tabs__tab; 70 | } 71 | 72 | /** 73 | * Inline styles. 74 | */ 75 | 76 | /* List of links */ 77 | .inline li { 78 | /* Bug in Safari causes display: inline to fail. */ 79 | display: inline-block; 80 | padding: 0 0 0 1em; 81 | } 82 | 83 | /* The inline field label used by the Fences.module */ 84 | span.field-label { 85 | padding: 0 0 0 1em; 86 | } 87 | 88 | /** 89 | * "More" links. 90 | */ 91 | .more-link { 92 | text-align: left; 93 | } 94 | .more-help-link { 95 | text-align: left; 96 | } 97 | .more-help-link a { 98 | background-position: 100% 50%; 99 | padding: 1px 20px 1px 0; 100 | } 101 | 102 | /** 103 | * Menus. 104 | */ 105 | .menu__item.is-collapsed { 106 | list-style-image: inline-image("menu-collapsed-rtl.png"); 107 | @if $legacy-support-for-ie6 or $legacy-support-for-ie7 { 108 | *list-style-image: image-url("menu-collapsed-rtl.png"); 109 | } 110 | } 111 | 112 | /** 113 | * Comments. 114 | */ 115 | 116 | /* Nested comments are indented. */ 117 | .indented { 118 | margin-left: 0; 119 | margin-right: $indent-amount; 120 | } 121 | 122 | /** 123 | * Forms. 124 | */ 125 | 126 | /* Drupal's default login form block */ 127 | #user-login-form { 128 | text-align: right; 129 | } 130 | 131 | html.js #user-login-form li.openid-link, 132 | #user-login-form li.openid-link { 133 | /* Un-do some of the padding on the ul list. */ 134 | margin-left: 0; 135 | margin-right: -20px; 136 | } 137 | 138 | /* 139 | * Drupal admin tables. 140 | */ 141 | form { 142 | th { 143 | text-align: right; 144 | padding-left: 1em; 145 | padding-right: 0; 146 | } 147 | } 148 | 149 | /** 150 | * Collapsible fieldsets. 151 | * 152 | * @see collapse.js 153 | */ 154 | .fieldset-legend { 155 | html.js .collapsible & { 156 | background-position: 98% 75%; 157 | padding-left: 0; 158 | padding-right: 15px; 159 | } 160 | html.js .collapsed & { 161 | background-image: inline-image("menu-collapsed-rtl.png"); 162 | @if $legacy-support-for-ie6 or $legacy-support-for-ie7 { 163 | *background-image: image-url("menu-collapsed-rtl.png"); 164 | } 165 | background-position: 98% 50%; 166 | } 167 | } 168 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass/layouts/_fixed-rtl.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * RTL companion for the layout-fixed-width.css file. 4 | */ 5 | 6 | // First we tell Zen grids to reverse the direction of all floats. 7 | $zen-reverse-all-floats: true; 8 | 9 | // Then we import the LTR layout and the directions are automatically reversed. 10 | @import "fixed"; 11 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass/layouts/_fixed.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Positioning for a fixed-width, desktop-centric layout. 4 | * 5 | * Define CSS classes to create a table-free, 3-column, 2-column, or single 6 | * column layout depending on whether blocks are enabled in the left or right 7 | * columns. 8 | * 9 | * This layout uses the Zen Grids plugin for Compass: http://zengrids.com 10 | */ 11 | 12 | // We are going to create a 980px wide, 5 column grid with 20px gutters between 13 | // columns (applied as 10px of left/right padding on each column). 14 | $zen-column-count: 5; 15 | $zen-gutter-width: 20px; 16 | $zen-grid-width: 980px; 17 | 18 | // If you need IE6/7 support for box-sizing: border-box (default), see _init.scss 19 | // Since the same CSS unit for grid width and gutter width are set here 20 | // we can use box-sizing: content-box; without worrying about polyfills. 21 | $zen-box-sizing: content-box; 22 | 23 | // You can generate more efficient CSS if you manually apply the 24 | // zen-grid-item-base mixin to all grid items from within a single ruleset. 25 | $zen-auto-include-item-base: false; 26 | // $zen-auto-include-flow-item-base: false; 27 | 28 | // Suppress this section of CSS for RTL layouts since it contains no LTR-specific styles. 29 | @if $zen-reverse-all-floats == false { 30 | 31 | /** 32 | * Center the page. 33 | * 34 | * If you want to make the page a fixed width and centered in the viewport, 35 | * this is the standards-compliant way to do that. 36 | */ 37 | #page, 38 | .region-bottom { 39 | margin-left: auto; 40 | margin-right: auto; 41 | width: $zen-grid-width; 42 | } 43 | 44 | /* Apply the shared properties of grid items in a single, efficient ruleset. */ 45 | #header, 46 | #content, 47 | #navigation, 48 | .region-sidebar-first, 49 | .region-sidebar-second, 50 | #footer { 51 | // See the note about $zen-auto-include-item-base above. 52 | @include zen-grid-item-base(); 53 | } 54 | 55 | /* Containers for grid items and flow items. */ 56 | #header, 57 | #main, 58 | #footer { 59 | @include zen-grid-container(); 60 | } 61 | 62 | /* Navigation bar */ 63 | #main { 64 | /* Move all the children of #main down to make room. */ 65 | padding-top: $nav-height; 66 | position: relative; 67 | } 68 | #navigation { 69 | /* Move the navbar up inside #main's padding. */ 70 | position: absolute; 71 | top: 0; 72 | height: $nav-height; 73 | width: $zen-grid-width - $zen-gutter-width; 74 | } 75 | 76 | } // End of @if $zen-reverse-all-floats == true 77 | 78 | /** 79 | * The layout when there is only one sidebar, the left one. 80 | */ 81 | .sidebar-first { 82 | /* Span 4 columns, starting in 2nd column from left. */ 83 | #content { 84 | @include zen-grid-item(4, 2); 85 | } 86 | 87 | /* Span 1 column, starting in 1st column from left. */ 88 | .region-sidebar-first { 89 | @include zen-grid-item(1, 1); 90 | } 91 | } 92 | 93 | /** 94 | * The layout when there is only one sidebar, the right one. 95 | */ 96 | .sidebar-second { 97 | /* Span 4 columns, starting in 1st column from left. */ 98 | #content { 99 | @include zen-grid-item(4, 1); 100 | } 101 | 102 | /* Span 1 column, starting in 5th column from left. */ 103 | .region-sidebar-second { 104 | @include zen-grid-item(1, 5); 105 | } 106 | } 107 | 108 | /** 109 | * The layout when there are two sidebars. 110 | */ 111 | .two-sidebars { 112 | /* Span 3 columns, starting in 2nd column from left. */ 113 | #content { 114 | @include zen-grid-item(3, 2); 115 | } 116 | 117 | /* Span 1 column, starting in 1st column from left. */ 118 | .region-sidebar-first { 119 | @include zen-grid-item(1, 1); 120 | } 121 | 122 | /* Span 1 column, starting in 5th column from left. */ 123 | .region-sidebar-second { 124 | @include zen-grid-item(1, 5); 125 | } 126 | } 127 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass/layouts/_responsive-rtl.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * RTL companion for the layout-responsive.css file. 4 | */ 5 | 6 | // First we tell Zen grids to reverse the direction of all floats. 7 | $zen-reverse-all-floats: true; 8 | 9 | // Then we import the LTR layout and the directions are automatically reversed. 10 | @import "responsive"; 11 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass/styles-rtl.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * RTL companion for the styles.scss file. 4 | */ 5 | 6 | /* Import Sass mixins, variables, Compass modules, etc. */ 7 | @import "init"; 8 | 9 | /* HTML element (SMACSS base) rules */ 10 | @import "normalize-rtl"; 11 | 12 | /* Layout rules */ 13 | @import "layouts/responsive-rtl"; 14 | 15 | /* Component (SMACSS module) rules */ 16 | @import "components/misc-rtl"; 17 | 18 | /* SMACSS theme rules */ 19 | /* @import "theme-A-rtl"; */ 20 | /* @import "theme-B-rtl"; */ 21 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/sass/styles.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Styles are organized using the SMACSS technique. @see http://smacss.com/book/ 4 | * 5 | * When you turn on CSS aggregation at admin/config/development/performance, all 6 | * of these @include files will be combined into a single file. 7 | */ 8 | 9 | /* Import Sass mixins, variables, Compass modules, etc. */ 10 | @import "init"; 11 | 12 | /* HTML element (SMACSS base) rules */ 13 | @import "normalize"; 14 | 15 | /* Layout rules */ 16 | @import "layouts/responsive"; 17 | 18 | /* Component (SMACSS module) rules */ 19 | @import "components/misc"; 20 | // Optionally, add your own components here. 21 | @import "print"; 22 | 23 | /* SMACSS theme rules */ 24 | /* @import "theme-A"; */ 25 | /* @import "theme-B"; */ 26 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/STARTERKIT/screenshot.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/templates/README.txt: -------------------------------------------------------------------------------- 1 | TEMPLATES 2 | --------- 3 | 4 | Drupal 7 contains the following template files which you can override and modify 5 | by copying them to your sub-theme. 6 | 7 | The Zen theme overrides a handful of Drupal's templates. In order to override 8 | those templates, you should copy them from the zen/templates folder to your 9 | sub-theme's templates folder. 10 | 11 | As always, when adding a new template file to your sub-theme, you will need to 12 | rebuild the "theme registry" in order for Drupal to see it. For more info, see: 13 | https://drupal.org/node/173880#theme-registry 14 | 15 | Located in zen/templates: 16 | html.tpl.php 17 | page.tpl.php 18 | maintenance-page.tpl.php 19 | node.tpl.php 20 | region.tpl.php 21 | region--footer.tpl.php 22 | region--sidebar.tpl.php 23 | region--no-wrapper.tpl.php 24 | block.tpl.php 25 | block--no-wrapper.tpl.php 26 | comment-wrapper.tpl.php 27 | comment.tpl.php 28 | user-picture.tpl.php 29 | 30 | Located in /modules/aggregator: 31 | aggregator-feed-source.tpl.php 32 | aggregator-item.tpl.php 33 | aggregator-summary-item.tpl.php 34 | aggregator-summary-items.tpl.php 35 | aggregator-wrapper.tpl.php 36 | 37 | Located in /modules/block: 38 | block.tpl.php (overridden by Zen) 39 | block-admin-display-form.tpl.php 40 | 41 | Located in /modules/book: 42 | book-all-books-block.tpl.php 43 | book-export-html.tpl.php 44 | book-navigation.tpl.php 45 | book-node-export-html.tpl.php 46 | 47 | Located in /modules/comment: 48 | comment-wrapper.tpl.php (overridden by Zen) 49 | comment.tpl.php (overridden by Zen) 50 | 51 | Located in /modules/field/theme: 52 | field.tpl.php (not used; core uses theme_field() instead) 53 | 54 | Located in /modules/forum: 55 | forum-icon.tpl.php 56 | forum-list.tpl.php 57 | forum-submitted.tpl.php 58 | forum-topic-list.tpl.php 59 | forums.tpl.php 60 | 61 | Located in /modules/node: 62 | node.tpl.php (overridden by Zen) 63 | 64 | Located in /modules/overlay: 65 | overlay.tpl.php 66 | 67 | Located in /modules/poll: 68 | poll-bar--block.tpl.php 69 | poll-bar.tpl.php 70 | poll-results--block.tpl.php 71 | poll-results.tpl.php 72 | poll-vote.tpl.php 73 | 74 | Located in /modules/profile: 75 | profile-block.tpl.php 76 | profile-listing.tpl.php 77 | profile-wrapper.tpl.php 78 | 79 | Located in /modules/search: 80 | search-block-form.tpl.php 81 | search-result.tpl.php 82 | search-results.tpl.php 83 | 84 | Located in /modules/system: 85 | html.tpl.php (overridden by Zen) 86 | maintenance-page.tpl.php (overridden by Zen) 87 | page.tpl.php (overridden by Zen) 88 | region.tpl.php (overridden by Zen) 89 | 90 | Located in /modules/taxonomy: 91 | taxonomy-term.tpl.php 92 | 93 | Located in /modules/toolbar: 94 | toolbar.tpl.php 95 | 96 | Located in /modules/user: 97 | user-picture.tpl.php (overridden by Zen) 98 | user-profile-category.tpl.php 99 | user-profile-item.tpl.php 100 | user-profile.tpl.php 101 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/STARTERKIT/theme-settings.php: -------------------------------------------------------------------------------- 1 | 'checkbox', 21 | '#title' => t('STARTERKIT sample setting'), 22 | '#default_value' => theme_get_setting('STARTERKIT_example'), 23 | '#description' => t("This option doesn't do anything; it's just an example."), 24 | ); 25 | // */ 26 | 27 | // Remove some of the base theme's settings. 28 | /* -- Delete this line if you want to turn off this setting. 29 | unset($form['themedev']['zen_wireframes']); // We don't need to toggle wireframes on this site. 30 | // */ 31 | 32 | // We are editing the $form in place, so we don't need to return anything. 33 | } 34 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/js/html5.js: -------------------------------------------------------------------------------- 1 | /* 2 | HTML5 Shiv v3.6.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed 3 | */ 4 | (function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); 5 | a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; 6 | c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| 7 | "undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video",version:"3.6.2",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment(); 8 | for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d #mq-test-1 { width: 42px; }';a.insertBefore(d,b);c=g.offsetWidth==42;a.removeChild(d);return{matches:c,media:h}}})(document); 4 | 5 | /*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */ 6 | (function(e){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;for(;B-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}j()},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=false;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");x.style.background="none"}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x)}else{x.removeChild(A)}z=p=parseFloat(z);return z},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=false;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(true)}if(e.addEventListener){e.addEventListener("resize",t,false)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this); 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/logo.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/panels-layouts/zen-no-wrapper/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/panels-layouts/zen-no-wrapper/icon.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/panels-layouts/zen-no-wrapper/zen-no-wrapper.tpl.php: -------------------------------------------------------------------------------- 1 | '; 17 | print $content['main']; 18 | print ''; 19 | } 20 | else { 21 | print $content['main']; 22 | } 23 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/panels-layouts/zen-no-wrapper/zen_no_wrapper.inc: -------------------------------------------------------------------------------- 1 | t('No wrapper'), 9 | 'category' => t('Columns: 1'), 10 | 'icon' => 'icon.png', 11 | 12 | 'theme' => 'zen_no_wrapper', 13 | 14 | 'regions' => array( 15 | 'main' => t('Main'), 16 | ), 17 | 18 | 'settings form' => 'zen_no_wrapper_settings_form', 19 | 'settings validate' => 'zen_no_wrapper_settings_validate', 20 | 'settings submit' => 'zen_no_wrapper_settings_submit', 21 | ); 22 | 23 | /** 24 | * Form for layout settings. 25 | */ 26 | function zen_no_wrapper_settings_form(&$display, $layout, $settings) { 27 | $form = array(); 28 | 29 | $form['layout_settings'] = array( 30 | '#type' => 'fieldset', 31 | '#title' => t('Layout settings'), 32 | '#description' => t('Note: if this setting is used, a wrapper div will be added to accomodate the needed classes.'), 33 | '#collapsible' => TRUE, 34 | '#collapsed' => TRUE, 35 | ); 36 | 37 | // Create a classes text field for each region in the layout. 38 | foreach ($layout['regions'] as $region => $label) { 39 | $form['layout_settings'][$region . '_classes'] = array( 40 | '#type' => 'textfield', 41 | '#title' => t('Classes for the “@region” region', array('@region' => $label)), 42 | '#default_value' => isset($settings[$region . '_classes']) ? $settings[$region . '_classes'] : '', 43 | '#description' => t('CSS class (or classes) to apply to the @region region in the layout. This may be blank.', array('@region' => $label)), 44 | ); 45 | } 46 | 47 | return $form; 48 | } 49 | 50 | /** 51 | * Form validation for layout settings. 52 | */ 53 | function zen_no_wrapper_settings_validate(&$form_state, $form, &$display, $layout, $settings) { 54 | // Since we allow underscores, change the css filter from Drupal's default. 55 | $filter = array(' ' => '-', '/' => '-', '[' => '-', ']' => ''); 56 | foreach (array_keys($layout['regions']) as $region) { 57 | // Ensure that each class is valid. 58 | foreach (explode(' ', $form_state['layout_settings'][$region . '_classes']) as $class) { 59 | $cleaned_class = drupal_clean_css_identifier($class, $filter); 60 | // CSS identifiers can't start with a number or a dash and a number. 61 | $cleaned_class = preg_replace('/^\-?\d+/', '', $cleaned_class); 62 | if ($class != $cleaned_class) { 63 | form_set_error($region . '_classes', t('The class "@class" is invalid. Here’s an alternative class name that is valid: @alternate', array('@class' => $class, '@alternate' => $cleaned_class))); 64 | } 65 | } 66 | } 67 | } 68 | 69 | /** 70 | * Form submit handler for layout settings. 71 | */ 72 | function zen_no_wrapper_settings_submit(&$form_state, &$display, $layout, $settings) { 73 | // Move the settings out of the 'layout_settings' array. 74 | foreach (array_keys($form_state['layout_settings']) as $key) { 75 | $form_state[$key] = $form_state['layout_settings'][$key]; 76 | } 77 | unset($form_state['layout_settings']); 78 | } 79 | 80 | /** 81 | * Implements hook_preprocess_HOOK(). 82 | */ 83 | function template_preprocess_zen_no_wrapper(&$variables, $hook) { 84 | foreach (array_keys($variables['layout']['regions']) as $region) { 85 | // Pull out the region classes to easy-to-handle variables. 86 | $variables[$region . '_classes'] = !empty($variables['settings'][$region . '_classes']) ? ' ' . $variables['settings'][$region . '_classes'] : ''; 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/block--no-wrapper.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | > 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/block.tpl.php: -------------------------------------------------------------------------------- 1 | 10 |
> 11 | 12 | 13 | 14 | > 15 | 16 | 17 | 18 | 19 | 20 |
21 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/comment-wrapper.tpl.php: -------------------------------------------------------------------------------- 1 | 14 |
> 15 | 16 | type != 'forum'): ?> 17 |

18 | 19 | 20 | 21 | 22 | 23 | 24 |

25 | 26 | 27 |
28 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/comment.tpl.php: -------------------------------------------------------------------------------- 1 | 10 |
> 11 | 12 |
13 | 18 | 19 | 20 | 21 | > 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 |
36 | 37 | 42 | 43 | 44 |
45 | 46 |
47 | 48 | 49 | 50 |
51 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/html.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | > 15 | 16 | 17 | 18 | <?php print $head_title; ?> 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 33 | 34 | 37 | 38 | 41 | 42 | 43 | > 44 | 45 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/maintenance-page.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | > 15 | 16 | 17 | 18 | <?php print $head_title; ?> 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 33 | 34 | 37 | 38 | 39 | > 40 | 41 |
42 | 43 | 66 | 67 |
68 | 69 |
70 | 71 | 72 | 73 |

74 | 75 | 76 | 77 |
78 | 79 | 82 | 83 | 84 | 88 | 89 | 90 |
91 | 92 | 93 | 94 |
95 | 96 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/node.tpl.php: -------------------------------------------------------------------------------- 1 | 10 |
> 11 | 12 | 13 |
14 | 15 | 16 | > 17 | 18 | 19 | 20 | 21 | 25 | 26 | 27 | 28 | 29 | 30 |
31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 |
45 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/page.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 | 13 | 52 | 53 |
54 | 55 |
56 | 57 | 58 | 59 | 60 | 61 |

62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 |
73 | 74 | 100 | 101 | 106 | 107 | 108 | 112 | 113 | 114 |
115 | 116 | 117 | 118 |
119 | 120 | 121 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/pane-header.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 |

18 | 19 |

20 | 21 | 22 | 23 |

24 | 25 |
26 | 27 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/pane-messages.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/pane-navigation.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/panels-pane.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
> 12 | 13 | 14 | 15 | 16 | > 17 | 18 | 19 | 20 | 21 |
22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 32 | 33 | 34 | 35 | 38 | 39 |
40 | 41 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/region--footer.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 | 13 |
14 | 15 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/region--no-wrapper.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/region--sidebar.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 | 13 |
14 | 15 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/region.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 | 13 |
14 | 15 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/templates/user-picture.tpl.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/css/styles-fixed-rtl.css: -------------------------------------------------------------------------------- 1 | dd{margin:0 30px 0 0}menu,ol,ul{padding:0 30px 0 0}legend{*margin-left:0;*margin-right:-7px}.sidebar-first #content{float:right;width:764px;margin-right:196px;margin-left:-980px}.sidebar-first .region-sidebar-first{float:right;width:176px;margin-right:0px;margin-left:-196px}.sidebar-second #content{float:right;width:764px;margin-right:0px;margin-left:-784px}.sidebar-second .region-sidebar-second{float:right;width:176px;margin-right:784px;margin-left:-980px}.two-sidebars #content{float:right;width:568px;margin-right:196px;margin-left:-784px}.two-sidebars .region-sidebar-first{float:right;width:176px;margin-right:0px;margin-left:-196px}.two-sidebars .region-sidebar-second{float:right;width:176px;margin-right:784px;margin-left:-980px}.header__logo{float:right}.header__secondary-menu{float:left}#navigation .links,#navigation .menu{text-align:right}#navigation .links li,#navigation .menu li{float:right;padding:0 0 0 10px}.messages,.messages--status,.messages--warning,.messages--error{padding:10px 50px 10px 10px;background-position:99% 8px}.tabs-primary__tab,.tabs-secondary__tab,.tabs-secondary__tab.is-active{float:right}.inline li{display:inline-block;padding:0 0 0 1em}span.field-label{padding:0 0 0 1em}.more-link{text-align:left}.more-help-link{text-align:left}.more-help-link a{background-position:100% 50%;padding:1px 20px 1px 0}.menu__item.is-collapsed{list-style-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');*list-style-image:url('../images/menu-collapsed-rtl.png')}.indented{margin-left:0;margin-right:30px}#user-login-form{text-align:right}html.js #user-login-form li.openid-link,#user-login-form li.openid-link{margin-left:0;margin-right:-20px}form th{text-align:right;padding-left:1em;padding-right:0}html.js .collapsible .fieldset-legend{background-position:98% 75%;padding-left:0;padding-right:15px}html.js .collapsed .fieldset-legend{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');*background-image:url('../images/menu-collapsed-rtl.png');background-position:98% 50%} 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/css/styles-rtl.css: -------------------------------------------------------------------------------- 1 | dd{margin:0 30px 0 0}menu,ol,ul{padding:0 30px 0 0}legend{*margin-left:0;*margin-right:-7px}@media all and (min-width: 480px) and (max-width: 959px){.sidebar-first #content{float:right;width:66.66667%;margin-right:33.33333%;margin-left:-100%}.sidebar-first .region-sidebar-first{float:right;width:33.33333%;margin-right:0%;margin-left:-33.33333%}.sidebar-second #content{float:right;width:66.66667%;margin-right:0%;margin-left:-66.66667%}.sidebar-second .region-sidebar-second{float:right;width:33.33333%;margin-right:66.66667%;margin-left:-100%}.two-sidebars #content{float:right;width:66.66667%;margin-right:33.33333%;margin-left:-100%}.two-sidebars .region-sidebar-first{float:right;width:33.33333%;margin-right:0%;margin-left:-33.33333%}.two-sidebars .region-sidebar-second{float:right;width:100%;margin-right:0%;margin-left:-100%;padding-left:0;padding-right:0;clear:right}.two-sidebars .region-sidebar-second .block{padding-left:10px;padding-right:10px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;word-wrap:break-word;*behavior:url("/path/to/boxsizing.htc");_display:inline;_overflow:hidden;_overflow-y:visible}.two-sidebars .region-sidebar-second .block:nth-child(3n+1){float:right;width:33.33333%;margin-right:0%;margin-left:-33.33333%;clear:right}.two-sidebars .region-sidebar-second .block:nth-child(3n+2){float:right;width:33.33333%;margin-right:33.33333%;margin-left:-66.66667%}.two-sidebars .region-sidebar-second .block:nth-child(3n){float:right;width:33.33333%;margin-right:66.66667%;margin-left:-100%}}@media all and (min-width: 960px){.sidebar-first #content{float:right;width:80%;margin-right:20%;margin-left:-100%}.sidebar-first .region-sidebar-first{float:right;width:20%;margin-right:0%;margin-left:-20%}.sidebar-second #content{float:right;width:80%;margin-right:0%;margin-left:-80%}.sidebar-second .region-sidebar-second{float:right;width:20%;margin-right:80%;margin-left:-100%}.two-sidebars #content{float:right;width:60%;margin-right:20%;margin-left:-80%}.two-sidebars .region-sidebar-first{float:right;width:20%;margin-right:0%;margin-left:-20%}.two-sidebars .region-sidebar-second{float:right;width:20%;margin-right:80%;margin-left:-100%}}.header__logo{float:right}.header__secondary-menu{float:left}#navigation .links,#navigation .menu{text-align:right}#navigation .links li,#navigation .menu li{float:right;padding:0 0 0 10px}.messages,.messages--status,.messages--warning,.messages--error{padding:10px 50px 10px 10px;background-position:99% 8px}.tabs-primary__tab,.tabs-secondary__tab,.tabs-secondary__tab.is-active{float:right}.inline li{display:inline-block;padding:0 0 0 1em}span.field-label{padding:0 0 0 1em}.more-link{text-align:left}.more-help-link{text-align:left}.more-help-link a{background-position:100% 50%;padding:1px 20px 1px 0}.menu__item.is-collapsed{list-style-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');*list-style-image:url('../images/menu-collapsed-rtl.png')}.indented{margin-left:0;margin-right:30px}#user-login-form{text-align:right}html.js #user-login-form li.openid-link,#user-login-form li.openid-link{margin-left:0;margin-right:-20px}form th{text-align:right;padding-left:1em;padding-right:0}html.js .collapsible .fieldset-legend{background-position:98% 75%;padding-left:0;padding-right:15px}html.js .collapsed .fieldset-legend{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');*background-image:url('../images/menu-collapsed-rtl.png');background-position:98% 50%} 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/README.txt: -------------------------------------------------------------------------------- 1 | ABOUT THIS DIRECTORY 2 | -------------------- 3 | 4 | The contents of this folder are only used by the generate.sh command-line script 5 | to help the maintainers keep the CSS and Sass files in sync. These files are not 6 | used by Drupal, so feel free to ignore. 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/sass/_init_extras.scss: -------------------------------------------------------------------------------- 1 | // Turn on IE legacy support for our CSS. 2 | $legacy-support-for-ie6 : true; 3 | $legacy-support-for-ie7 : true; 4 | 5 | $box-sizing-polyfill-path : "/path/to/boxsizing.htc"; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/sass/components/css-misc-rtl.scss: -------------------------------------------------------------------------------- 1 | @import "init"; 2 | @import "components/misc-rtl"; 3 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/sass/components/css-misc.scss: -------------------------------------------------------------------------------- 1 | @import "init"; 2 | @import "components/misc"; 3 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/sass/css-normalize-rtl.scss: -------------------------------------------------------------------------------- 1 | @import "init"; 2 | @import "normalize-rtl"; 3 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/sass/css-normalize.scss: -------------------------------------------------------------------------------- 1 | @import "init"; 2 | @import "normalize"; 3 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/sass/css-print.scss: -------------------------------------------------------------------------------- 1 | @import "init"; 2 | @import "print"; 3 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/sass/layouts/css-fixed-rtl.scss: -------------------------------------------------------------------------------- 1 | @import "init"; 2 | @import "layouts/fixed-rtl"; 3 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/sass/layouts/css-fixed.scss: -------------------------------------------------------------------------------- 1 | @import "init"; 2 | @import "layouts/fixed"; 3 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/sass/layouts/css-responsive-rtl.scss: -------------------------------------------------------------------------------- 1 | @import "init"; 2 | @import "layouts/responsive-rtl"; 3 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/sass/layouts/css-responsive.scss: -------------------------------------------------------------------------------- 1 | @import "init"; 2 | @import "layouts/responsive"; 3 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/sass/styles-fixed-rtl.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * RTL companion for the styles.scss file. 4 | */ 5 | 6 | @import "init"; /* Import Sass mixins, variables, Compass modules, etc. */ 7 | 8 | 9 | /* Base HTML element rules */ 10 | @import "normalize-rtl"; 11 | 12 | /* Layout rules */ 13 | @import "layouts/fixed-rtl"; 14 | 15 | /* Component (SMACSS module) rules */ 16 | @import "components/misc-rtl"; 17 | 18 | /* Theme rules */ 19 | /* @import "theme-A-rtl"; */ 20 | /* @import "theme-B-rtl"; */ 21 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/sass/styles-fixed.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Styles are organized using the SMACSS technique. @see http://smacss.com/book/ 4 | * 5 | * When you turn on CSS aggregation at admin/config/development/performance, all 6 | * of these @include files will be combined into a single file. 7 | */ 8 | 9 | @import "init"; /* Import Sass mixins, variables, Compass modules, etc. */ 10 | 11 | 12 | /* Base HTML element rules */ 13 | @import "normalize"; 14 | 15 | /* Layout rules */ 16 | @import "layouts/fixed"; 17 | 18 | /* Component (SMACSS module) rules */ 19 | @import "components/misc"; 20 | // Optionally, add your own components here. 21 | @import "print"; 22 | 23 | /* Theme rules */ 24 | /* @import "theme-A"; */ 25 | /* @import "theme-B"; */ 26 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item--replace.txt: -------------------------------------------------------------------------------- 1 | } 2 | 3 | /* Pack groups of checkboxes and radio buttons closer together. */ 4 | .form-checkboxes .form-item, 5 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item--search.txt: -------------------------------------------------------------------------------- 1 | /* Pack groups of checkboxes and radio buttons closer together. */ 2 | /* Form items in a table. */ 3 | /* Highlight the form elements that caused a form submission error. */ 4 | /* The descriptive help text (separate from the label). */ 5 | } 6 | .form-checkboxes .form-item, 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Form items in a table. */ 3 | tr.odd .form-item, 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-2--search.txt: -------------------------------------------------------------------------------- 1 | tr.odd .form-item, 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-3--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Highlight the form elements that caused a form submission error. */ 3 | .form-item input.error, 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-3--search.txt: -------------------------------------------------------------------------------- 1 | .form-item input.error, 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-4--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* The descriptive help text (separate from the label). */ 3 | .form-item .description { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-4--search.txt: -------------------------------------------------------------------------------- 1 | .form-item .description { 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--navigation-links--replace.txt: -------------------------------------------------------------------------------- 1 | } 2 | #navigation .block { 3 | margin-bottom: 0; 4 | } 5 | 6 | /* Main menu and secondary menu links and menu block links. */ 7 | #navigation .links, 8 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--navigation-links--search.txt: -------------------------------------------------------------------------------- 1 | /* Main menu and secondary menu links and menu block links. */ 2 | } 3 | #navigation .block { 4 | margin-bottom: 0; 5 | } 6 | #navigation .links, 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--pager--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | .pager-item, /* A list item containing a page number in the list of pages. */ 3 | .pager-first, /* The first page's list item. */ 4 | .pager-previous, /* The previous page's list item. */ 5 | .pager-next, /* The next page's list item. */ 6 | .pager-last, /* The last page's list item. */ 7 | .pager-ellipsis, /* A concatenation of several list items using an ellipsis. */ 8 | .pager-current { /* The current page's list item. */ 9 | display: inline; 10 | padding: 0 0.5em; 11 | list-style-type: none; 12 | background-image: none; 13 | } 14 | .pager-current { 15 | font-weight: bold; 16 | } 17 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--pager--search.txt: -------------------------------------------------------------------------------- 1 | .pager-item, 2 | .pager-first, 3 | .pager-previous, 4 | .pager-next, 5 | .pager-last, 6 | .pager-ellipsis, 7 | .pager-current { 8 | display: inline; 9 | padding: 0 0.5em; 10 | list-style-type: none; 11 | background-image: none; 12 | } 13 | .pager-item, 14 | .pager-first, 15 | .pager-previous, 16 | .pager-next, 17 | .pager-last, 18 | .pager-ellipsis { 19 | /* A concatenation of several list items using an ellipsis. */ 20 | } 21 | 22 | /* The current page's list item. */ 23 | .pager-current { 24 | font-weight: bold; 25 | } 26 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--titles--replace.txt: -------------------------------------------------------------------------------- 1 | .page__title, /* The title of the page. */ 2 | .node__title, /* Title of a piece of content when it is given in a list of content. */ 3 | .block__title, /* Block title. */ 4 | .comments__title, /* Comment section heading. */ 5 | .comments__form-title, /* Comment form heading. */ 6 | .comment__title { /* Comment title. */ 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/components/misc--titles--search.txt: -------------------------------------------------------------------------------- 1 | .page__title, 2 | .node__title, 3 | .block__title, 4 | .comments__title, 5 | .comments__form-title, 6 | .comment__title { 7 | /* Comment title. */ 8 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-first--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 4 columns, starting in 2nd column from left. */ 3 | .sidebar-first #content { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-first--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-first { 2 | /* Span 4 columns, starting in 2nd column from left. */ 3 | /* Span 1 column, starting in 1st column from left. */ 4 | } 5 | .sidebar-first #content { 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-first-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 1st column from left. */ 3 | .sidebar-first .region-sidebar-first { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-first-2--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-first .region-sidebar-first { 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-second--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 4 columns, starting in 1st column from left. */ 3 | .sidebar-second #content { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-second--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-second { 2 | /* Span 4 columns, starting in 1st column from left. */ 3 | /* Span 1 column, starting in 5th column from left. */ 4 | } 5 | .sidebar-second #content { 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-second-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 5th column from left. */ 3 | .sidebar-second .region-sidebar-second { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-second-2--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-second .region-sidebar-second { 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 3 columns, starting in 2nd column from left. */ 3 | .two-sidebars #content { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars { 2 | /* Span 3 columns, starting in 2nd column from left. */ 3 | /* Span 1 column, starting in 1st column from left. */ 4 | /* Span 1 column, starting in 5th column from left. */ 5 | } 6 | .two-sidebars #content { 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 1st column from left. */ 3 | .two-sidebars .region-sidebar-first { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars-2--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-first { 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars-3--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 5th column from left. */ 3 | .two-sidebars .region-sidebar-second { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars-3--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-second { 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-first--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 4 columns, starting in 2nd column from right. */ 3 | .sidebar-first #content { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-first--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-first { 2 | /* Span 4 columns, starting in 2nd column from right. */ 3 | /* Span 1 column, starting in 1st column from right. */ 4 | } 5 | .sidebar-first #content { 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-first-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 1st column from right. */ 3 | .sidebar-first .region-sidebar-first { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-first-2--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-first .region-sidebar-first { 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-second--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 4 columns, starting in 1st column from right. */ 3 | .sidebar-second #content { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-second--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-second { 2 | /* Span 4 columns, starting in 1st column from right. */ 3 | /* Span 1 column, starting in 5th column from right. */ 4 | } 5 | .sidebar-second #content { 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-second-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 5th column from right. */ 3 | .sidebar-second .region-sidebar-second { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-second-2--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-second .region-sidebar-second { 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 3 columns, starting in 2nd column from right. */ 3 | .two-sidebars #content { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars { 2 | /* Span 3 columns, starting in 2nd column from right. */ 3 | /* Span 1 column, starting in 1st column from right. */ 4 | /* Span 1 column, starting in 5th column from right. */ 5 | } 6 | .two-sidebars #content { 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 1st column from right. */ 3 | .two-sidebars .region-sidebar-first { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars-2--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-first { 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars-3--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 5th column from right. */ 3 | .two-sidebars .region-sidebar-second { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars-3--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-second { 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-first--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 4 columns, starting in 2nd column from left. */ 3 | .sidebar-first #content { 4 | float: left; 5 | width: 80%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-first--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-first { 2 | /* Span 4 columns, starting in 2nd column from left. */ 3 | /* Span 1 column, starting in 1st column from left. */ 4 | } 5 | .sidebar-first #content { 6 | float: left; 7 | width: 80%; 8 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-first-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 1st column from left. */ 3 | .sidebar-first .region-sidebar-first { 4 | float: left; 5 | width: 20%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-first-2--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-first .region-sidebar-first { 2 | float: left; 3 | width: 20%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-second--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 4 columns, starting in 1st column from left. */ 3 | .sidebar-second #content { 4 | float: left; 5 | width: 80%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-second--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-second { 2 | /* Span 4 columns, starting in 1st column from left. */ 3 | /* Span 1 column, starting in 5th column from left. */ 4 | } 5 | .sidebar-second #content { 6 | float: left; 7 | width: 80%; 8 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-second-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 5th column from left. */ 3 | .sidebar-second .region-sidebar-second { 4 | float: left; 5 | width: 20%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-second-2--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-second .region-sidebar-second { 2 | float: left; 3 | width: 20%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 3 columns, starting in 2nd column from left. */ 3 | .two-sidebars #content { 4 | float: left; 5 | width: 60%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars { 2 | /* Span 3 columns, starting in 2nd column from left. */ 3 | /* Span 1 column, starting in 1st column from left. */ 4 | /* Span 1 column, starting in 5th column from left. */ 5 | } 6 | .two-sidebars #content { 7 | float: left; 8 | width: 60%; 9 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 1st column from left. */ 3 | .two-sidebars .region-sidebar-first { 4 | float: left; 5 | width: 20%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars-2--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-first { 2 | float: left; 3 | width: 20%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars-3--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 5th column from left. */ 3 | .two-sidebars .region-sidebar-second { 4 | float: left; 5 | width: 20%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars-3--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-second { 2 | float: left; 3 | width: 20%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-screen--replace.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * Use 3 grid columns for smaller screens. 3 | */ 4 | @media all and (min-width: 480px) and (max-width: 959px) { 5 | 6 | /** 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-screen--search.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * Use 3 grid columns for smaller screens. 3 | */ 4 | @media all and (min-width: 480px) and (max-width: 959px) { 5 | /** 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-first--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 2 columns, starting in 2nd column from left. */ 3 | .sidebar-first #content { 4 | float: left; 5 | width: 66.66667%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-first--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-first { 2 | /* Span 2 columns, starting in 2nd column from left. */ 3 | /* Span 1 column, starting in 1st column from left. */ 4 | } 5 | .sidebar-first #content { 6 | float: left; 7 | width: 66.66667%; 8 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-first-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 1st column from left. */ 3 | .sidebar-first .region-sidebar-first { 4 | float: left; 5 | width: 33.33333%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-first-2--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-first .region-sidebar-first { 2 | float: left; 3 | width: 33.33333%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-second--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 2 columns, starting in 1st column from left. */ 3 | .sidebar-second #content { 4 | float: left; 5 | width: 66.66667%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-second--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-second { 2 | /* Span 2 columns, starting in 1st column from left. */ 3 | /* Span 1 column, starting in 3rd column from left. */ 4 | } 5 | .sidebar-second #content { 6 | float: left; 7 | width: 66.66667%; 8 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-second-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 3rd column from left. */ 3 | .sidebar-second .region-sidebar-second { 4 | float: left; 5 | width: 33.33333%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-second-2--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-second .region-sidebar-second { 2 | float: left; 3 | width: 33.33333%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 2 columns, starting in 2nd column from left. */ 3 | .two-sidebars #content { 4 | float: left; 5 | width: 66.66667%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars { 2 | /* Span 2 columns, starting in 2nd column from left. */ 3 | /* Span 1 column, starting in 1st column from left. */ 4 | /* Start a new row and span all 3 columns. */ 5 | } 6 | .two-sidebars #content { 7 | float: left; 8 | width: 66.66667%; 9 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 1st column from left. */ 3 | .two-sidebars .region-sidebar-first { 4 | float: left; 5 | width: 33.33333%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-2--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-first { 2 | float: left; 3 | width: 33.33333%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-3--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Start a new row and span all 3 columns. */ 3 | .two-sidebars .region-sidebar-second { 4 | float: left; 5 | width: 100%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-3--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-second { 2 | float: left; 3 | width: 100%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-4--replace.txt: -------------------------------------------------------------------------------- 1 | clear: left; 2 | } 3 | 4 | /* Apply the shared properties of grid items in a single, efficient ruleset. */ 5 | .two-sidebars .region-sidebar-second .block { 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-4--search.txt: -------------------------------------------------------------------------------- 1 | clear: left; 2 | /* Apply the shared properties of grid items in a single, efficient ruleset. */ 3 | /* Span 1 column, starting in the 1st column from left. */ 4 | /* Span 1 column, starting in the 2nd column from left. */ 5 | /* Span 1 column, starting in the 3rd column from left. */ 6 | } 7 | .two-sidebars .region-sidebar-second .block { 8 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-5--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in the 1st column from left. */ 3 | .two-sidebars .region-sidebar-second .block:nth-child(3n+1) { 4 | float: left; 5 | width: 33.33333%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-5--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-second .block:nth-child(3n+1) { 2 | float: left; 3 | width: 33.33333%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-6--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in the 2nd column from left. */ 3 | .two-sidebars .region-sidebar-second .block:nth-child(3n+2) { 4 | float: left; 5 | width: 33.33333%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-6--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-second .block:nth-child(3n+2) { 2 | float: left; 3 | width: 33.33333%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-7--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in the 3rd column from left. */ 3 | .two-sidebars .region-sidebar-second .block:nth-child(3n) { 4 | float: left; 5 | width: 33.33333%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-7--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-second .block:nth-child(3n) { 2 | float: left; 3 | width: 33.33333%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-first--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 4 columns, starting in 2nd column from right. */ 3 | .sidebar-first #content { 4 | float: right; 5 | width: 80%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-first--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-first { 2 | /* Span 4 columns, starting in 2nd column from right. */ 3 | /* Span 1 column, starting in 1st column from right. */ 4 | } 5 | .sidebar-first #content { 6 | float: right; 7 | width: 80%; 8 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-first-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 1st column from right. */ 3 | .sidebar-first .region-sidebar-first { 4 | float: right; 5 | width: 20%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-first-2--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-first .region-sidebar-first { 2 | float: right; 3 | width: 20%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-second--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 4 columns, starting in 1st column from right. */ 3 | .sidebar-second #content { 4 | float: right; 5 | width: 80%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-second--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-second { 2 | /* Span 4 columns, starting in 1st column from right. */ 3 | /* Span 1 column, starting in 5th column from right. */ 4 | } 5 | .sidebar-second #content { 6 | float: right; 7 | width: 80%; 8 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-second-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 5th column from right. */ 3 | .sidebar-second .region-sidebar-second { 4 | float: right; 5 | width: 20%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-second-2--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-second .region-sidebar-second { 2 | float: right; 3 | width: 20%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 3 columns, starting in 2nd column from right. */ 3 | .two-sidebars #content { 4 | float: right; 5 | width: 60%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars { 2 | /* Span 3 columns, starting in 2nd column from right. */ 3 | /* Span 1 column, starting in 1st column from right. */ 4 | /* Span 1 column, starting in 5th column from right. */ 5 | } 6 | .two-sidebars #content { 7 | float: right; 8 | width: 60%; 9 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 1st column from right. */ 3 | .two-sidebars .region-sidebar-first { 4 | float: right; 5 | width: 20%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars-2--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-first { 2 | float: right; 3 | width: 20%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars-3--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 5th column from right. */ 3 | .two-sidebars .region-sidebar-second { 4 | float: right; 5 | width: 20%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars-3--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-second { 2 | float: right; 3 | width: 20%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-screen--replace.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * Use 3 grid columns for smaller screens. 3 | */ 4 | @media all and (min-width: 480px) and (max-width: 959px) { 5 | 6 | /** 7 | * The layout when there is only one sidebar, the right one. 8 | */ 9 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-screen--search.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * Use 3 grid columns for smaller screens. 3 | */ 4 | @media all and (min-width: 480px) and (max-width: 959px) { 5 | /** 6 | * The layout when there is only one sidebar, the right one. 7 | */ 8 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-first--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 2 columns, starting in 2nd column from right. */ 3 | .sidebar-first #content { 4 | float: right; 5 | width: 66.66667%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-first--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-first { 2 | /* Span 2 columns, starting in 2nd column from right. */ 3 | /* Span 1 column, starting in 1st column from right. */ 4 | } 5 | .sidebar-first #content { 6 | float: right; 7 | width: 66.66667%; 8 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-first-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 1st column from right. */ 3 | .sidebar-first .region-sidebar-first { 4 | float: right; 5 | width: 33.33333%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-first-2--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-first .region-sidebar-first { 2 | float: right; 3 | width: 33.33333%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-second--replace.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * The layout when there is only one sidebar, the left one. 3 | */ 4 | 5 | /* Span 2 columns, starting in 1st column from right. */ 6 | .sidebar-second #content { 7 | float: right; 8 | width: 66.66667%; 9 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-second--search.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * The layout when there is only one sidebar, the left one. 3 | */ 4 | .sidebar-second { 5 | /* Span 2 columns, starting in 1st column from right. */ 6 | /* Span 1 column, starting in 3rd column from right. */ 7 | } 8 | .sidebar-second #content { 9 | float: right; 10 | width: 66.66667%; 11 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-second-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 3rd column from right. */ 3 | .sidebar-second .region-sidebar-second { 4 | float: right; 5 | width: 33.33333%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-second-2--search.txt: -------------------------------------------------------------------------------- 1 | .sidebar-second .region-sidebar-second { 2 | float: right; 3 | width: 33.33333%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 2 columns, starting in 2nd column from right. */ 3 | .two-sidebars #content { 4 | float: right; 5 | width: 66.66667%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars { 2 | /* Span 2 columns, starting in 2nd column from right. */ 3 | /* Span 1 column, starting in 1st column from right. */ 4 | /* Start a new row and span all 3 columns. */ 5 | } 6 | .two-sidebars #content { 7 | float: right; 8 | width: 66.66667%; 9 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-2--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in 1st column from right. */ 3 | .two-sidebars .region-sidebar-first { 4 | float: right; 5 | width: 33.33333%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-2--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-first { 2 | float: right; 3 | width: 33.33333%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-3--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Start a new row and span all 3 columns. */ 3 | .two-sidebars .region-sidebar-second { 4 | float: right; 5 | width: 100%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-3--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-second { 2 | float: right; 3 | width: 100%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-4--replace.txt: -------------------------------------------------------------------------------- 1 | clear: right; 2 | } 3 | 4 | /* Apply the shared properties of grid items in a single, efficient ruleset. */ 5 | .two-sidebars .region-sidebar-second .block { 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-4--search.txt: -------------------------------------------------------------------------------- 1 | clear: right; 2 | /* Apply the shared properties of grid items in a single, efficient ruleset. */ 3 | /* Span 1 column, starting in the 1st column from right. */ 4 | /* Span 1 column, starting in the 2nd column from right. */ 5 | /* Span 1 column, starting in the 3rd column from right. */ 6 | } 7 | .two-sidebars .region-sidebar-second .block { 8 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-5--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in the 1st column from right. */ 3 | .two-sidebars .region-sidebar-second .block:nth-child(3n+1) { 4 | float: right; 5 | width: 33.33333%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-5--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-second .block:nth-child(3n+1) { 2 | float: right; 3 | width: 33.33333%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-6--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in the 2nd column from right. */ 3 | .two-sidebars .region-sidebar-second .block:nth-child(3n+2) { 4 | float: right; 5 | width: 33.33333%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-6--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-second .block:nth-child(3n+2) { 2 | float: right; 3 | width: 33.33333%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-7--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Span 1 column, starting in the 3rd column from right. */ 3 | .two-sidebars .region-sidebar-second .block:nth-child(3n) { 4 | float: right; 5 | width: 33.33333%; 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-7--search.txt: -------------------------------------------------------------------------------- 1 | .two-sidebars .region-sidebar-second .block:nth-child(3n) { 2 | float: right; 3 | width: 33.33333%; 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--button--replace.txt: -------------------------------------------------------------------------------- 1 | html input[type="button"], /* 1 */ 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--button--search.txt: -------------------------------------------------------------------------------- 1 | html input[type="button"], 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--fieldset--replace.txt: -------------------------------------------------------------------------------- 1 | fieldset { 2 | border: 1px solid #c0c0c0; 3 | margin: 0 2px; 4 | padding: 0.5em 0.625em 1em; 5 | } 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--fieldset--search.txt: -------------------------------------------------------------------------------- 1 | fieldset { 2 | margin: 0 2px; 3 | /* Apply borders and padding that keep the vertical rhythm. */ 4 | border-color: #c0c0c0; 5 | border-top-style: solid; 6 | border-top-width: 0.0625em; 7 | padding-top: 0.4625em; 8 | border-bottom-style: solid; 9 | border-bottom-width: 0.0625em; 10 | padding-bottom: 0.9125em; 11 | border-left-style: solid; 12 | border-left-width: 0.0625em; 13 | padding-left: 0.9125em; 14 | border-right-style: solid; 15 | border-right-width: 0.0625em; 16 | padding-right: 0.9125em; 17 | } 18 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--font-face--replace.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--font-face--replace.txt -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--font-face--search.txt: -------------------------------------------------------------------------------- 1 | * 2 | * Since we're using Sass, you'll need to declare your font faces here, then you 3 | * can add them to the font variables in the _init.scss partial. 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--font-family--replace.txt: -------------------------------------------------------------------------------- 1 | textarea { 2 | /** 3 | * The following font family declarations are available on most computers. 4 | * 5 | * A user's web browser will look at the comma-separated list and will 6 | * attempt to use each font in turn until it finds one that is available 7 | * on the user's computer. The final "generic" font (sans-serif, serif or 8 | * monospace) hints at what type of font to use if the web browser doesn't 9 | * find any of the fonts in the list. 10 | * 11 | * font-family: "Times New Roman", Times, Georgia, "DejaVu Serif", serif; 12 | * font-family: Times, "Times New Roman", Georgia, "DejaVu Serif", serif; 13 | * font-family: Georgia, "Times New Roman", "DejaVu Serif", serif; 14 | * 15 | * font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif; 16 | * font-family: Tahoma, Verdana, "DejaVu Sans", sans-serif; 17 | * font-family: Helvetica, Arial, "Nimbus Sans L", sans-serif; 18 | * font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif; 19 | * 20 | * font-family: "Courier New", "DejaVu Sans Mono", monospace; 21 | */ 22 | font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif; 23 | } 24 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--font-family--search.txt: -------------------------------------------------------------------------------- 1 | textarea { 2 | font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif; 3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--headings--replace.txt: -------------------------------------------------------------------------------- 1 | h1 { 2 | /* Set the font-size and line-height while keeping a proper vertical rhythm. */ 3 | font-size: 2em; 4 | line-height: 1.5em; /* 3rem / 2em = 1.5em */ 5 | /* Set 1 unit of vertical rhythm on the top and bottom margins. */ 6 | margin-top: 0.75em; /* 1.5rem / 2em = .75em */ 7 | margin-bottom: 0.75em; 8 | } 9 | h2 { 10 | font-size: 1.5em; 11 | line-height: 2em; /* 3rem / 1.5em = 2em */ 12 | margin-top: 1em; /* 1.5rem / 1.5em = 1em */ 13 | margin-bottom: 1em; 14 | } 15 | h3 { 16 | font-size: 1.17em; 17 | line-height: 1.28205em; /* 1.5rem / 1.17em = 1.28205em */ 18 | margin-top: 1.28205em; 19 | margin-bottom: 1.28205em; 20 | } 21 | h4 { 22 | font-size: 1em; 23 | line-height: 1.5em; /* 1.5rem / 1em = 1.5em */ 24 | margin-top: 1.5em; 25 | margin-bottom: 1.5em; 26 | } 27 | h5 { 28 | font-size: 0.83em; 29 | line-height: 1.80723em; /* 1.5rem / 0.83em = 1.80723em */ 30 | margin-top: 1.80723em; 31 | margin-bottom: 1.80723em; 32 | } 33 | h6 { 34 | font-size: 0.67em; 35 | line-height: 2.23881em; /* 1.5rem / 0.67em = 2.23881em */ 36 | margin-top: 2.23881em; 37 | margin-bottom: 2.23881em; 38 | } 39 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--headings--search.txt: -------------------------------------------------------------------------------- 1 | h1 { 2 | /* Set the font-size and line-height while keeping a proper vertical rhythm. */ 3 | font-size: 2em; 4 | line-height: 1.5em; 5 | /* Set 1 unit of vertical rhythm on the top and bottom margins. */ 6 | margin-top: 0.75em; 7 | margin-bottom: 0.75em; 8 | } 9 | h2 { 10 | font-size: 1.5em; 11 | line-height: 2em; 12 | margin-top: 1em; 13 | margin-bottom: 1em; 14 | } 15 | h3 { 16 | font-size: 1.17em; 17 | line-height: 1.28205em; 18 | margin-top: 1.28205em; 19 | margin-bottom: 1.28205em; 20 | } 21 | h4 { 22 | font-size: 1em; 23 | line-height: 1.5em; 24 | margin-top: 1.5em; 25 | margin-bottom: 1.5em; 26 | } 27 | h5 { 28 | font-size: 0.83em; 29 | line-height: 1.80723em; 30 | margin-top: 1.80723em; 31 | margin-bottom: 1.80723em; 32 | } 33 | h6 { 34 | font-size: 0.67em; 35 | line-height: 2.23881em; 36 | margin-top: 2.23881em; 37 | margin-bottom: 2.23881em; 38 | } 39 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--html--replace.txt: -------------------------------------------------------------------------------- 1 | html { 2 | font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif; /* 1 */ 3 | 4 | /* Delete all but one of the following font-size declarations: */ 5 | 6 | /* Use a 12px base font size. 16px x 75% = 12px */ 7 | font-size: 75%; /* 3 */ 8 | /* Use a 14px base font size. 16px x .875 = 14px */ 9 | font-size: 87.5%; /* 3 */ 10 | /* Use a 16px base font size. */ 11 | font-size: 100%; /* 3 */ 12 | 13 | -ms-text-size-adjust: 100%; /* 2 */ 14 | -webkit-text-size-adjust: 100%; /* 2 */ 15 | 16 | /* Establish a vertical rhythm. */ 17 | line-height: 1.5em; 18 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--html--search.txt: -------------------------------------------------------------------------------- 1 | html { 2 | font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif; /* 1 */ 3 | font-size: 100%; /* 3 */ 4 | -ms-text-size-adjust: 100%; /* 2 */ 5 | -webkit-text-size-adjust: 100%; /* 2 */ 6 | line-height: 1.5em; 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--img--replace.txt: -------------------------------------------------------------------------------- 1 | -ms-interpolation-mode: bicubic; 2 | 3 | /* Suppress the space beneath the baseline */ 4 | /* vertical-align: bottom; */ 5 | 6 | /* Responsive images */ 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--img--search.txt: -------------------------------------------------------------------------------- 1 | -ms-interpolation-mode: bicubic; 2 | /* Suppress the space beneath the baseline */ 3 | /* vertical-align: bottom; */ 4 | /* Responsive images */ 5 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--links--replace.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * Links 3 | * 4 | * The order of link states are based on Eric Meyer's article: 5 | * http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states 6 | */ 7 | a:link { 8 | } 9 | a:visited { 10 | } 11 | a:hover, 12 | a:focus { 13 | } 14 | a:active { 15 | } 16 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/normalize--links--search.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * Links 3 | * 4 | * The order of link states are based on Eric Meyer's article: 5 | * http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states 6 | */ 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/print--abbr--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Add visible title after abbreviations. */ 3 | #content abbr[title]:after { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/print--abbr--search.txt: -------------------------------------------------------------------------------- 1 | #content abbr[title]:after { 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/print--site-name--replace.txt: -------------------------------------------------------------------------------- 1 | text-decoration: underline !important; 2 | } 3 | 4 | /* Don't underline header. */ 5 | a:link.header__site-link, 6 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/print--site-name--search.txt: -------------------------------------------------------------------------------- 1 | text-decoration: underline !important; 2 | /* Don't underline header. */ 3 | } 4 | a:link.header__site-link, 5 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/print--useful-url--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Only display useful links. */ 3 | #content a[href^="javascript:"]:after, 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/print--useful-url--search.txt: -------------------------------------------------------------------------------- 1 | #content a[href^="javascript:"]:after, 2 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/print--visible-url--replace.txt: -------------------------------------------------------------------------------- 1 | 2 | /* Add visible URL after links. */ 3 | #content a[href]:after { 4 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/extras/text-replacements/print--visible-url--search.txt: -------------------------------------------------------------------------------- 1 | #content { 2 | /* Add visible URL after links. */ 3 | /* Only display useful links. */ 4 | /* Add visible title after abbreviations. */ 5 | } 6 | #content a[href]:after { 7 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/images/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/zen-internals/images/help.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/images/menu-collapsed-rtl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/zen-internals/images/menu-collapsed-rtl.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/images/menu-collapsed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/zen-internals/images/menu-collapsed.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/images/menu-expanded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/zen-internals/images/menu-expanded.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/images/menu-leaf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/zen-internals/images/menu-leaf.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/images/message-24-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/zen-internals/images/message-24-error.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/images/message-24-ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/zen-internals/images/message-24-ok.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/images/message-24-warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/zen-internals/images/message-24-warning.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/images/progress.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/zen-internals/images/progress.gif -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samos123/docker-drupal/76a4b73827d41eab91619ae97268ff2aeaca5bb2/examples/custom-image/themes/zen/zen-internals/screenshot.png -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/template.theme-registry.inc: -------------------------------------------------------------------------------- 1 | extremely important to turn off this feature on production websites.', array('!link' => url('admin/appearance/settings/' . $GLOBALS['theme']))), 'warning', FALSE); 25 | } 26 | 27 | // hook_theme() expects an array, so return an empty one. 28 | return array(); 29 | } 30 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen-internals/template.zen.inc: -------------------------------------------------------------------------------- 1 | CSS_THEME, 'every_page' => TRUE)); 23 | 24 | // Sub-themes after 7.x-5.1 remove these files, but we can't remove them using 25 | // zen.info since it will break sub-themes built with 7.x-5.0/5.1. 26 | drupal_add_css($directory . 'system.messages.css', array('group' => CSS_THEME, 'every_page' => TRUE)); 27 | drupal_add_css($directory . 'system.theme.css', array('group' => CSS_THEME, 'every_page' => TRUE)); 28 | } 29 | -------------------------------------------------------------------------------- /examples/custom-image/themes/zen/zen.info: -------------------------------------------------------------------------------- 1 | name = Zen 2 | description = Zen sub-themes are the ultimate starting themes for Drupal 7. Read the online docs or the included README-FIRST.txt on how to create a theme with Zen. 3 | screenshot = zen-internals/screenshot.png 4 | 5 | core = 7.x 6 | engine = phptemplate 7 | 8 | stylesheets[all][] = system.menus.css 9 | 10 | regions[header] = Header 11 | regions[navigation] = Navigation bar 12 | regions[highlighted] = Highlighted 13 | regions[help] = Help 14 | regions[content] = Content 15 | regions[sidebar_first] = First sidebar 16 | regions[sidebar_second] = Second sidebar 17 | regions[footer] = Footer 18 | regions[bottom] = Page bottom 19 | regions[page_top] = Page top 20 | regions[page_bottom] = Page bottom 21 | 22 | settings[zen_breadcrumb] = yes 23 | settings[zen_breadcrumb_separator] = ' › ' 24 | settings[zen_breadcrumb_home] = 1 25 | settings[zen_breadcrumb_trailing] = 0 26 | settings[zen_breadcrumb_title] = 0 27 | settings[zen_layout] = zen-responsive-sidebars 28 | settings[zen_skip_link_anchor] = main-menu 29 | settings[zen_skip_link_text] = Jump to navigation 30 | settings[zen_html5_respond_meta][] = respond 31 | settings[zen_html5_respond_meta][] = html5 32 | settings[zen_html5_respond_meta][] = meta 33 | settings[zen_rebuild_registry] = 0 34 | settings[zen_wireframes] = 0 35 | 36 | plugins[panels][layouts] = panels-layouts 37 | 38 | ; Information added by Drupal.org packaging script on 2014-04-30 39 | version = "7.x-5.5" 40 | core = "7.x" 41 | project = "zen" 42 | datestamp = "1398864829" 43 | 44 | -------------------------------------------------------------------------------- /examples/postgres/docker-compose.yml: -------------------------------------------------------------------------------- 1 | # This is a sample configuration to run a Drupal-instance with Docker-Compose. 2 | # For customization options see: https://docs.docker.com/compose/yml/ 3 | 4 | web: 5 | image: samos123/drupal:7.x 6 | links: 7 | - db:postgres 8 | volumes: 9 | - /var/www/html/sites 10 | - /var/www/private 11 | environment: 12 | - UPLOAD_LIMIT=20M 13 | - MEMORY_LIMIT=128M 14 | - VIRTUAL_HOST=foo.bar.zap 15 | - BASE_URL_PROTO=http:// 16 | 17 | db: 18 | image: postgres 19 | environment: 20 | - POSTGRES_PASSWORD=password 21 | volumes: 22 | - /var/lib/postgresql/data 23 | -------------------------------------------------------------------------------- /php-conf.d/drupal-recommends.ini: -------------------------------------------------------------------------------- 1 | allow_url_fopen = off 2 | display_errors = off 3 | expose_php = off 4 | extension = uploadprogress.so 5 | session.auto_start = 0 6 | session.cache_limiter = nocache 7 | -------------------------------------------------------------------------------- /scripts/pre-launch.d/00conf_php: -------------------------------------------------------------------------------- 1 | : ${UPLOAD_LIMIT:='10M'} 2 | echo -e "upload_max_filesize = ${UPLOAD_LIMIT}\npost_max_size = ${UPLOAD_LIMIT}" \ 3 | > $PHP_INI_DIR'/conf.d/upload-limit.ini' 4 | : ${MEMORY_LIMIT:='64M'} 5 | echo "memory_limit = ${MEMORY_LIMIT}" > $PHP_INI_DIR'/conf.d/memory-limit.ini' 6 | -------------------------------------------------------------------------------- /scripts/pre-launch.d/05servername_baseurl: -------------------------------------------------------------------------------- 1 | : "${BASE_URL_PROTO:='https://'}" 2 | 3 | if [ -n "$VIRTUAL_HOST" ]; then 4 | if [ -z "$SERVERNAME" ]; then 5 | SERVERNAME=$(echo "$VIRTUAL_HOST" | cut -f 1 -d ,) 6 | fi 7 | if [ -z "$BASE_URL" ]; then 8 | BASE_URL="${BASE_URL_PROTO}"$(echo "$VIRTUAL_HOST" | cut -f 1 -d ,) 9 | fi 10 | fi 11 | 12 | : "${SERVERNAME:=$(cat /etc/hostname)}" 13 | echo ServerName "${SERVERNAME}" >> /etc/apache2/apache2.conf 14 | 15 | if [ -n "$BASE_URL" ]; then 16 | export BASE_URL 17 | echo -e "# Drupal's base_url-variable\nexport BASE_URL=${BASE_URL}" >> /etc/bash.bashrc 18 | fi 19 | -------------------------------------------------------------------------------- /scripts/pre-launch.d/99file_perm: -------------------------------------------------------------------------------- 1 | prev_dir=$(pwd) 2 | 3 | cd /var/www 4 | chown -R www-data.www-data . 5 | find . -type d -exec chmod ug=rx,o= '{}' \; 6 | find . -type f -exec chmod ug=r,o= '{}' \; 7 | 8 | chmod ug=rwx,o= private 9 | find private -type d -exec chmod ug=rwx,o= '{}' \; 10 | find private -type f -exec chmod ug=rw,o= '{}' \; 11 | 12 | cd html/sites 13 | find . -type d -exec chmod ug=rwx,o= '{}' \; 14 | for x in ./*/files; do 15 | find ${x} -type d -exec chmod ug=rwx,o= '{}' \; 16 | find ${x} -type f -exec chmod ug=rw,o= '{}' \; 17 | done 18 | 19 | cd "${prev_dir}" 20 | -------------------------------------------------------------------------------- /scripts/pre-launch.d/README.txt: -------------------------------------------------------------------------------- 1 | This folder contains scripts that will be executed before the launch of a Drupal-instance. 2 | See /README.md for details. 3 | -------------------------------------------------------------------------------- /scripts/setup.d/40site-install: -------------------------------------------------------------------------------- 1 | /usr/bin/env PHP_OPTIONS="-d sendmail_path=$(which true)" drush site-install --site-name=default --account-name="${ADMIN_USER}" --account-pass="${ADMIN_PASSWORD}" 2 | -------------------------------------------------------------------------------- /scripts/setup.d/README.txt: -------------------------------------------------------------------------------- 1 | This folder contains scripts that will be executed as installation-process of a 2 | Drupal-instance. See /README.md for details. 3 | -------------------------------------------------------------------------------- /sites/default/files/.dockerignore: -------------------------------------------------------------------------------- 1 | * 2 | --------------------------------------------------------------------------------