summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/vendor/boilerplate-1.0/_styles.scss
blob: 3852329433a14d2a877951d917cb7c6172d85b6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
// HTML5 ✰ Boilerplate
//
// style.css contains a reset, font normalization and some base styles.
//
// Credit is left where credit is due.
// Much inspiration was taken from these projects:
// - yui.yahooapis.com/2.8.1/build/base/base.css
// - camendesign.com/design/
// - praegnanz.de/weblog/htmlcssjs-kickstart
//
// Modified to fit Survival ✚ Kit

  html {
    @include sk-html;
    overflow-y: scroll;
  }


// Sections (body, section, nav, article, aside, h1..6, header, footer, address)
// ----------------------------------------

  body, select, input, textarea { color: $font-color; font-family: $base-font-family; }

  body {  @include sk-body; font-size: $base-font-size; line-height: $base-line-height; }


// Grouping Content (p, hr, pre, blockquote, ol, ul, li, dl, dt, dt, dd, figure, figcaption, div)
// ----------------------------------------

  p { margin: 0 0 1em 0;}
  li { margin-bottom: (1em / 2);}

  hr { border: 0; border-top: 1px solid $hr-color; display: block; height: 1px; margin: 1em 0; padding: 0; }

  blockquote  { color: #666; font-style: italic; margin: 1.5em; }

  // normalize monospace sizing
  // meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/
  // en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome
  pre {
    // www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/
    white-space: pre; white-space: pre-wrap; word-wrap: break-word;
    padding: 15px;
  }

  pre, code, kbd, samp { font-family: monospace, sans-serif; }

  // Lists
  ul, ol { margin:$list-margin; padding:$list-padding;}

  ol { list-style-type: decimal; }

  // Remove margin from navigation lists.
  nav ul,
  nav li  { list-style:none; list-style-image: none; margin: 0; }

  // Lists
  dl      { margin: 0 0 1.5em 0; }

  dl dt   { font-weight: bold; }

  dd      { margin-left: 1.5em;}


// Text Level Semantics (a, em, strong, small, s, cite, q, dfn, abbr, time, code, var, samp, kbd, sub, i, b, u, mark, ruby, rt, rp, bdi, bdo, span, br, wbr)
// ----------------------------------------

  // Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test
  a {text-decoration:none;}

  a:hover, a:active { outline: none; text-decoration:underline;}

  a, a:active, a:visited { color: $link-color; }

  a:hover { color: $link-hover-color; }

  // Headers (h1, h2, etc) have no default font-size or margin; define those yourself
  h1, h2, h3, h4, h5, h6 { @include sk-header-tags; }

  // j.mp/webkit-tap-highlight-color
  a:link { -webkit-tap-highlight-color: #FF5E99; }

  small { font-size: 85%; }

  strong, b, th, dfn { font-weight: bold; }

  em, i { font-style:italic; }

  mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }

  abbr,
  acronym     { border-bottom: 1px dotted #666; }

  address     { font-style: italic; margin: 0 0 1.5em; }

  // Set sub, sup without affecting line-height: gist.github.com/413930
  sub, sup { font-size: 75%; line-height: 0; position: relative; }

  sup { top: -0.5em; }

  sub { bottom: -0.25em; }


// Embedded Content (img)
// ----------------------------------------

  // Bicubic resizing for non-native sized IMG:
  // code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
  .ie7 img { -ms-interpolation-mode: bicubic; }


// Tabular Data (table, caption, colgroup, col, tbody, thead, tfoot, tr, td, th)
// ----------------------------------------

  table       { margin-bottom: 1.4em; width:100%; }

  th          { font-weight: bold; }

  th,td,caption { padding: 4px 10px 4px 5px; text-align: left; }


// Edits (ins, del)
// ----------------------------------------

  ins { background-color: #ff9; color: #000; text-decoration: none; }

  del { color:#666; }


// Forms
// ----------------------------------------

  select, input, textarea, button { font: 99% $base-font-family; outline:none;}

  td { vertical-align: top; }

  textarea { overflow: auto; }

  // Align checkboxes, radios, text inputs with their label by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css
  input[type="radio"] { vertical-align: text-bottom; }

  input[type="checkbox"] { vertical-align: bottom; }

  // Hand cursor on clickable input elements

  label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }

  // Webkit browsers add a 2px margin outside the chrome of form elements
  button, input, select, textarea { margin: 0; }


  // required:valid and required:invalid moved to form.scss

  // Make buttons play nice in IE:
  // www.viget.com/inspire/styling-the-button-element-in-internet-explorer/
  button { overflow: visible;  width: auto; }

  @if in-compatibility-mode() {
  .ie7 input[type="checkbox"] { vertical-align: baseline; }

  .ie6 input { vertical-align: text-bottom; }

  .ie6 legend, .ie7 legend { margin-left: -7px; }
  }


// Etc.
// ----------------------------------------

  ::-moz-selection{ background: $selected-background-color; color:$selected-font-color; text-shadow: none; }
  ::selection { background:$selected-background-color; color:$selected-font-color; text-shadow: none; }