1 |
85ad3d82
|
Assos Assos
|
//
|
2 |
|
|
// Custom sass variables and mixins
|
3 |
|
|
//
|
4 |
|
|
// Variables
|
5 |
|
|
// -----------------------------------------------------------------------------
|
6 |
|
|
// The variables set here serve only as example of how you can use SASS variables
|
7 |
|
|
// to centralize and control frequently used styles more easily. Here you will
|
8 |
|
|
// find variables for colors, fonts and the global gutter width.
|
9 |
|
|
//
|
10 |
|
|
// Mixins
|
11 |
|
|
// -----------------------------------------------------------------------------
|
12 |
|
|
// To use a mixin in this file, add this line to the top of your .scss file:
|
13 |
|
|
// @import "base"; (_base.scss imports _custom.scss).
|
14 |
|
|
//
|
15 |
|
|
// Then to use a mixin for a particular rule, add this inside the ruleset's
|
16 |
|
|
// curly brackets:
|
17 |
|
|
// @include mix-in-name;
|
18 |
|
|
//
|
19 |
|
|
|
20 |
|
|
//
|
21 |
|
|
// Color Variables
|
22 |
|
|
// Colors used in the sample global.styles. You can use these to recolor many
|
23 |
|
|
// elements such as forms, tables, tabs etc.
|
24 |
|
|
//
|
25 |
|
|
|
26 |
|
|
$page: #fff; // to match the page background, default is white
|
27 |
|
|
$border: #ccc; // all borders set in global.styles - tables, fieldset, primary links
|
28 |
|
|
$highlight: #c00; // required mark, form error highlight, "new" label on comments
|
29 |
|
|
$ultralight: #f5f5f5; // table row even, primary link inactive tabs
|
30 |
|
|
$light: #eee; // table row odd active, primary link inactive hover
|
31 |
|
|
$medium_light: #ebebeb; // table row even active
|
32 |
|
|
$medium_dark: #e5e5e5; // table thead
|
33 |
|
|
$debug: rgba(255, 192, 203, 0.5); // Full width wrapper test
|
34 |
|
|
|
35 |
|
|
$thead: $medium_dark;
|
36 |
|
|
$tr_odd: $page;
|
37 |
|
|
$tr_even: $ultralight;
|
38 |
|
|
$tr_odd_active: $light;
|
39 |
|
|
$tr_even_active: $medium_light;
|
40 |
|
|
|
41 |
|
|
$primary_task: $ultralight;
|
42 |
|
|
$primary_task_hover: $light;
|
43 |
|
|
$primary_task_active: $page;
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
//
|
47 |
|
|
// Font Variables
|
48 |
|
|
// These font stacks are an exact copy of the stacks found in AT Cores
|
49 |
|
|
// theme settings for web safe fonts.
|
50 |
|
|
//
|
51 |
|
|
|
52 |
|
|
$sans-serif-small: 'Trebuchet MS', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
53 |
|
|
$sans-serif-large: Verdana, Geneva, 'DejaVu Sans', Arial, Helvetica, sans-serif;
|
54 |
|
|
$sans-serif-arial-helvetica: Arial, Helvetica, sans-serif;
|
55 |
|
|
$calibri-candara: Calibri, Candara, Arial, Helvetica, sans-serif;
|
56 |
|
|
$serif-small: Garamond, Perpetua, 'Times New Roman', serif;
|
57 |
|
|
$serif-large: Georgia, Baskerville, Palatino, 'Palatino Linotype', 'Book Antiqua', 'Times New Roman', serif;
|
58 |
|
|
$modern-myriad: 'Segoe UI', 'Myriad Pro', Myriad, Arial, Helvetica, sans-serif;
|
59 |
|
|
$lucida: 'Lucida Sans Unicode', 'Lucida Sans', 'Lucida Grande', Verdana, Geneva, sans-serif;
|
60 |
|
|
$impact: Impact, Haettenschweiler, 'Franklin Gothic Bold', Charcoal, 'Helvetica Inserat', 'Bitstream Vera Sans Bold', 'Arial Black', sans-serif;
|
61 |
|
|
$mono: Consolas, Monaco, 'Courier New', Courier, monospace, sans-serif;
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
//
|
65 |
|
|
// Gutters
|
66 |
|
|
//
|
67 |
|
|
// Set a variable for the gutters. Adaptivetheme allows you to easly modify the
|
68 |
|
|
// global gutter width for precise control over the design. Panel pages need
|
69 |
|
|
// special gutter wrangling when a Panel is inside #content wrapper, so to ease
|
70 |
|
|
// setting this we use a variable.
|
71 |
|
|
//
|
72 |
|
|
$gutter-width: 10px;
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
//
|
76 |
|
|
// Markup free clearing
|
77 |
|
|
// http://www.stubbornella.org/content/2012/05/02/cross-browser-debugging-css/
|
78 |
|
|
//
|
79 |
|
|
|
80 |
|
|
@mixin cf {
|
81 |
|
|
overflow: hidden; // New formatting context in better browsers
|
82 |
|
|
*overflow: visible; // Protect IE7 and older from the overflow property
|
83 |
|
|
*zoom: 1; // Give IE hasLayout, a new formatting context equivalent
|
84 |
|
|
}
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
//
|
88 |
|
|
// Image replacement
|
89 |
|
|
// Kellum Method: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement
|
90 |
|
|
// Additional helpers from http://html5boilerplate.com/docs/css/
|
91 |
|
|
// This is also included as a SASS mixin, see: sass/custom.rb
|
92 |
|
|
//
|
93 |
|
|
|
94 |
|
|
@mixin ir {
|
95 |
|
|
// Kellum Method
|
96 |
|
|
display: block !important;
|
97 |
|
|
text-indent: 100%;
|
98 |
|
|
white-space: nowrap;
|
99 |
|
|
overflow: hidden;
|
100 |
|
|
// Additional helpers
|
101 |
|
|
border: 0; // Remove the default border from elements like <button>
|
102 |
|
|
font: 0/0 a; // Crush the text down to take up no space
|
103 |
|
|
text-shadow: none; // Remove any text shadows
|
104 |
|
|
color: transparent; // Hide any residual text in Safari 4 and any mobile devices that may need it
|
105 |
|
|
background-color: transparent; // Hide the default background color on elements like <button>
|
106 |
|
|
}
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
//
|
110 |
|
|
// element-invisible improved and more robust
|
111 |
|
|
//
|
112 |
|
|
@mixin element-invisible {
|
113 |
|
|
border: 0;
|
114 |
|
|
height: 1px;
|
115 |
|
|
overflow: hidden;
|
116 |
|
|
padding: 0;
|
117 |
|
|
position: absolute !important;
|
118 |
|
|
width: 1px;
|
119 |
|
|
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
120 |
|
|
clip: rect(1px 1px 1px 1px); // IE6 and IE7 use the wrong syntax
|
121 |
|
|
}
|
122 |
|
|
clip: rect(1px, 1px, 1px, 1px);
|
123 |
|
|
}
|
124 |
|
|
|
125 |
|
|
|
126 |
|
|
//
|
127 |
|
|
// Turns off the element-invisible effect
|
128 |
|
|
//
|
129 |
|
|
@mixin element-invisible-off {
|
130 |
|
|
position: static !important;
|
131 |
|
|
clip: auto;
|
132 |
|
|
height: auto;
|
133 |
|
|
width: auto;
|
134 |
|
|
overflow: auto;
|
135 |
|
|
}
|
136 |
|
|
|
137 |
|
|
@mixin element-focusable {
|
138 |
|
|
@include element-invisible;
|
139 |
|
|
|
140 |
|
|
&:active,
|
141 |
|
|
&:focus {
|
142 |
|
|
@include element-invisible-off;
|
143 |
|
|
}
|
144 |
|
|
}
|
145 |
|
|
|
146 |
|
|
|
147 |
|
|
//
|
148 |
|
|
// Shift content offscreen, can be usefull when you reall need to do this
|
149 |
|
|
//
|
150 |
|
|
@mixin offscreen {
|
151 |
|
|
position: absolute;
|
152 |
|
|
top: -99999em;
|
153 |
|
|
width: 1px;
|
154 |
|
|
height: 1px;
|
155 |
|
|
overflow: hidden;
|
156 |
|
|
outline: 0;
|
157 |
|
|
}
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
//
|
161 |
|
|
// Hide content from all users
|
162 |
|
|
//
|
163 |
|
|
@mixin element-hidden {
|
164 |
|
|
display: none;
|
165 |
|
|
}
|
166 |
|
|
|
167 |
|
|
|
168 |
|
|
//
|
169 |
|
|
// The word "Unpublished" displayed underneath unpublished nodes and comments
|
170 |
|
|
//
|
171 |
|
|
@mixin unpublished {
|
172 |
|
|
color: pink; // target browsers that do not support rgba
|
173 |
|
|
color: rgba(239, 170, 170, 0.4);
|
174 |
|
|
font-family: $impact;
|
175 |
|
|
font-size: 50px;
|
176 |
|
|
font-weight: 700;
|
177 |
|
|
line-height: 1.2;
|
178 |
|
|
height: 0;
|
179 |
|
|
margin: 0;
|
180 |
|
|
padding: 0;
|
181 |
|
|
overflow: visible;
|
182 |
|
|
text-align: center;
|
183 |
|
|
text-transform: uppercase;
|
184 |
|
|
word-wrap: break-word;
|
185 |
|
|
|
186 |
|
|
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
187 |
|
|
.ie6-7 &>* {
|
188 |
|
|
position: relative; // Otherwise these elements will appear below the "Unpublished" text.
|
189 |
|
|
}
|
190 |
|
|
}
|
191 |
|
|
} |