Skip to content

Commit

Permalink
Merge pull request #796 from alpheios-project/i780-navigation-14
Browse files Browse the repository at this point in the history
Small optimization for mobile
  • Loading branch information
irina060981 authored May 18, 2022
2 parents 6318f85 + 309777f commit 19272a0
Show file tree
Hide file tree
Showing 14 changed files with 67 additions and 898 deletions.
9 changes: 0 additions & 9 deletions build/config-output.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ const webpack = {
],
module: {
rules: [
{
test: /\.(jpg|png)$/,
use: [{
loader: 'url-loader',
options: {
limit: 1500
}
}]
}
]
}
},
Expand Down
9 changes: 0 additions & 9 deletions build/config-pages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ const webpack = {
],
module: {
rules: [
{
test: /\.(jpg|png)$/,
use: [{
loader: 'url-loader',
options: {
limit: 1500
}
}]
}
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/_output/_dist/alpheios-alignment-editor-output.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/_output/_dist/html-temp-final.html

Large diffs are not rendered by default.

37 changes: 27 additions & 10 deletions src/_pages/video-tutorials/vue/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
<div class="alpheios-alignment-editor__intro">
<div class="alpheios-alignment-editor__page-container">
<div class="alpheios-alignment-editor__page-header">
<div class="alpheios-header-logo">
<a href="/">
<img src="images/alpheios-logo-black-2.png" class="alpheios-logo">
</a>
</div>
<div class="alpheios-alignment-editor__page-header-title">
<span class="alpheios-alignment-editor-big-icon">
<videos-icon />
</span>
<h2 class="alpheios-alignment-editor__page-title">Quick Start Videos</h2>
</div>
<div class="alpheios-header-logo">
<a href="/">
<img src="images/alpheios-logo-black-2.png" class="alpheios-logo">
</a>
</div>
</div><!-- alpheios-alignment-editor__page-header -->

<div class="alpheios-alignment-editor__page-content">
Expand Down Expand Up @@ -63,16 +63,23 @@ export default {
.alpheios-alignment-editor__page-header {
background: #f1fafc;
padding: 20px;
display: flex;
justify-content: space-between;
padding: 0 20px;
@media screen and (max-width: 500px) {
display: block;
}
.alpheios-alignment-editor-big-icon {
display: inline-block;
width: 170px;
height: 170px;
vertical-align: middle;
@media screen and (max-width: 500px) {
width: 100px;
height: 100px;
}
svg {
display: block;
width: 100%;
Expand All @@ -87,6 +94,14 @@ export default {
text-align: right;
vertical-align: middle;
line-height: 1;
margin: 0;
@media screen and (max-width: 500px) {
padding: 10px 0 10px 10px;
font-size: 26px;
width: calc(100% - 120px);
text-align: left;
}
}
}
.alpheios-alignment-editor__page-container {
Expand All @@ -109,12 +124,14 @@ export default {
.alpheios-alignment-editor__page-content {
text-align: center;
padding: 20px;
.alpheios-alignment-editor__page-content-item {
display: inline-block;
vertical-align: top;
width: 500px;
padding: 20px;
max-width: 500px;
width: 100%;
margin-bottom: 20px;
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions src/_pages/whats-new/vue/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@ export default {
margin-left: 80px;
color: #90a959;
}
@media screen and (max-width: 500px) {
padding: 20px 0;
h2 {
font-size: 150%;
margin-left: 0;
}
}
}
.alpheios-alignment-editor__content-slider {
Expand Down Expand Up @@ -239,6 +247,10 @@ export default {
margin: 0 0 40px;
font-size: 200%;
text-align: center;
@media screen and (max-width: 500px) {
font-size: 110%;
margin: 0 0 20px;
}
}
p {
Expand Down
4 changes: 3 additions & 1 deletion src/styles/_animated_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
text-shadow: 2px 2px 3px rgb(0 0 0 / 60%);
font-family: "Source Serif Pro", serif;
text-align: center;

@media screen and (max-width: 500px) {
display: none;
}
span {
display: inline-block;
}
Expand Down
22 changes: 11 additions & 11 deletions src/vue/initial-screen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,14 @@ export default {
text-shadow: 2px 2px 3px rgb(0 0 0 / 60%);
font-family: "Source Serif Pro", serif;
text-align: center;
}
.alpheios-alignment-editor-initial-screen__video {
text-align: center;
iframe {
margin: 0;
border: 0;
width: 800px;
height: 500px;
@media screen and (max-width: 500px) {
font-size: 32px;
display: block;
}
}
.alpheios-header-logo {
text-align: center;
padding-top: 20px;
Expand All @@ -195,15 +190,20 @@ export default {
.alpheios-alignment-editor-initial-screen__buttons {
width: 1000px;
max-width: 1000px;
width: 90%;
margin: 0 auto;
text-align: center;
.alpheios-alignment-editor-initial-screen__button {
width: 49%;
display: inline-block;
vertical-align: top;
@media screen and (max-width: 500px) {
margin-bottom: 20px;
width: 100%;
}
.alpheios-actions-menu-main-button {
font-weight: normal;
Expand Down
13 changes: 12 additions & 1 deletion src/vue/page-links.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ export default {
.alpheios-alignment-editor-initial-screen__additional {
margin: 100px auto;
text-align: center;
width: 800px;
max-width: 800px;
width: 90%;
@media screen and (max-width: 500px) {
margin: 20px auto;
}
.alpheios-alignment-editor-router-link {
display: inline-block;
Expand All @@ -70,6 +75,12 @@ export default {
text-decoration: none;
display: inline-block;
}
@media screen and (max-width: 500px) {
width: 100%;
padding: 20px 40px;
display: block;
}
}
.alpheios-alignment-router-link-icon {
Expand Down
45 changes: 0 additions & 45 deletions src/vue/pages/logo-svg.vue

This file was deleted.

Loading

0 comments on commit 19272a0

Please sign in to comment.