Skip to content

Commit 37e1e5b

Browse files
authored
Merge pull request #57 from acacode/fixes/adaptive-layout
📳 Mobile version 📳
2 parents f409f33 + e8b2870 commit 37e1e5b

File tree

6 files changed

+58
-7
lines changed

6 files changed

+58
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- <kbd>SHIFT</kbd> + <kbd>&uparrow;</kbd> Fully scroll up logs in selected task
1515
- <kbd>SHIFT</kbd> + <kbd>&downarrow;</kbd> Fully scroll down logs in selected task
1616
- `web` browser notifications about updates of the running tasks
17+
- `web` mobile version
1718

1819
### Changed
1920
- added emojis to `README.md`

lib/app/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,500i|Source+Sans+Pro:600">
1212
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous">
1313
<link rel="stylesheet" href="styles.css">
14-
<link rel="stylesheet" href="styles.smallscreens.css" media="screen and (max-width: 923px)">
14+
<link rel="stylesheet" href="medium-screens.css" media="screen and (max-width: 923px)">
15+
<link rel="stylesheet" href="small-screens.css" media="screen and (max-width: 545px)">
1516
</head>
1617

1718
<body>

lib/app/styles.smallscreens.css renamed to lib/app/medium-screens.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ body {
1717
border-radius: 0;
1818
color: #4e4e4e;
1919
font-size: 24px;
20-
cursor:pointer;
20+
cursor:pointer;
21+
z-index: 10;
2122
}
2223
.tasks-button > .fas:before{
2324
content: "\f0c9";
@@ -28,12 +29,12 @@ body {
2829
header .title {
2930
padding-left: 50px;
3031
}
31-
section#tasks {
32+
#tasks {
3233
transform: translateX(-100%);
3334
width: 0;
3435
}
3536

36-
section#task-logs {
37+
#task-logs {
3738
width: 100%;
3839
}
3940
.task-list-showed #tasks {
@@ -51,7 +52,7 @@ section#task-logs {
5152
.task-list-showed #task-logs {
5253
width: 70%;
5354
}
54-
.task-list-showed span.tabs {
55+
.task-list-showed .tabs {
5556
position: absolute;
5657
left: 31.3%;
5758
top: 292px;

lib/app/small-screens.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
header .title{
2+
display: none;
3+
}
4+
.main-buttons {
5+
margin-left: auto;
6+
}
7+
8+
.main-button:not(.toggle).run{
9+
margin-left: 30px;
10+
}
11+
.main-button.toggle.hot-keys{
12+
display: none;
13+
}
14+
15+
.task-list-showed #task-logs{
16+
width: 100%;
17+
}
18+
19+
#tasks{
20+
position: absolute;
21+
z-index: 1;
22+
height: calc(100% - 40px);
23+
background: inherit;
24+
transition: transform 289ms ease;
25+
}
26+
body #tasks,.task-list-showed #tasks{
27+
width: 80%;
28+
}
29+
30+
header{
31+
height: 40px;
32+
}
33+
34+
.tabs {
35+
transition: left 289ms ease;
36+
position: absolute;
37+
left: -32px;
38+
top: 292px;
39+
transform: rotate(90deg);
40+
z-index: 2;
41+
}
42+
43+
.task-list-showed .tabs {
44+
left: calc(80% + 6px);
45+
}
46+
.main-button.toggle.resize {
47+
display: none;
48+
}

lib/app/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ button#procfile {
435435
content:'envs: ';
436436
}
437437

438-
span.tabs {
438+
.tabs {
439439
position: absolute;
440440
left: -32px;
441441
top: 215px;

lib/app/styles/fullscreen.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ header .title {
1919
padding-left: 20px;
2020
padding-right: 20px;
2121
}
22-
span.tabs {
22+
.tabs {
2323
position: absolute;
2424
left: 332px;
2525
top: 2px;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy