Revision 4cce112d
Added by Andreas Kohlbecker over 11 years ago
.gitattributes | ||
---|---|---|
1490 | 1490 |
7.x/themes/zen/zen-internals/template.zen.inc -text |
1491 | 1491 |
7.x/themes/zen/zen-internals/zen.drush.inc -text |
1492 | 1492 |
7.x/themes/zen/zen.info -text |
1493 |
7.x/themes/zen_dataportal/.sass-cache/0d93976ff9f11556b314694e7a9476cfb8ac8aee/_css3.scssc -text svneol=unset#unset |
|
1494 |
7.x/themes/zen_dataportal/.sass-cache/0d93976ff9f11556b314694e7a9476cfb8ac8aee/_support.scssc -text svneol=unset#unset |
|
1495 |
7.x/themes/zen_dataportal/.sass-cache/12ab5f0702294dfd9700cb1e0cd2394ed318c5be/_grids.scssc -text |
|
1496 |
7.x/themes/zen_dataportal/.sass-cache/35a6074aaa86241c81fac3e4e5286854be13ca08/fixed-width-rtl.scssc -text svneol=unset#unset |
|
1497 |
7.x/themes/zen_dataportal/.sass-cache/35a6074aaa86241c81fac3e4e5286854be13ca08/fixed-width.scssc -text svneol=unset#unset |
|
1498 |
7.x/themes/zen_dataportal/.sass-cache/35a6074aaa86241c81fac3e4e5286854be13ca08/responsive-sidebars-rtl.scssc -text svneol=unset#unset |
|
1499 |
7.x/themes/zen_dataportal/.sass-cache/35a6074aaa86241c81fac3e4e5286854be13ca08/responsive-sidebars.scssc -text svneol=unset#unset |
|
1500 |
7.x/themes/zen_dataportal/.sass-cache/364af386fb40ab5f67c4b7ae571302cd5dfce4db/_clearfix.scssc -text svneol=unset#unset |
|
1501 |
7.x/themes/zen_dataportal/.sass-cache/464787d364b085b2a1532d12f327cae4d9a1fbe8/_sprites.scssc -text svneol=unset#unset |
|
1502 |
7.x/themes/zen_dataportal/.sass-cache/7b66f216ba48720b6444fb2f0e15ba21ed3d1f53/_vertical_rhythm.scssc -text |
|
1503 |
7.x/themes/zen_dataportal/.sass-cache/a8cf333018325c256c2fcb2f90e51a05bb7912e5/_zen.scssc -text svneol=unset#unset |
|
1504 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/_base.scssc -text svneol=unset#unset |
|
1505 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/_custom.scssc -text svneol=unset#unset |
|
1506 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/blocks.scssc -text svneol=unset#unset |
|
1507 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/comments.scssc -text svneol=unset#unset |
|
1508 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/fields.scssc -text svneol=unset#unset |
|
1509 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/forms-rtl.scssc -text svneol=unset#unset |
|
1510 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/forms.scssc -text svneol=unset#unset |
|
1511 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/navigation-rtl.scssc -text svneol=unset#unset |
|
1512 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/navigation.scssc -text svneol=unset#unset |
|
1513 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/nodes.scssc -text svneol=unset#unset |
|
1514 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/normalize-rtl.scssc -text svneol=unset#unset |
|
1515 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/normalize.scssc -text |
|
1516 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/pages-rtl.scssc -text svneol=unset#unset |
|
1517 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/pages.scssc -text svneol=unset#unset |
|
1518 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/print.scssc -text svneol=unset#unset |
|
1519 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/tabs-rtl.scssc -text svneol=unset#unset |
|
1520 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/tabs.scssc -text svneol=unset#unset |
|
1521 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/views-styles.scssc -text svneol=unset#unset |
|
1522 |
7.x/themes/zen_dataportal/.sass-cache/b7ec75a973b6ef8187af26f68d839cc5b2c81e58/wireframes.scssc -text svneol=unset#unset |
|
1523 |
7.x/themes/zen_dataportal/README.txt -text |
|
1524 |
7.x/themes/zen_dataportal/STARTERKIT.info.txt -text |
|
1525 |
7.x/themes/zen_dataportal/config.rb -text |
|
1526 |
7.x/themes/zen_dataportal/css/README.txt -text |
|
1527 |
7.x/themes/zen_dataportal/css/blocks.css -text |
|
1528 |
7.x/themes/zen_dataportal/css/comments.css -text |
|
1529 |
7.x/themes/zen_dataportal/css/drupal7-reference.css -text |
|
1530 |
7.x/themes/zen_dataportal/css/fields.css -text |
|
1531 |
7.x/themes/zen_dataportal/css/forms-rtl.css -text |
|
1532 |
7.x/themes/zen_dataportal/css/forms.css -text |
|
1533 |
7.x/themes/zen_dataportal/css/layouts/fixed-width-rtl.css -text |
|
1534 |
7.x/themes/zen_dataportal/css/layouts/fixed-width.css -text |
|
1535 |
7.x/themes/zen_dataportal/css/layouts/responsive-sidebars-rtl.css -text |
|
1536 |
7.x/themes/zen_dataportal/css/layouts/responsive-sidebars.css -text |
|
1537 |
7.x/themes/zen_dataportal/css/navigation-rtl.css -text |
|
1538 |
7.x/themes/zen_dataportal/css/navigation.css -text |
|
1539 |
7.x/themes/zen_dataportal/css/nodes.css -text |
|
1540 |
7.x/themes/zen_dataportal/css/normalize-rtl.css -text |
|
1541 |
7.x/themes/zen_dataportal/css/normalize.css -text |
|
1542 |
7.x/themes/zen_dataportal/css/pages-rtl.css -text |
|
1543 |
7.x/themes/zen_dataportal/css/pages.css -text |
|
1544 |
7.x/themes/zen_dataportal/css/print.css -text |
|
1545 |
7.x/themes/zen_dataportal/css/tabs-rtl.css -text |
|
1546 |
7.x/themes/zen_dataportal/css/tabs.css -text |
|
1547 |
7.x/themes/zen_dataportal/css/views-styles.css -text |
|
1548 |
7.x/themes/zen_dataportal/css/wireframes.css -text |
|
1549 |
7.x/themes/zen_dataportal/favicon.ico -text svneol=unset#unset |
|
1550 |
7.x/themes/zen_dataportal/images-source/screenshot.psd -text svneol=unset#unset |
|
1551 |
7.x/themes/zen_dataportal/images/menu-collapsed-rtl.png -text svneol=unset#unset |
|
1552 |
7.x/themes/zen_dataportal/images/menu-collapsed.png -text svneol=unset#unset |
|
1553 |
7.x/themes/zen_dataportal/images/menu-expanded.png -text svneol=unset#unset |
|
1554 |
7.x/themes/zen_dataportal/images/menu-leaf.png -text svneol=unset#unset |
|
1555 |
7.x/themes/zen_dataportal/js/README.txt -text |
|
1556 |
7.x/themes/zen_dataportal/js/script.js -text |
|
1557 |
7.x/themes/zen_dataportal/logo.png -text svneol=unset#unset |
|
1558 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/DO_NOT_MODIFY -text |
|
1559 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/LICENSE.txt -text |
|
1560 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/README.txt -text |
|
1561 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/lib/zen-grids.rb -text |
|
1562 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/stylesheets/_zen.scss -text |
|
1563 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/stylesheets/zen/_background-grid.scss -text |
|
1564 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/stylesheets/zen/_grids.scss -text |
|
1565 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/project/common.scss -text |
|
1566 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/project/example.html -text |
|
1567 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/project/layout.scss -text |
|
1568 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/project/manifest.rb -text |
|
1569 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/project/styles.scss -text |
|
1570 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/README.txt -text |
|
1571 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/manifest.rb -text |
|
1572 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-direction-flip.scss -text |
|
1573 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-grid-item-width.scss -text |
|
1574 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-half-gutter.scss -text |
|
1575 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-unit-width.scss -text |
|
1576 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/sass/zen-clear.scss -text |
|
1577 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/sass/zen-float.scss -text |
|
1578 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-container.scss -text |
|
1579 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-flow-item.scss -text |
|
1580 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-item-base.scss -text |
|
1581 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-item.scss -text |
|
1582 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/sass/zen-nested-container.scss -text |
|
1583 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-direction-flip.css -text |
|
1584 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-grid-item-width.css -text |
|
1585 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-half-gutter.css -text |
|
1586 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-unit-width.css -text |
|
1587 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-clear.css -text |
|
1588 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-float.css -text |
|
1589 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-container.css -text |
|
1590 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-flow-item.css -text |
|
1591 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-item-base.css -text |
|
1592 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-item.css -text |
|
1593 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-nested-container.css -text |
|
1594 |
7.x/themes/zen_dataportal/sass-extensions/zen-grids/zen-grids.gemspec -text |
|
1595 |
7.x/themes/zen_dataportal/sass/README.txt -text |
|
1596 |
7.x/themes/zen_dataportal/sass/_base.scss -text |
|
1597 |
7.x/themes/zen_dataportal/sass/_custom.scss -text |
|
1598 |
7.x/themes/zen_dataportal/sass/blocks.scss -text |
|
1599 |
7.x/themes/zen_dataportal/sass/comments.scss -text |
|
1600 |
7.x/themes/zen_dataportal/sass/fields.scss -text |
|
1601 |
7.x/themes/zen_dataportal/sass/forms-rtl.scss -text |
|
1602 |
7.x/themes/zen_dataportal/sass/forms.scss -text |
|
1603 |
7.x/themes/zen_dataportal/sass/layouts/fixed-width-rtl.scss -text |
|
1604 |
7.x/themes/zen_dataportal/sass/layouts/fixed-width.scss -text |
|
1605 |
7.x/themes/zen_dataportal/sass/layouts/responsive-sidebars-rtl.scss -text |
|
1606 |
7.x/themes/zen_dataportal/sass/layouts/responsive-sidebars.scss -text |
|
1607 |
7.x/themes/zen_dataportal/sass/navigation-rtl.scss -text |
|
1608 |
7.x/themes/zen_dataportal/sass/navigation.scss -text |
|
1609 |
7.x/themes/zen_dataportal/sass/nodes.scss -text |
|
1610 |
7.x/themes/zen_dataportal/sass/normalize-rtl.scss -text |
|
1611 |
7.x/themes/zen_dataportal/sass/normalize.scss -text |
|
1612 |
7.x/themes/zen_dataportal/sass/pages-rtl.scss -text |
|
1613 |
7.x/themes/zen_dataportal/sass/pages.scss -text |
|
1614 |
7.x/themes/zen_dataportal/sass/print.scss -text |
|
1615 |
7.x/themes/zen_dataportal/sass/tabs-rtl.scss -text |
|
1616 |
7.x/themes/zen_dataportal/sass/tabs.scss -text |
|
1617 |
7.x/themes/zen_dataportal/sass/views-styles.scss -text |
|
1618 |
7.x/themes/zen_dataportal/sass/wireframes.scss -text |
|
1619 |
7.x/themes/zen_dataportal/screenshot.png -text svneol=unset#unset |
|
1620 |
7.x/themes/zen_dataportal/template.php -text |
|
1621 |
7.x/themes/zen_dataportal/templates/README.txt -text |
|
1622 |
7.x/themes/zen_dataportal/theme-settings.php -text |
7.x/themes/zen_dataportal/.sass-cache/12ab5f0702294dfd9700cb1e0cd2394ed318c5be/_grids.scssc | ||
---|---|---|
1 |
3.2.1 (Media Mark) |
|
2 |
10715666e049dab0a0e7fe3583f8a8f848075cad |
|
3 |
o:Sass::Tree::RootNode |
|
4 |
:@template"?,// |
|
5 |
// Mixins for the Zen Grids system. |
|
6 |
// |
|
7 |
|
|
8 |
|
|
9 |
// Specify the number of columns in the grid. |
|
10 |
$zen-column-count: 1 !default; |
|
11 |
|
|
12 |
// Specify the width of the gutters; half of the gutter will be placed on each |
|
13 |
// side of a grid column. |
|
14 |
$zen-gutter-width: 20px !default; |
|
15 |
|
|
16 |
// You can generate more efficient CSS if you manually apply the |
|
17 |
// zen-grid-item-base mixin to all grid items from within a single ruleset. |
|
18 |
$zen-auto-include-item-base: true !default; |
|
19 |
$zen-auto-include-flow-item-base: true !default; |
|
20 |
|
|
21 |
// Specify the width of the entire grid. Defaults to 100% for a fluid responsive |
|
22 |
// design, but you can change this to a pixel value if you need a fixed grid. |
|
23 |
$zen-grid-width: 100% !default; |
|
24 |
|
|
25 |
// The box-sizing polyfill for IE6/7 requires an absolute path to the |
|
26 |
// boxsizing.htc file. See https://github.com/Schepp/box-sizing-polyfill |
|
27 |
$box-sizing-polyfill-path: "" !default; |
|
28 |
|
|
29 |
// Specify the CSS3 box-sizing method. The default, "border-box", is compatible |
|
30 |
// with all modern browsers, including IE 8 and later. Use "content-box" for |
|
31 |
// wider compatibility (Note: you'll also need to set $legacy-support-for-ie7 |
|
32 |
// and $legacy-support-for-ie6 to true.) |
|
33 |
$zen-box-sizing: border-box !default; |
|
34 |
|
|
35 |
// Turn off IE6/7 support since we're defaulting to box-sizing: border-box. |
|
36 |
$legacy-support-for-ie7: false !default; |
|
37 |
$legacy-support-for-ie6: false !default; |
|
38 |
|
|
39 |
// Specify the default floating direction for zen's mixins. |
|
40 |
$zen-float-direction: left !default; |
|
41 |
|
|
42 |
// This is a helper variable for RTL layouts. |
|
43 |
$zen-reverse-all-floats: false !default; |
|
44 |
|
|
45 |
|
|
46 |
// |
|
47 |
// Apply this to the grid container element. |
|
48 |
// |
|
49 |
@mixin zen-grid-container () { |
|
50 |
@if ($legacy-support-for-ie6 or $legacy-support-for-ie7) { |
|
51 |
*position: relative; // @TODO: This is a pre-IE8 line of code; don't remember why its needed. |
|
52 |
} |
|
53 |
// We use the "micro clearfix", instead of Compass' clearfix or pie-clearfix. |
|
54 |
&:before, |
|
55 |
&:after { |
|
56 |
content: ""; |
|
57 |
display: table; |
|
58 |
} |
|
59 |
&:after { |
|
60 |
clear: both; |
|
61 |
} |
|
62 |
@if ($legacy-support-for-ie6 or $legacy-support-for-ie7) { |
|
63 |
*zoom: 1; |
|
64 |
} |
|
65 |
} |
|
66 |
|
|
67 |
// |
|
68 |
// Apply this to any grid item that is also a grid container element for a |
|
69 |
// nested grid. It must be applied after the zen-grid-item() mixin. |
|
70 |
// |
|
71 |
@mixin zen-nested-container () { |
|
72 |
padding: { |
|
73 |
left: 0; |
|
74 |
right: 0; |
|
75 |
} |
|
76 |
} |
|
77 |
|
|
78 |
// |
|
79 |
// Apply this to each grid item. Set the $column-span to the number of columns |
|
80 |
// that the grid item spans. And set the $column-position to the column number |
|
81 |
// the grid item starts on. |
|
82 |
// |
|
83 |
// For grid items that are floated right, the $column-position is counted |
|
84 |
// from the right instead of from the left. |
|
85 |
// |
|
86 |
@mixin zen-grid-item ( |
|
87 |
$column-span, |
|
88 |
$column-position, |
|
89 |
$float-direction: $zen-float-direction, |
|
90 |
$column-count: $zen-column-count, |
|
91 |
$gutter-width: $zen-gutter-width, |
|
92 |
$grid-width: $zen-grid-width, |
|
93 |
$box-sizing: $zen-box-sizing, |
|
94 |
$reverse-all-floats: $zen-reverse-all-floats, |
|
95 |
$auto-include-item-base: $zen-auto-include-item-base |
|
96 |
) { |
|
97 |
|
|
98 |
// Calculate the unit width. |
|
99 |
$unit-width: zen-unit-width($column-count, $grid-width); |
|
100 |
|
|
101 |
// Determine the float direction and its reverse. |
|
102 |
$dir: $float-direction; |
|
103 |
@if $reverse-all-floats { |
|
104 |
$dir: zen-direction-flip($dir); |
|
105 |
} |
|
106 |
$rev: zen-direction-flip($dir); |
|
107 |
|
|
108 |
float: $dir; |
|
109 |
$width: $column-span * $unit-width; |
|
110 |
@if $box-sizing == content-box { |
|
111 |
@if not comparable($width, $gutter-width) { |
|
112 |
$units-gutter: unit($gutter-width); |
|
113 |
$units-grid: unit($grid-width); |
|
114 |
@warn "The layout cannot be calculated correctly; when using box-sizing: content-box, the units of the gutter (#{$units-gutter} did not match the units of the grid width (#{$units-grid})."; |
|
115 |
} |
|
116 |
$width: $width - $gutter-width; |
|
117 |
} |
|
118 |
width: $width; |
|
119 |
margin: { |
|
120 |
#{$dir}: ($column-position - 1) * $unit-width; |
|
121 |
#{$rev}: (1 - $column-position - $column-span) * $unit-width; |
|
122 |
} |
|
123 |
|
|
124 |
// Auto-apply the unit base mixin. |
|
125 |
@if $auto-include-item-base { |
|
126 |
@include zen-grid-item-base($gutter-width, $box-sizing); |
|
127 |
} |
|
128 |
} |
|
129 |
|
|
130 |
// |
|
131 |
// Applies a standard set of properites to all grid items in the layout. |
|
132 |
// |
|
133 |
// See the note about the $zen-auto-include-item-base and |
|
134 |
// $zen-auto-include-flow-item-base variables for when to use this mixin. |
|
135 |
// |
|
136 |
// The mixin has the following optional parameters, but its better to use the |
|
137 |
// $zen-gutter-width and $zen-box-sizing variables instead: |
|
138 |
// - $gutter-width: Half of this value is applied as padding to the left and |
|
139 |
// right sides of the item. |
|
140 |
// - $box-sizing: The type of CSS3 box model each box should use. Can be set to |
|
141 |
// content-box or border-box. Defaults to content-box, but border-box is way |
|
142 |
// cooler. IE 6 and 7 don't support border-box. |
|
143 |
@mixin zen-grid-item-base ( |
|
144 |
$gutter-width: $zen-gutter-width, |
|
145 |
$box-sizing: $zen-box-sizing, |
|
146 |
$flow-direction: $zen-float-direction, |
|
147 |
$reverse-all-flows: $zen-reverse-all-floats |
|
148 |
) { |
|
149 |
|
|
150 |
$dir: $flow-direction; |
|
151 |
@if $reverse-all-flows { |
|
152 |
$dir: zen-direction-flip($dir); |
|
153 |
} |
|
154 |
|
|
155 |
padding: { |
|
156 |
left: zen-half-gutter($gutter-width, left, $dir); |
|
157 |
right: zen-half-gutter($gutter-width, right, $dir); |
|
158 |
} |
|
159 |
// Specify the border-box properties. |
|
160 |
@if $box-sizing == border-box { |
|
161 |
-moz-box-sizing: border-box; |
|
162 |
-webkit-box-sizing: border-box; |
|
163 |
-ms-box-sizing: border-box; |
|
164 |
box-sizing: border-box; |
|
165 |
} |
|
166 |
// Prevent borders since they'll break the layout with content-box. |
|
167 |
@if $box-sizing == content-box { |
|
168 |
border: 0 !important; |
|
169 |
} |
|
170 |
// Prevent overflowing content from being hidden beneath other grid items. |
|
171 |
word-wrap: break-word; // A very nice CSS3 property. |
|
172 |
|
|
173 |
@if ($legacy-support-for-ie6 or $legacy-support-for-ie7) { |
|
174 |
@if $box-sizing == border-box and $box-sizing-polyfill-path == "" { |
|
175 |
@warn "IE legacy support is on, but $box-sizing is set to #{$box-sizing} and the $box-sizing-polyfill-path is empty."; |
|
176 |
} |
|
177 |
@if $box-sizing-polyfill-path != "" { |
|
178 |
*behavior: url($box-sizing-polyfill-path); |
|
179 |
} |
|
180 |
@if $legacy-support-for-ie6 { |
|
181 |
_display: inline; // Display inline or double your floated margin! [1] |
|
182 |
_overflow: hidden; // Prevent overflowing content from breaking the layout. |
|
183 |
_overflow-y: visible; // In IE6, overflow visible is broken [2] |
|
184 |
// 1. http://www.positioniseverything.net/explorer/doubled-margin.html |
|
185 |
// 2. http://www.howtocreate.co.uk/wrongWithIE/?chapter=overflow%3Avisible%3B |
|
186 |
} |
|
187 |
} |
|
188 |
} |
|
189 |
|
|
190 |
// |
|
191 |
// Apply this to content boxes that need to be cleared below other content boxes. |
|
192 |
// |
|
193 |
@mixin zen-clear ( |
|
194 |
$float-direction: $zen-float-direction, |
|
195 |
$reverse-all-floats: $zen-reverse-all-floats |
|
196 |
) { |
|
197 |
// Determine the float direction. |
|
198 |
$dir: $float-direction; |
|
199 |
@if $reverse-all-floats { |
|
200 |
$dir: zen-direction-flip($dir); |
|
201 |
} |
|
202 |
clear: $dir; |
|
203 |
} |
|
204 |
|
|
205 |
// |
|
206 |
// Apply this to flow items that need to be floated. |
|
207 |
// |
|
208 |
@mixin zen-float ( |
|
209 |
$float-direction: $zen-float-direction, |
|
210 |
$reverse-all-floats: $zen-reverse-all-floats |
|
211 |
) { |
|
212 |
// Determine the float direction. |
|
213 |
$dir: $float-direction; |
|
214 |
@if $reverse-all-floats { |
|
215 |
$dir: zen-direction-flip($dir); |
|
216 |
} |
|
217 |
float: $dir; |
|
218 |
} |
|
219 |
|
|
220 |
// |
|
221 |
// Apply this to an HTML item that is in the normal flow of a document to help |
|
222 |
// align it to the grid. Set the $column-span to the number of columns that the |
|
223 |
// HTML element should span. For responsive layouts with a percentage-based grid |
|
224 |
// width, set the $parent-column-count to the number of columns that the parent |
|
225 |
// element spans; fixed-unit layouts using px, em, etc. do not need to specify |
|
226 |
// this. |
|
227 |
// |
|
228 |
// Unlike the zen-grid-item() mixin, this mixin does not float the HTML item; it |
|
229 |
// also does not have a half-gutter on each side. By default, it has no gutter |
|
230 |
// in the "alpha position" (the left side) and a full gutter in the "omega |
|
231 |
// position" (the right side.) You can turn on or off the alpha and omega |
|
232 |
// gutters by setting the $alpha-gutter and $omega-gutter parameters to true or |
|
233 |
// false. |
|
234 |
// |
|
235 |
// Note: when the $flow-direction is set to right (for RTL languages), the alpha |
|
236 |
// position is on the right and the omega position is on the left. |
|
237 |
// |
|
238 |
@mixin zen-grid-flow-item ( |
|
239 |
$column-span, |
|
240 |
$parent-column-count: false, |
|
241 |
$alpha-gutter: false, |
|
242 |
$omega-gutter: true, |
|
243 |
$flow-direction: $zen-float-direction, |
|
244 |
$column-count: $zen-column-count, |
|
245 |
$gutter-width: $zen-gutter-width, |
|
246 |
$grid-width: $zen-grid-width, |
|
247 |
$box-sizing: $zen-box-sizing, |
|
248 |
$reverse-all-flows: $zen-reverse-all-floats, |
|
249 |
$auto-include-flow-item-base: $zen-auto-include-flow-item-base |
|
250 |
) { |
|
251 |
|
|
252 |
$columns: $column-count; |
|
253 |
@if unit($grid-width) == "%" { |
|
254 |
@if $parent-column-count == false { |
|
255 |
@warn "For responsive layouts with a percentage-based grid width, you must set the $column-count to the number of columns that the parent element spans."; |
|
256 |
} |
|
257 |
@else { |
|
258 |
$columns: $parent-column-count; |
|
259 |
} |
|
260 |
} |
|
261 |
|
|
262 |
$dir: $flow-direction; |
|
263 |
@if $reverse-all-flows { |
|
264 |
$dir: zen-direction-flip($dir); |
|
265 |
} |
|
266 |
$rev: zen-direction-flip($dir); |
|
267 |
|
|
268 |
// Calculate the item's width. |
|
269 |
$width: zen-grid-item-width($column-span, $columns, $grid-width); |
|
270 |
@if $box-sizing == content-box { |
|
271 |
@if not comparable($width, $gutter-width) { |
|
272 |
$units-gutter: unit($gutter-width); |
|
273 |
$units-grid: unit($grid-width); |
|
274 |
@warn "The layout cannot be calculated correctly; when using box-sizing: content-box, the units of the gutter (#{$units-gutter} did not match the units of the grid width (#{$units-grid})."; |
|
275 |
} |
|
276 |
$width: $width - $gutter-width; |
|
277 |
} |
|
278 |
width: $width; |
|
279 |
|
|
280 |
// Auto-apply the unit base mixin. |
|
281 |
@if $auto-include-flow-item-base { |
|
282 |
@include zen-grid-item-base($gutter-width, $box-sizing); |
|
283 |
} |
|
284 |
|
|
285 |
// Ensure the HTML item either has a full gutter or no gutter on each side. |
|
286 |
padding-#{$dir}: 0; |
|
287 |
@if $alpha-gutter { |
|
288 |
margin-#{$dir}: $gutter-width; |
|
289 |
} |
|
290 |
$offset: ($columns - $column-span) * $gutter-width / $columns; |
|
291 |
padding-#{$rev}: $offset; |
|
292 |
@if $omega-gutter { |
|
293 |
margin-#{$rev}: $gutter-width - $offset; |
|
294 |
} |
|
295 |
@else { |
|
296 |
margin-#{$rev}: -($offset); |
|
297 |
} |
|
298 |
} |
|
299 |
|
|
300 |
|
|
301 |
// |
|
302 |
// Helper functions for the Zen mixins. |
|
303 |
// |
|
304 |
|
|
305 |
// Returns a half gutter width. |
|
306 |
@function zen-half-gutter( |
|
307 |
$gutter-width: $zen-gutter-width, |
|
308 |
$gutter-side: $zen-float-direction, |
|
309 |
$flow-direction: $zen-float-direction |
|
310 |
) { |
|
311 |
$half-gutter: $gutter-width / 2; |
|
312 |
// Special handling in case gutter has an odd number of pixels. |
|
313 |
@if unit($gutter-width) == "px" { |
|
314 |
@if $gutter-side == $flow-direction { |
|
315 |
@return floor($half-gutter); |
|
316 |
} |
|
317 |
@else { |
|
318 |
@return ceil($half-gutter); |
|
319 |
} |
|
320 |
} |
|
321 |
@return $half-gutter; |
|
322 |
} |
|
323 |
|
|
324 |
// Calculates the unit width of a column. |
|
325 |
@function zen-unit-width ( |
|
326 |
$column-count: $zen-column-count, |
|
327 |
$grid-width: $zen-grid-width |
|
328 |
) { |
|
329 |
$unit-width: $grid-width / $column-count; |
|
330 |
@if unit($unit-width) == "px" and floor($unit-width) != ceil($unit-width) { |
|
331 |
@warn "You may experience rounding errors as the grid width, #{$grid-width}, does not divide evenly into #{$column-count} columns."; |
|
332 |
} |
|
333 |
@return $unit-width; |
|
334 |
} |
|
335 |
|
|
336 |
// Calculates the width of a grid item that spans the specified number of columns. |
|
337 |
@function zen-grid-item-width ( |
|
338 |
$column-span, |
|
339 |
$column-count: $zen-column-count, |
|
340 |
$grid-width: $zen-grid-width |
|
341 |
) { |
|
342 |
@return $column-span * zen-unit-width($column-count, $grid-width); |
|
343 |
} |
|
344 |
|
|
345 |
// Returns the opposite direction, given "left" or "right". |
|
346 |
@function zen-direction-flip($dir) { |
|
347 |
@if $dir == left { |
|
348 |
@return right; |
|
349 |
} |
|
350 |
@else if $dir == right { |
|
351 |
@return left; |
|
352 |
} |
|
353 |
@else if $dir == none or $dir == both { |
|
354 |
@return $dir; |
|
355 |
} |
|
356 |
@warn "Invalid direction passed to zen-direction-flip()."; |
|
357 |
@return both; |
|
358 |
} |
|
359 |
: @options{ : |
|
360 |
@linei:@has_childrenT:@children[1o:Sass::Tree::CommentNode |
|
361 |
:@value["1/* |
|
362 |
* Mixins for the Zen Grids system. |
|
363 |
* */;@;i; |
|
364 |
[ : |
|
365 |
@type:silento; |
|
366 |
;["5/* Specify the number of columns in the grid. */;@;i; |
|
367 |
[ ; ;o:Sass::Tree::VariableNode: @guarded" !default;@: |
|
368 |
@expro:Sass::Script::Number:@denominator_units[ ;i:@numerator_units[ ;@:@original"1;i: |
|
369 |
@name"zen-column-count;i; |
|
370 |
[ o; |
|
371 |
;["p/* Specify the width of the gutters; half of the gutter will be placed on each |
|
372 |
* side of a grid column. */;@;i; |
|
373 |
[ ; ;o;;" !default;@;o;;[ ;i;["px;@;" 20px;i;"zen-gutter-width;i; |
|
374 |
[ o; |
|
375 |
;["?/* You can generate more efficient CSS if you manually apply the |
|
376 |
* zen-grid-item-base mixin to all grid items from within a single ruleset. */;@;i; |
|
377 |
[ ; ;o;;" !default;@;o:Sass::Script::Bool;T;@;i;"zen-auto-include-item-base;i; |
|
378 |
[ o;;" !default;@;o;;T;@;i;"$zen-auto-include-flow-item-base;i; |
|
379 |
[ o; |
|
380 |
;["?/* Specify the width of the entire grid. Defaults to 100% for a fluid responsive |
|
381 |
* design, but you can change this to a pixel value if you need a fixed grid. */;@;i; |
|
382 |
[ ; ;o;;" !default;@;o;;[ ;ii;["%;@;" 100%;i;"zen-grid-width;i; |
|
383 |
[ o; |
|
384 |
;["?/* The box-sizing polyfill for IE6/7 requires an absolute path to the |
|
385 |
* boxsizing.htc file. See https://github.com/Schepp/box-sizing-polyfill */;@;i; |
|
386 |
[ ; ;o;;" !default;@;o:Sass::Script::String ;" |
creating zen_dataportal subtheme