Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task: update styles for the mobile layout of developer/features #434

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 82 additions & 38 deletions cdn/dev/css/feature-template.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/************************************
Feature CSS Body
***********************************/
.main > #section2 > .wrapper {
.main>#section2>.wrapper {
background: #d2d2d2;
padding-bottom: 30px;
}

.info-left{
.info-left {
margin-top: 20px;
float: left;
width: 320px;
Expand All @@ -18,89 +18,89 @@
box-shadow: 1px 1px 2px gray;
}

.info-left.fixed-pos{
.info-left.fixed-pos {
position: fixed !important;
top: 61px !important;
}

.info-left ul{
.info-left ul {
margin: 30px 0px;
}

.info-left ul li{
.info-left ul li {
list-style: none !important;
font-size: 12pt;
padding: 4px 0px;
margin: 0px 10px;
}

.info-left ul li.active{
.info-left ul li.active {
background: #CCCCCC;
}

.info-left ul li:first-child{
.info-left ul li:first-child {
font-size: 14pt;
}

.info-left ul li:hover{
.info-left ul li:hover {
background: #CCCCCC;
}

.info-left ul li:first-child:hover{
.info-left ul li:first-child:hover {
background: none;
}

.info-left ul li:first-child.active{
.info-left ul li:first-child.active {
background: none;
}

.info-left ul li a{
.info-left ul li a {
display: inline-block;
width: 100%;
height: 100%;
text-decoration: none !important;
}

.info-left ul li.selected{
.info-left ul li.selected {
background: #CCCCCC;
}

.info-right{
.info-right {
margin-top: 20px;
float: left;
width: 65%;
margin-left: 320px;
}

.info-right img{
/* .info-right img {
max-width: 620px !important;
}
} */

.info-right h2{
.info-right h2 {
padding-top: 0px !important;
}

ol li{
ol li {
list-style: none !important;
font-weight: normal;
font-size: 10pt;
}

.col{
.col {
float: left;
width: 25%;
}

.col h3{
.col h3 {
text-align: center !important;
font-size: 14pt;
}

.col li ol{
.col li ol {
margin-bottom: 20px;
}

.pro-only{
.pro-only {
box-sizing: border-box;
padding: 5px 10px;
border: solid 1px #FFC1C1;
Expand All @@ -110,21 +110,21 @@ ol li{
border-radius: 4px;
}

.pro-only p{
.pro-only p {
padding: 0px !important;
font-size: 11pt !important;
}

.info-right p{
.info-right p {
clear: left;
}

.info-right img{
.info-right img {
max-width: 100%;
margin: 0px !important;
}

.button-dl9{
.button-dl9 {
width: 300px;
height: 40px;
line-height: 40px;
Expand All @@ -135,54 +135,98 @@ ol li{
border-radius: 2px;
}

.button-dl9:hover{
.button-dl9:hover {
background: #6BABBF;
}

#button-buy{
#button-buy {
background: #0AB8A0;
}

#button-buy:hover{
#button-buy:hover {
background: #099E87;
}

.button-dl9 a{
.button-dl9 a {
display: inline-block;
width: 100%;
height: 100%;
text-decoration: none;
color: #000;
}

.section{
.section {
padding-top: 90px;
float: left;
}

.section:first-child{
.section:first-child {
padding-top: 0px;
}

@media only screen and (min-width: 768px) and (max-width: 1024px){
.info-left{
/*
Small Screen or Laptops
*/
@media only screen and (min-width: 768px) and (max-width: 1024px) {
.info-left {
top: 90px;
position: fixed;
}
.info-right{

.info-right {
margin-left: 35%;
}
.info-right img{

.info-right img {
max-width: 300px;
}
}

@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait){
.info-left{
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
.info-left {
display: none;
}
.info-right{

.info-right {
margin-left: 0px;
width: 100%;
}
}

/*
Mobile devices
*/
@media only screen and (max-width: 480px) {
.section2 {
display: block !important;
}

.info-right {
margin-left: 0;
width: 100%;
}

.info-left {
display: none;
}

.section {
width: 100%;
padding-top: 20px;
}

.keyman-logo {
margin: auto;
}

.button-dl9 {
margin: auto;
margin-bottom: 10px;
}
}

@media only screen and (min-width: 480px) {
#comprehensive-help #bottom-button-dl9 {
display: none !important;
}
}
2 changes: 2 additions & 0 deletions developer/features.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,7 @@
<a href='https://community.software.sil.org/c/keyman'>Keyman Community Site</a>. We love answering questions about Keyman keyboards and
Keyman Developer <?php echo $stable_version_int; ?>.</p>
<br/><br/>
<div class="button-dl9" id="bottom-button-dl9"><a href="/developer/download.php">Download for Free</a></div>
</div>

</div>
Loading