Skip to content

Commit

Permalink
made site responsive for mobile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr-Zay committed Nov 24, 2023
1 parent cd8682e commit eef9687
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 17 deletions.
1 change: 1 addition & 0 deletions site/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<title>About Us</title>
<link rel="stylesheet" href="stylesheets/index.css">
<link rel="stylesheet" href="stylesheets/indexmobile.css">
</head>
<body>
<header>
Expand Down
1 change: 1 addition & 0 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<title>Stranded Penguin</title>
<link rel="stylesheet" href="stylesheets/index.css">
<link rel="stylesheet" href="stylesheets/indexmobile.css">
</head>
<body>
<header>
Expand Down
25 changes: 8 additions & 17 deletions site/stylesheets/index.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
body{
/* height: 3000px; */
/* background: linear-gradient(180deg, #0096f2 0%, #137929 40%, #a36105 60%, #8f3e00 70%, #999999 80%, #5e5e5e 90%); */
background: linear-gradient(180deg, #0096f2 0%, #0096f2 50%, #ffffff 90%
/* , #a36105 60%, #8f3e00 70%, #999999 80%, #5e5e5e 90% */
);
background: linear-gradient(180deg, #0096f2 0%, #0096f2 50%, #ffffff 90%);
background-repeat: no-repeat;

font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
/* min-width: 600px; */
font-size: 120%;
font-size: 150%;
}

h1{
Expand Down Expand Up @@ -114,22 +108,17 @@ nav li:nth-child(4):hover{
}
header{
text-wrap: nowrap;
margin-left: 4%;
}
#clouds{
width: fit-content;
margin: auto;
overflow: hidden;
display: inline-block;
width: 100%;
display: flex;
}
img.cloud{
/* border: 0.1px solid red; */
display: inline;
margin-left: 1%;
margin-right: 1%;
padding: 0;
width: 5%;
float: center;
flex: auto;
}
#GetButton
{
Expand All @@ -156,9 +145,11 @@ img.cloud{
margin: auto;
margin-top: 60px;
overflow: hidden;
display: flex;
}
.descbox{
width: 350px;
min-width: 150px;
max-width: 400px;
padding: 0 6px;
margin-right: 30px;
float: left;
Expand Down
32 changes: 32 additions & 0 deletions site/stylesheets/indexmobile.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@media only screen and (orientation: portrait)
{
body{
font-size: 150%;
}
h2{
font-size: 7vw;
}
h3{
font-size: 6vw;
}
nav li{
font-size: 5vw;
}
#boxes
{
display: block;
}
.descbox{
min-width: none;
max-width: fit-content;
width: 99%;
float: none;
}
.descbox p{
min-height: 0;
}
#GetButton{
font-size: 5vw;
text-wrap: nowrap;
}
}

0 comments on commit eef9687

Please sign in to comment.