Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: static/css/styles.css

Issue 29335113: Issue 2675 - Implemented responsive header for web.eyeo.com (Closed)
Patch Set: Fixed code style and consistancy issues Created June 23, 2016, 5:23 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « static/acceptable-ads-application.html ('k') | static/images/logo.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Fonts 2 * Fonts
3 */ 3 */
4 @font-face { 4 @font-face {
5 font-family: "Lato"; 5 font-family: "Lato";
6 font-style: normal; 6 font-style: normal;
7 font-weight: 400; 7 font-weight: 400;
8 src: local("Lato Regular"), local("Lato-Regular"), url(/fonts/Lato-Regular.wof f) format('woff'); 8 src: local("Lato Regular"), local("Lato-Regular"), url(/fonts/Lato-Regular.wof f) format('woff');
9 } 9 }
10 @font-face { 10 @font-face {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 font-size:14px; 94 font-size:14px;
95 } 95 }
96 96
97 h6 97 h6
98 { 98 {
99 font-size:12px; 99 font-size:12px;
100 } 100 }
101 101
102 #header 102 #header
103 { 103 {
104 display: block; 104 position: fixed;
105 background-color: #fff;
106 width: 100%;
107 top: 0px;
108 left: 0px;
109 box-shadow: 0px 0px 12px rgba(0,0,0, 0.09);
110 z-index: 10000;
111 text-align: right;
112 }
113
114 #header .content-block
115 {
116 position: relative;
117 padding: 15px 10px;
118 min-height: 32px;
119 }
120
121 #header.top .content-block
122 {
123 padding: 25px 10px;
124 }
125
126 #logo
127 {
105 position: absolute; 128 position: absolute;
106 background-color: #ffffff; 129 top: 7px;
107 width: 100%; 130 left: 10px;
108 top: 0; 131 }
109 left: 0; 132
110 box-shadow: 0 0 12px rgba(0,0,0, 0.09); 133 #header.top #logo
111 z-index: 10000; 134 {
112 } 135 top: 17px;
113 136 }
114 #header.fixed 137
115 { 138 #header .menu-button
116 position: fixed; 139 {
117 } 140 margin: 0px 0px 0px 25px;
118
119 #header-content
120 {
121 display: table;
122 width: 100%;
123 }
124
125 #logo
126 {
127 display: table-cell;
128 padding: 13px 0;
129 }
130
131 #header.fixed #logo
132 {
133 padding: 5px 0;
134 } 141 }
135 142
136 #menu 143 #menu
137 { 144 {
138 display: table-cell; 145 display: inline;
139 vertical-align: middle; 146 vertical-align: middle;
140 width: 100%;
141 } 147 }
142 148
143 .assistive-text 149 .assistive-text
144 { 150 {
145 position: absolute; 151 position: absolute !important;
152 height: 1px;
153 width: 1px;
154 overflow: hidden;
146 clip: rect(1px, 1px, 1px, 1px); 155 clip: rect(1px, 1px, 1px, 1px);
147 } 156 }
148 157
149 .menu-list 158 .menu-list
150 { 159 {
160 display: inline;
161 margin: 0px;
162 font-size: 15px;
151 list-style: none; 163 list-style: none;
152 margin: 0;
153 padding: 0;
154 min-height: 36px;
155 font-size: 14px;
156 float: right;
157 } 164 }
158 165
159 .menu-list li 166 .menu-list li
160 { 167 {
161 position: relative; 168 display: inline;
169 font-weight: bold;
162 white-space: nowrap; 170 white-space: nowrap;
163 display: block;
164 font-size: 15px;
165 font-weight: bold;
166 line-height: 36px;
167 outline-width: 0;
168 float: left;
169 margin-right: 1px;
170 } 171 }
171 172
172 .menu-list li a 173 .menu-list li a
173 { 174 {
174 color: #979797; 175 color: #979797;
175 padding: 0 10px; 176 padding: 0 10px;
176
177 -webkit-transition: all 0.3s ease;
178 -moz-transition: all 0.3s ease;
179 -o-transition: all 0.3s ease;
180 transition: all 0.3s ease;
181 } 177 }
182 178
183 .menu-list li:hover > a, 179 .menu-list li:hover > a,
184 .menu-list li.current-menu-item > a 180 .menu-list li.current-menu-item > a
185 { 181 {
186 color: #373737; 182 color: #373737;
187 } 183 }
188 184
189 .menu-button 185 #header-hamburger
190 { 186 {
191 float: right; 187 display: none;
192 margin-left: 25px; 188 }
189
190 #header-hamburger:hover .icon-bar,
191 #header-hamburger:focus .icon-bar,
192 #header-hamburger:active .icon-bar
193 {
194 background-color: #000;
195 }
196
197
198 .icon-bar
199 {
200 display: block;
201 width: 22px;
202 height: 2px;
203 border-radius: 1px;
204 background-color: #888;
205 }
206
207 .icon-bar+.icon-bar
208 {
209 margin-top: 4px;
193 } 210 }
194 211
195 #content:before, 212 #content:before,
196 #content:after, 213 #content:after,
197 #header:before,
198 #header:after,
199 .columns-container:before, 214 .columns-container:before,
200 .columns-container:after 215 .columns-container:after
201 { 216 {
202 content: " "; 217 content: " ";
203 display: table; 218 display: table;
204 } 219 }
205 220
206 #content:after, 221 #content:after,
207 #header:after,
208 .columns-container:after 222 .columns-container:after
209 { 223 {
210 clear: both; 224 clear: both;
211 } 225 }
212 226
213 #footer 227 #footer
214 { 228 {
215 color: #666; 229 color: #666;
216 background-color: #252525; 230 background-color: #252525;
217 padding-top: 30px; 231 padding-top: 30px;
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 background-color: #747474; 792 background-color: #747474;
779 } 793 }
780 794
781 .why-work-here-button:hover, 795 .why-work-here-button:hover,
782 .why-work-here-button:focus 796 .why-work-here-button:focus
783 { 797 {
784 background-color: #333; 798 background-color: #333;
785 } 799 }
786 800
787 801
788 @media (max-width: 750px) 802 @media (max-width: 768px)
789 { 803 {
804 body
805 {
806 padding-top: 50px;
807 }
808
809 #header .content-block,
810 #header.top .content-block
811 {
812 padding: 9px 10px;
813 }
814
815 #header.top #logo
816 {
817 top: 7px;
818 }
819
820 #logo > img
821 {
822 height: 34px;
823 }
824
825 #menu
826 {
827 display: none;
828 }
829
830 #menu.open
831 {
832 display: block;
833 }
834
835 #header-hamburger
836 {
837 position: absolute;
838 top: 9px;
839 right: 10px;
840 display: block;
841 padding: 0px;
842 margin: 0px 5px;
843 background: none;
844 }
845
846 .menu-list
847 {
848 margin-top: 45px;
849 padding: 0px;
850 display: block;
851 }
852
853 .menu-list > li
854 {
855 display: block;
856 border-top: 1px solid #eee;
857 }
858
859 .menu-list > li > a
860 {
861 display: block;
862 margin: 0px;
863 padding: 10px;
864 font-size: 14px
865 }
866
867 .menu-button
868 {
869 position: absolute;
870 top: 9px;
871 right: 50px;
872 height: 32px;
873 padding: 0 10px;
874 line-height: 32px;
875 font-size: 14px;
876 }
877
790 .columns-container .column 878 .columns-container .column
791 { 879 {
792 width: 100%; 880 width: 100%;
793 margin-left: 0; 881 margin-left: 0;
794 clear: both; 882 clear: both;
795 } 883 }
796 884
797 #logo
798 {
799 padding: 5px 0;
800 }
801
802 #menu .menu-list
803 {
804 clear: both;
805 margin-left: -150px;
806 }
807
808 #menu .menu-button
809 {
810 margin-top: 5px;
811 }
812
813 #press-info .sidebar-left 885 #press-info .sidebar-left
814 { 886 {
815 text-align: inherit; 887 text-align: inherit;
816 } 888 }
817 889
818 #releases li > * 890 #releases li > *
819 { 891 {
820 display: block; 892 display: block;
821 } 893 }
822 894
(...skipping 25 matching lines...) Expand all
848 padding-right: .1em; 920 padding-right: .1em;
849 border-right-width: 1px; 921 border-right-width: 1px;
850 border-right-width: 1px; 922 border-right-width: 1px;
851 } 923 }
852 924
853 #panels-openings 925 #panels-openings
854 { 926 {
855 margin-top: -40px; 927 margin-top: -40px;
856 } 928 }
857 } 929 }
OLDNEW
« no previous file with comments | « static/acceptable-ads-application.html ('k') | static/images/logo.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld