summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/leap.scss
blob: b51d22b1b6022f860142e050100dda0028d73f81 (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
172
173
174
175
176
177
178
179
180
181


$background_color: #fff;

$masthead_border_color: black; // rgba(0,0,0,0.5);
$masthead_border: 1px solid $masthead_border_color;
$masthead_bg_color: #333; // rgba(96,96,96,0.2);
$masthead_color: #fff;
$masthead_height: 128px;

$masthead_text_left_margin: 150px;
$masthead_text_top_margin: 45px;
$masthead_text_size: 36px;

$cutout_color: darken($background_color,12%);

$side_column_bg_color: #d0d0d0; // rgba(0,0,0,0.05); // #e3e3e3
$side_column_border_color: #aaa; // rgba(0,0,0,0.2);
$side_column_active_bg_color: #000;
$side_column_active_color: $masthead_color;

$well_color: #fff;
$well_bg_color: #fff;
$well_border_color: #555;

body {
  //background: #F5F1E8 url(/img/bg-sand.png) repeat-x;
  background-color: $background_color;
}

.masthead {
  border: $masthead_border;
  background: $masthead_bg_color;
  @include gradient-vertical(lighten($masthead_bg_color,8%),$masthead_bg_color);
  border-top: none;
  box-shadow: inset 0 0 8px 1px darken($masthead_bg_color, 8%);
  box-shadow-top: 0;
  .contents {
    @include cutout-menu(topnav, $masthead_text_left_margin, $cutout_color, $masthead_border);
    height: $masthead_height;
    background: url(/img/leap-color-small.png) 10px 50% no-repeat;
  }
  h1 {
    margin: 0;
    color: $masthead_color;
    line-height: $masthead_height;
    font-size: $masthead_text_size;
    white-space: nowrap;
    overflow: hidden;
    padding-left: $masthead_text_left_margin - 2px;
  }
  #topnav a.tab {
    font-weight: bold;
    color: white;
    background: rgba(0,0,0,0.5);
    &.active {
      color: black;
    }
  }
}

.nav-tabs.nav-stacked li {
  background: $side_column_bg_color;
  a {
    border-radius: 0 !important;
    border: 0;
    border-right: 4px solid $side_column_active_bg_color;
    color: black;
    line-height: 1.2em;
    &:hover {
      background: lighten($side_column_bg_color,20%);
      border-color: lighten($side_column_active_bg_color, 50%);
      text-decoration: underline;
    }
    &.level2 {
      padding-left: 2em;
    }
  }
  &.active a {
    border: 0;
    border-right: 4px solid $side_column_active_bg_color;
    background: $side_column_active_bg_color;
    color: $side_column_active_color;
    cursor: pointer;
  }
}

.side_column ul {
  box-shadow: 2px 4px 4px 0px darken($background_color,40%);
  //background: $side_column_bg_color;
  //box-shadow: inset 0px 0px 5px 2px darken($side_column_bg_color,10%);
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  z-index: -1;
  @include gradient-vertical(darken($background_color, 17%), $background_color);
}

.pullout {
  background: rgba(0,0,0,.1);
}

//
// like bootstrap well, but not roundy
//

.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 11px; // same as 'p', not sure what variable this is.
  background-color: $well_bg_color;
  //@include gradient-vertical($well_bg_color, lighten($well_bg_color, 20%));
  box-shadow: inset 0px 0px 4px 2px darken($well_bg_color,10%);
  //box-shadow: 3px 3px 4px 2px rgba(0,0,0,0.05); // darken($background_color,10%);
  border: 1px solid lighten($well_border_color,50%);
  .heading {
    margin-top: -6px;
    margin-bottom: 6px;
    //margin: -20px;
    //margin-bottom: 0.75em;
    //padding: 6px 19px;
    //background: $well_border_color;
    //color: $well_color;
    font-weight: bold;
    font-size: 1.1em;
  }
}

//
// inverted headings
//

.invert {
  color: white;
  background-color: $well_border_color;
  padding-left: 12px;
}


table.timeline {
  td:first-child {
    text-align: right;
    white-space: nowrap;
    padding-right: 0;
  }
  td {
    vertical-align: top;
    padding: 6px;
  }
}

//
// blog stuff
//


article.blog_summary {
  margin-bottom: 1em;
  .byline {
    color: #999;
  }
  .content {
    p {
      margin-bottom: 0;
    }
  }
}

article.blog_full {
  .byline {
    font-weight: bold;
    margin-bottom: 0.5em;
    font-size: 1em;
    color: #999;
  }
}