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: Created Jan. 29, 2016, 5:25 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 | « no previous file | static/images/tog_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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 h5 92 h5
93 { 93 {
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 display: block;
105 position: absolute; 105 position: fixed;
106 background-color: #ffffff; 106 background: #fff;
107 width: 100%; 107 width: 100%;
108 top: 0; 108 top: 0;
109 left: 0; 109 left: 0;
110 box-shadow: 0 0 12px rgba(0,0,0, 0.09); 110 box-shadow: 0 0 12px rgba(0,0,0, 0.09);
111 z-index: 10000; 111 z-index: 10000;
112 } 112 }
113 113
114 #header.fixed 114 #header.top
115 { 115 {
116 position: fixed; 116 padding: 8px 0;
117 }
118
119 #header-content
120 {
121 display: table;
122 width: 100%;
123 } 117 }
124 118
125 #logo 119 #logo
126 { 120 {
127 display: table-cell; 121 float: left;
128 padding: 13px 0; 122 margin: 5px 0;
129 }
130
131 #header.fixed #logo
132 {
133 padding: 5px 0;
134 } 123 }
135 124
136 #menu 125 #menu
137 { 126 {
138 display: table-cell; 127 float: right;
139 vertical-align: middle; 128 vertical-align: middle;
140 width: 100%; 129 }
130
131 .collapsed
132 {
133 display: none;
141 } 134 }
142 135
143 .assistive-text 136 .assistive-text
144 { 137 {
145 position: absolute; 138 position: absolute;
146 clip: rect(1px, 1px, 1px, 1px); 139 clip: rect(1px, 1px, 1px, 1px);
147 } 140 }
148 141
149 .menu-list 142 .menu-list
150 { 143 {
151 list-style: none; 144 list-style: none;
152 margin: 0; 145 margin: 0;
153 padding: 0; 146 padding: 22px 0;
154 min-height: 36px;
155 font-size: 14px; 147 font-size: 14px;
156 float: right; 148 float: right;
157 } 149 }
158 150
159 .menu-list li 151 .menu-list li
160 { 152 {
161 position: relative; 153 position: relative;
162 white-space: nowrap; 154 white-space: nowrap;
163 display: block; 155 display: block;
164 font-size: 15px; 156 font-size: 15px;
165 font-weight: bold; 157 font-weight: bold;
166 line-height: 36px;
167 outline-width: 0; 158 outline-width: 0;
168 float: left; 159 float: left;
169 margin-right: 1px; 160 margin-right: 1px;
170 } 161 }
171 162
172 .menu-list li a 163 .menu-list li a
173 { 164 {
174 color: #979797; 165 color: #979797;
175 padding: 0 10px; 166 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 } 167 }
182 168
183 .menu-list li:hover > a, 169 .menu-list li:hover > a,
184 .menu-list li.current-menu-item > a 170 .menu-list li.current-menu-item > a
185 { 171 {
186 color: #373737; 172 color: #373737;
187 } 173 }
188 174
189 .menu-button 175 .menu-button
190 { 176 {
191 float: right; 177 float: right;
192 margin-left: 25px; 178 margin: 14px 0 14px 25px;
179 }
180
181 #header-hamberger
182 {
183 display: none;
184 }
185
186 #header-hamberger:hover,
187 #header-hamberger:active,
188 #header-hamberger:focus
189 {
190 background-color: transparent;
191 border: none;
192 outline: none;
193 }
194
195 .icon-bar {
196 background-color: #888;
197 display: block;
198 width: 22px;
199 height: 2px;
200 border-radius: 1px;
201 }
202
203 .icon-bar+.icon-bar {
204 margin-top: 4px;
193 } 205 }
194 206
195 #content:before, 207 #content:before,
196 #content:after, 208 #content:after,
197 #header:before, 209 #header:before,
198 #header:after, 210 #header:after,
199 .columns-container:before, 211 .columns-container:before,
200 .columns-container:after 212 .columns-container:after
201 { 213 {
202 content: " "; 214 content: " ";
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 background-color: #747474; 790 background-color: #747474;
779 } 791 }
780 792
781 .why-work-here-button:hover, 793 .why-work-here-button:hover,
782 .why-work-here-button:focus 794 .why-work-here-button:focus
783 { 795 {
784 background-color: #333; 796 background-color: #333;
785 } 797 }
786 798
787 799
788 @media (max-width: 750px) 800 @media (max-width: 768px)
789 { 801 {
802 body
803 {
804 padding-top: 64px;
805 }
806
807 #logo > img
808 {
809 height: 34px
810 }
811
812 .menu-list
813 {
814 padding: 12px 0;
815 }
816
817 .menu-item > a
818 {
819 font-size: 13px
820 }
821
822 .menu-button
823 {
824 margin: 5px 0 5px 10px;
825 font-size: 13px
826 }
827
790 .columns-container .column 828 .columns-container .column
791 { 829 {
792 width: 100%; 830 width: 100%;
793 margin-left: 0; 831 margin-left: 0;
794 clear: both; 832 clear: both;
795 } 833 }
796 834
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 835 #press-info .sidebar-left
814 { 836 {
815 text-align: inherit; 837 text-align: inherit;
816 } 838 }
817 839
818 #releases li > * 840 #releases li > *
819 { 841 {
820 display: block; 842 display: block;
821 } 843 }
822 844
823 .no-mobile 845 .no-mobile
824 { 846 {
825 display: none; 847 display: none;
826 } 848 }
827 } 849 }
828 850
851 @media(max-width: 660px)
852 {
853 #menu
854 {
855 display: block;
856 float: none;
857 }
858
859 #menu
860 {
861 display: none;
862 }
863
864 .menu-list
865 {
866 padding: 0;
867 float: none;
868 clear: both;
869 display: block;
870 }
871
872 #menu.open
873 {
874 display: block;
875 }
876
877 .menu-list > li
878 {
879 float: none;
880 display: block;
881 border-top: 1px solid #eee;
882 }
883
884 .menu-list > li > a
885 {
886 padding: 10px ;
887 display: block;
888 margin: 0;
889 }
890
891 .menu-button
892 {
893 padding: 0 14px;
894 margin: 5px 0;
895 }
896
897 #header-hamberger
898 {
899 display: block;
900 float: right;
901 margin: 5px -5px 0 5px;
902 background: none;
903 padding: 0 10px;
904 }
905 }
906
829 @media (min-width: 751px) 907 @media (min-width: 751px)
830 { 908 {
831 .ui-tabs-nav-vertical 909 .ui-tabs-nav-vertical
832 { 910 {
833 padding: .2em .1em .2em .2em; 911 padding: .2em .1em .2em .2em;
834 float: left; width: 100%; 912 float: left; width: 100%;
835 border-bottom: none; 913 border-bottom: none;
836 } 914 }
837 .ui-tabs-nav-vertical li 915 .ui-tabs-nav-vertical li
838 { 916 {
839 clear: left; 917 clear: left;
840 width: 100%; 918 width: 100%;
841 border-bottom-width: 1px !important; 919 border-bottom-width: 1px !important;
842 border-left: 1px solid #E1E1E1 !important; 920 border-left: 1px solid #E1E1E1 !important;
843 margin: 0 -1px .2em 0; 921 margin: 0 -1px .2em 0;
844 } 922 }
845 .ui-tabs-nav-vertical li.ui-tabs-active 923 .ui-tabs-nav-vertical li.ui-tabs-active
846 { 924 {
847 padding-bottom: 0; 925 padding-bottom: 0;
848 padding-right: .1em; 926 padding-right: .1em;
849 border-right-width: 1px; 927 border-right-width: 1px;
850 border-right-width: 1px; 928 border-right-width: 1px;
851 } 929 }
852 930
853 #panels-openings 931 #panels-openings
854 { 932 {
855 margin-top: -40px; 933 margin-top: -40px;
856 } 934 }
857 } 935 }
OLDNEW
« no previous file with comments | « no previous file | static/images/tog_logo.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld