Skip to content

Commit

Permalink
Optimized mobile view CSS to leverage more of the desktop CSS to avoi…
Browse files Browse the repository at this point in the history
…d duplication.
  • Loading branch information
Paul Jackson authored and Paul Jackson committed Aug 13, 2012
1 parent a2b52ee commit d7f9d46
Show file tree
Hide file tree
Showing 11 changed files with 265 additions and 355 deletions.
2 changes: 1 addition & 1 deletion build/theme-gcwu-fegc/css/theme-ie-min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/theme-gcwu-fegc/css/theme-min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/theme-gcwu-fegc/css/theme-serv-min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/theme-gcwu-fegc/css/theme-sp-pe-min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions demos/details/details-eng.html
Expand Up @@ -53,6 +53,8 @@
}
.example3 summary:hover, .example3 summary:focus, .example3 summary:active {
background: #1A4D7C !important;
}
.example3 summary:focus, .example3 summary:active {
outline: 1px dotted #000;
}
</style>
Expand Down
2 changes: 2 additions & 0 deletions demos/details/details-fra.html
Expand Up @@ -53,6 +53,8 @@
}
.example3 summary:hover, .example3 summary:focus, .example3 summary:active {
background: #1A4D7C !important;
}
.example3 summary:focus, .example3 summary:active {
outline: 1px dotted #000;
}
</style>
Expand Down
200 changes: 0 additions & 200 deletions src/theme-gcwu-fegc/sass/includes/default-desktop-screen.scss
Expand Up @@ -87,88 +87,6 @@ body{
}
}

.wb-sec-def {
h3.top-section {
a{
color:#FFF;
background:#23447e url(../images/menu-bg.gif) 0 -2px repeat-x;
padding-top:5px;
padding-bottom:5px;
font-size:1.1em;
&:hover,&:focus,&:active{
color:#FFF;
text-decoration:underline;
}
&.nav-current{
color:#FFF;
padding-top:4px;
padding-bottom:4px;
background:#0f315b;
}
}
}
h3,h4,.top-level{
font-size:100%;
border-bottom:none;
border-radius:2px;
-moz-border-radius:2px;
-webkit-border-radius:2px;
margin:0 0 3px;
a{
font-weight:700;
background:#DDD;
padding:2px 4px;
&.nav-current{
color:#0F315B;
padding:1px 3px;
}
}
}
li{
a{
padding:4px 5px;
&.nav-current{
color:#0F315B;
padding:3px 4px;
}
}
}
a.nav-current{
border:1px solid #777;
border-radius:2px;
-moz-border-radius:2px;
-webkit-border-radius:2px;
}
h3,h4,.top-level,li{
a{
display:block;
color:#333;
text-decoration:none;
&:hover,&:focus,&:active{
color:#333;
text-decoration:underline;
}
}
}
ul{
list-style-type:none;
margin:0 0 6px;
padding:0;
ul {
list-style-type:none;
margin-left:10px;
padding-left:5px;
border-left:1px solid #ccc;
}
}
li li{
margin-left:0;
border:none;
list-style-type:none;
padding:0;
}
}

#gcwu-date-mod{
position:absolute;
bottom:0;
Expand Down Expand Up @@ -490,124 +408,6 @@ a{
background:transparent;
}

#wb-foot {
h4,.gcwu-col-head{
font-size:110%;
border:none;
font-weight:700;
margin:20px 0 5px;
}
ul{
list-style-type:none;
margin:0;
padding:0;
}
li a{
font-weight:400;
}
a{
text-decoration:none;
}
.span-1,.span-2,.span-3,.span-4,.span-5,.span-6,.span-7,.span-8,.span-9,.span-10,.span-11,.span-12{
margin-bottom:0;
}
}

#gcwu-sft{
padding-bottom:20px;
background:url(../images/sft-deco.gif) center top repeat-x #efefef;
font-family:Arial, Helvetica, sans-serif;
a,span.link{
color:#222;
}
li a,li span.link{
line-height:1.75em;
}
h4,.gcwu-col-head{
margin-top:10px;
}
address{
font-style:normal;
}
a:hover,a:focus,a:active{
color:#c00;
}
}

#gcwu-sft-in{
background:{
image:url(../images/sft-deco-leaf.gif), url(../images/sft-deco-side.gif), url(../images/sft-deco-side.gif);
position:center top, left top, right top;
repeat:no-repeat;
color:transparent;
}
padding-top:20px;
.span-1,.span-2,.span-3,.span-4,.span-5,.span-6,.span-7,.span-8,.span-9,.span-10,.span-11,.span-12{
position:static;
}
}

#gcwu-tctr{
margin:0;
padding:8px 0 6px;
li{
display:inline;
&.gcwu-tc{
border-right:1px solid #999;
padding:0 9px 0 10px;
}
&.gcwu-tr{
padding-left:6px;
}
}
}

#gcwu-gcft{
background:#040707;
font-family:Arial, Helvetica, sans-serif;
ul{
list-style-type:none;
margin:0;
}
li{
float:left;
span{
text-transform:uppercase;
font-weight:700;
}
&#gcwu-gcft-ca{
float:right;
padding-left:0;
margin-right:0;
div{
font-size:170%;
text-align:right;
font-weight:400;
margin:0;
}
}
}
a{
text-decoration:none;
color:#fff;
font-size:90%;
}
}

#gcwu-gcft-ca{
font-family:Arial, Helvetica, sans-serif;
}

li#gcwu-gcft-ca a{
display:inline-block;
color:#fff;
text-decoration:none;
border-left:1px solid #666;
line-height:1.45em;
padding-right:10px;
font-size:0.95em;
}

#gcwu-gcnb,#gcwu-srchbx,#wb-foot{
a:hover,a:focus,a:active{
text-decoration:underline;
Expand Down

0 comments on commit d7f9d46

Please sign in to comment.