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

chore: update css for phone and tablet #473

Merged
merged 1 commit into from
Sep 20, 2024
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
113 changes: 81 additions & 32 deletions cdn/dev/css/template.css
Original file line number Diff line number Diff line change
Expand Up @@ -312,23 +312,24 @@ html {
}

.button {
float: left;
width: 200px;
height: 40px;
padding: 0px 15px;
line-height: 40px;
border-radius: 6px;
text-align: center;
margin: 20px;
margin: 10px;
cursor: pointer;
box-shadow: 1px 1px 2px #3e3e3e;
text-decoration: none;
color:#B92034;

display: inline-flex;
align-items: center;
justify-content: center;
}

.button a {
display: flex;
color:#B92034;
color: inherit;
text-decoration: none;
align-items: center;
}

.button h2 {
Expand All @@ -337,13 +338,13 @@ html {

.navigation-buttons {
display: flex;
align-items: flex-end;
}

.navigation-buttons .button {
width: 150px;
margin: 15px;
color: #B92034;
text-decoration: none;
margin: 15px;
}

span.button.disabled{
Expand All @@ -352,47 +353,47 @@ span.button.disabled{
}

#version-container {
margin: 20px;
margin: 20px;
}

.version-row {
margin-bottom: 20px;
display: flex;
justify-content: space-between;
margin-bottom: 20px;
display: flex;
}

.version-row h3{
margin: 7px;
.version-row h3 {
margin: 7px;
}

.version-type {
margin-bottom: 10px;
height: 300px;
width: 30%;
padding: 10px;
box-sizing: border-box;
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
border-radius: 5px;
overflow-y: auto;
margin-bottom: 10px;
height: 300px;
width: 30%;
max-width: 300px;
padding: 10px;
box-sizing: border-box;
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
border-radius: 5px;
overflow-y: auto;
}

.version-type h5{
opacity:0.6;
.version-type h5 {
opacity: 0.6;
}

.version-item {
margin-bottom: 5px;
margin-bottom: 5px;
}

.version-item a {
text-decoration: none;
color: #B92034;
display: block;
width: 100%;
text-decoration: none;
color: #B92034;
display: block;
width: 100%;
}

.version-item a:hover {
text-decoration: underline;
text-decoration: underline;
}

#container {
Expand Down Expand Up @@ -440,7 +441,6 @@ span.button.disabled{
.download-title {
display: flex;
justify-content: space-between;
align-items:flex-end;
}

.underline {
Expand Down Expand Up @@ -1187,6 +1187,10 @@ input[type="search"] {
line-height: 1.2em;
}

#section2 .navigation-buttons{
text-align: center;
}

#section2 ul {
padding: 0 0 0 20px;
}
Expand Down Expand Up @@ -2241,6 +2245,25 @@ button.feedback {
height: 80px;
}

.download-title {
flex-direction: column;
}

.button{
align-items: center;
justify-content: center;
}

a .button{
margin: 0 200px;
}

.navigation-buttons {
flex-direction: row;
align-items: center;
justify-content: center;
}

/* Footer */
.footer {
height: auto;
Expand Down Expand Up @@ -2564,6 +2587,32 @@ button.feedback {
height: 57px;
}

.download-title {
display: inline-block;
}

.button {
display: flex;
margin: 5px 25px;
line-height: 35px;
}

.navigation-buttons {
flex-direction: row;
align-items: center;
justify-content: center;
padding: 10px;
}

.navigation-buttons .button {
margin: 5px;
padding: 0px 10px;
}

#section2 h3 {
display: contents;
}

/* Footer */
.footer {
height: auto;
Expand Down
6 changes: 3 additions & 3 deletions downloads/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

<p><a href='<?=$KeymanHosts->help_keyman_com?>/version-history'>Keyman version history</a> (all products)</p>

<div class ="navigation-buttons">
<a class="button" href="all-versions">Browse all versions</a> (14.0 onwards)
</div>

<a class="button" href="all-versions">Browse all versions (14.0 onwards)</a>


<?php
require_once('./_downloads.php');
Expand Down
5 changes: 3 additions & 2 deletions downloads/releases/_version_downloads.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ function array_key_first(array $arr) {
}
?>

<a class ="button" href='<?=$KeymanHosts->help_keyman_com?>/version-history/all-versions.php#<?=$versionNumber?>'>View version history for <?=$versionNumber?></a>

<div class="navigation-buttons">
<a class ="button" href='<?=$KeymanHosts->help_keyman_com?>/version-history/all-versions.php#<?=$versionNumber?>'>View version history for <?=$versionNumber?></a>
</div>

<?php
downloadSection('Keyman for Windows', 'windows', ['keyman-$version.exe', 'keymandesktop-$version.exe'], $tier);
Expand Down
Loading