File tree Expand file tree Collapse file tree 3 files changed +26
-4
lines changed
components/HomepageSlider Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export const CodeContainer = ({
79
79
</ CSSTransition >
80
80
</ SwitchTransition >
81
81
</ div >
82
- < div className = { clsx ( styles . linkButton ) } >
82
+ < div className = { clsx ( styles . gitPodLinkButton ) } >
83
83
< Link href = "https://gitpod.io/new#https://github.com/lf-lang/playground-lingua-franca/tree/main" >
84
84
< img src = "https://raw.githubusercontent.com/gitpod-io/gitpod/30da76375c996109f243491b23e47feefab7217f/components/dashboard/public/button/open-in-gitpod.svg" />
85
85
</ Link >
Original file line number Diff line number Diff line change 9
9
}
10
10
11
11
.codeContainer .title {
12
- max- height: 2 rem ;
12
+ height : auto ;
13
13
border-radius : 8px 8px 0 0 ;
14
14
font-size : 1.2rem ;
15
15
color : white;
35
35
/* Override Infima's button */
36
36
}
37
37
38
- .linkButton {
38
+ /* Why 996? 996 is Docusaurus and Infima's breakpoint */
39
+ /* If the container is extended to the full width of the screen having the advance button 1.5rem more to the right will cause layout issues. */
40
+ @media only screen and (max-width : 996px ) {
41
+ .advance {
42
+ right : 0 ;
43
+ }
44
+ }
45
+
46
+ .gitPodLinkButton {
39
47
position : absolute;
40
48
right : 1rem ;
41
49
top : 3rem ;
42
50
}
43
51
52
+ /* Why 575? Because Bootstrap 5 uses 575px as "xs" and 575 px looks fine with gitpod */
53
+ @media only screen and (max-width : 575px ) {
54
+ .gitPodLinkButton {
55
+ display : none;
56
+ }
57
+ }
58
+
59
+ /* For screens narrower than 256px reading code is like crap honestly */
60
+ @media only screen and (max-width : 256px ) {
61
+ .codeContainer {
62
+ display : none;
63
+ }
64
+ }
65
+
44
66
.codeContent {
45
67
height : 30rem ;
46
68
}
Original file line number Diff line number Diff line change 141
141
}
142
142
143
143
.buttonContainer .button : last-of-type {
144
- margin : 0 px 36 px ;
144
+ margin : 10 px 18 px ;
145
145
}
146
146
147
147
/* Hardcode stuff */
You can’t perform that action at this time.
0 commit comments