-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from LarsFlem/Iphone-fix
Iphone fix
- Loading branch information
Showing
5 changed files
with
72 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,108 +1,47 @@ | ||
/* Global styles */ | ||
:root { | ||
--primary-color: #333; | ||
--secondary-color: #d9dada; | ||
--light-gray: #dad9d9; | ||
--font-family-r: "Raleway", Arial, Helvetica, sans-serif; | ||
--font-family-s: "Space Grotesk", sans-serif; | ||
} | ||
|
||
body { | ||
background-color: #dad9d9; | ||
background-color: var(--secondary-color); | ||
margin: 0; | ||
padding: 0; | ||
min-height: 100vh; | ||
font-family: "Raleway", Arial, Helvetica, sans-serif; /* Use Raleway as the default font */ | ||
font-family: var(--font-family-r); | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
color: #333; | ||
color: var(--primary-color); | ||
} | ||
|
||
/* Enable smooth scrolling */ | ||
html { | ||
scroll-behavior: smooth; /* Enables smooth scrolling for anchor links */ | ||
} | ||
|
||
/* Unique class for Raleway font with specific weights */ | ||
.raleway-title { | ||
font-family: "Raleway", sans-serif; /* Use Raleway font */ | ||
font-weight: 700; /* Bold weight */ | ||
font-optical-sizing: auto; /* Enables optical sizing if supported */ | ||
font-style: normal; /* Normal font style */ | ||
} | ||
|
||
.raleway-body { | ||
font-family: "Raleway", sans-serif; /* Use Raleway font */ | ||
font-weight: 400; /* Normal weight */ | ||
font-optical-sizing: auto; /* Enables optical sizing if supported */ | ||
font-style: normal; /* Normal font style */ | ||
} | ||
|
||
/* Backdrop styling */ | ||
.circuitry-backdrop { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-image: url("./components/_Pictures/Backdrop.jpg"); /* Updated path */ | ||
width: 100vw; /* Set width to 100% of the viewport width */ | ||
height: 100vh; /* Set height to 100% of the viewport height */ | ||
background-image: url("./components/_Pictures/Backdrop.jpg"); | ||
background-size: cover; /* Cover the entire area */ | ||
background-repeat: no-repeat; /* Prevent image repetition */ | ||
opacity: 0.1; /* Set transparency level (adjust as needed) */ | ||
background-position: center; /* Center the image */ | ||
opacity: 0.15; /* Set transparency level (adjust as needed) */ | ||
pointer-events: none; /* Allow clicks to go through the backdrop */ | ||
z-index: -1; /* Position behind other content */ | ||
} | ||
|
||
|
||
/* Header styles */ | ||
header { | ||
position: fixed; /* Keeps the header fixed at the top */ | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
background-color: #dad9d9; | ||
padding: 15px 50px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); | ||
z-index: 1000; | ||
height: 80px; /* Set a fixed height for the header */ | ||
box-sizing: border-box; | ||
} | ||
|
||
/* Logo styling */ | ||
.logo { | ||
font-size: 48px; | ||
font-family: "Space Grotesk", sans-serif; /* Use Space Grotesk font for the logo */ | ||
font-weight: bold; | ||
color: #333; | ||
} | ||
|
||
/* Navigation styles */ | ||
nav ul { | ||
list-style: none; | ||
display: flex; | ||
gap: 30px; | ||
} | ||
|
||
nav a { | ||
text-decoration: none; | ||
color: #333; | ||
font-family: "Space Grotesk", sans-serif; | ||
font-weight: 400; | ||
} | ||
|
||
nav a:hover { | ||
color: #000; | ||
} | ||
|
||
/* Main content area styles using Grid */ | ||
.main-content { | ||
padding-top: 70px; /* Padding to avoid content being hidden by the fixed header */ | ||
display: grid; | ||
grid-template-columns: 1fr; /* Single column layout */ | ||
gap: 20px; /* Space between components */ | ||
margin-bottom: 40px; | ||
} | ||
|
||
/* Other existing styles remain unchanged */ | ||
.service-section { | ||
background-color: #ffffff; | ||
padding: 20px; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); | ||
border-radius: 8px; | ||
text-align: center; | ||
margin: 0 auto; /* Center the services section */ | ||
max-width: 80%; /* Set max width to 90% of the container */ | ||
} |