summaryrefslogtreecommitdiff
path: root/style.scss
blob: ef9e08d55047d81fabce6e5def592f80ce30f695 (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
/*
Theme Name: Kil-a-Bytes
Theme URI: http://mckenzierobotics.org

Author: Luke Shumaker
Author URI: http://lukeshu.ath.cx

License: GNU General Public License
License URI: license.txt

Description: HTML5 Theme for FRC team 1024, a child theme of Twenty-Eleven
Version: 0.1

Template: twentyeleven
*/

@import url('http://fonts.googleapis.com/css?family=Anton');
@import "../twentyeleven/style.css";
@import "twentyeleven-fix.scss";
@import "logo-style.scss";



$yellow         : #FFFF00;
$background-blue: #2210D2;
$highlight-blue : #0000FF; //<-lighter than background, darker than light
$light-blue     : #1E90FF;

@mixin gradient($color1, $color2) {
	background-color: $color1;
	filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#{$color1}, endColorstr=#{$color2});
	background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($color1), to($color2)); // older syntax
	background-image: -webkit-linear-gradient($color1, $color2);
	background-image:    -moz-linear-gradient($color1, $color2);
	background-image:      -o-linear-gradient($color1, $color2);
	background-image:         linear-gradient($color1, $color2);
}

body {
	background-color: $background-blue;		
	#page {
		//I wouldn't use px, but we get roundoff errors otherwise
		$border-width: 1px;
		border: {
			style: solid;
			width: $border-width;
			color: black;
			radius: 2em 2em 0 0;
		}
		header#branding {
			border: none;/* override inherit from twentyeleven */
			hgroup {
				margin: -$border-width;
				margin-bottom: 0;
				border: {
					style: solid;
					width: $border-width;
					color: #000099;
					radius: 2em 2em 0 0;
					bottom: none
				}

				overflow: hidden;
				box-shadow: 0 .15em 0 #AAAAFF inset;
				$bg-width: 472px;
				$bg-height: 200px;
				$padding-top: 25px;
				height: $bg-height - $padding-top;
				padding: $padding-top $bg-width 0 3em;
				background: {
					color: $light-blue;
					image: url('img/swoosh.png');
					repeat: no-repeat;
					position: right bottom;
				}
				a {
					text-decoration: inherit;
					color: inherit;
				}
				#team-name {
					@extend .logo-nowhite;
					font-size: 80px;
				}
				h2 {
					@extend .logo-nowhite;
					font-size: 40px;
				}
				#team-number {
					@extend .logo-white;
					position: absolute;
					bottom: 0.2em;
					right: 0.4em;
					font-size: 130px;
					line-height: 1em;
				}
			}
		}
		#access {
			box-shadow: none;
			border-top: solid 0.3em $yellow;
			@include gradient($light-blue, $highlight-blue);
			li:hover > a, a:focus {
				@include gradient($yellow, darken($yellow, 10%));
			}
		}
	}	
}

@mixin small_branding {
	body #page header#branding hgroup {
		#team-name {
			font-size: 60px;
		}
		h2 {
			font-size: 30px;
		}
	}	
}

@mixin mobile_branding {
	body #page header#branding {
		hgroup {
			height: auto;
			background-image: none;
			padding: 2em;
			
			h1, h2 {
				clear:none;
			}
			#team-name{
				font-size: 3em;
				float: left
			}
			h2 {
				font-size: 2em;
				float: left;
			}
			#team-number {
				font-size: 5em;
				float: right;
				
				position: relative;
				right: auto;
				&:before {
					text-shadow: none;
					transform: none;
					content: "FRC";
					color: white;
					font-family: serif;
					font-size: 0.2em;
					vertical-align: text-top;
				}
			}
		}
	}
}

#ie7, #ie8 {
	@include small_branding;
}

#ie6 {
	@include mobile_branding;
}

@media (max-width: 1050px) {
	@include small_branding;
}
@media (max-width: 800px) {
	@include mobile_branding;
}