generated from com-480-data-visualization/com-480-project-template
-
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 #3 from com-480-data-visualization/killian
Partioned css files
- Loading branch information
Showing
6 changed files
with
190 additions
and
205 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* Styles for round buttons */ | ||
.round-button { | ||
background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */ | ||
border: none; | ||
border-radius: 50%; /* Makes it round */ | ||
padding: 10px 15px; | ||
margin: 5px; | ||
cursor: pointer; | ||
transition: all 0.3s; | ||
} | ||
|
||
.round-button:hover { | ||
background-color: rgba(255, 255, 255, 0.7); | ||
transform: scale(1.1); | ||
} | ||
|
||
/* Styles for stadium buttons */ | ||
.stadium-button { | ||
background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */ | ||
border: none; | ||
border-radius: 20px; /* Creates the rounded ends */ | ||
padding: 10px 20px; /* control the size of the button */ | ||
font-size: 16px; | ||
cursor: pointer; | ||
transition: all 0.3s; | ||
color: #000; | ||
text-align: center; | ||
display: inline-block; /* Allows the buttons to be aligned inline */ | ||
margin: 10px; /* Spacing between buttons */ | ||
} | ||
|
||
.stadium-button:hover { | ||
background-color: rgba(255, 255, 255, 0.7); /* Lightens the button on hover */ | ||
transform: translateY(-2px); /* Slight raise effect on hover */ | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
.stadium-button:active { | ||
background-color: rgba(122, 122, 122, 0.5); /* Darker color when button is pressed */ | ||
} | ||
|
||
.stadium-button.clicked { | ||
background-color: rgba(122, 122, 122, 0.5); /* Darker color when button is clicked */ | ||
transform: translateY(1px); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* Styles for the header in the globe section */ | ||
.header { | ||
text-align: center; | ||
top: 0; | ||
} | ||
|
||
/* Styles for the content of the globe section */ | ||
.content { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: stretch; /* Ensures that children stretch to fill the parent's height */ | ||
width: 90%; | ||
height: auto; | ||
} | ||
|
||
/* Styles for the globe container */ | ||
.globe-box { | ||
flex: 3; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 15px; | ||
margin-right: 20px; /* Space between the globe and the sidebar */ | ||
background-color: rgba(255, 255, 255, 0.3); | ||
border-radius: 5px; | ||
} | ||
|
||
/* Styles for the sidebar container */ | ||
.sidebar { | ||
flex: 1; | ||
display: flex; | ||
flex-direction: column; | ||
padding: 10px; | ||
background-color: rgba(255, 255, 255, 0.3); | ||
border-radius: 5px; | ||
width: 500px; /* Fixed width for the sidebar so it doesn't vary for specific event description*/ | ||
} | ||
|
||
#checkboxes, #infoPanel { | ||
margin-bottom: 20px; /* Spacing between sections of the sidebar*/ | ||
} | ||
|
||
#controls { | ||
margin-bottom: 5px; /* Slightly less spacing between the controls and the bottom of the sidepanel*/ | ||
} | ||
|
||
#checkboxes h2, #infoPanel h2, #controls h2 { | ||
margin-bottom: 10px; /* Spacing below each title */ | ||
text-align: center; | ||
} | ||
|
||
#infoPanel { | ||
flex-grow: 1; /* Allow the panel to grow to fill the remaining space */ | ||
text-align: left; /* Align text to the left */ | ||
} | ||
|
||
#infoPanel, #controls, #checkboxes { | ||
padding: 10px; | ||
background-color: rgba(255, 255, 255, 0.15); | ||
border-radius: 3px; | ||
} | ||
|
||
#controls input[type="range"], #controls p { | ||
text-align: center; | ||
width: 100%; /* Full width for easier interaction */ | ||
} |
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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* Reset CSS */ | ||
* { | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 0; | ||
border: 0; | ||
} | ||
|
||
/* Global styles */ | ||
body { | ||
font-family: 'Arial', sans-serif; | ||
font-size: 1rem; | ||
line-height: 1.6; | ||
color: #e4e4e4; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
/* Styles for the Sections in FullPageJS*/ | ||
.section { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
text-align: center; | ||
background-image: url("../img/background.jpg"); | ||
background-size: cover; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
text-align: center; | ||
} | ||
|
||
/*Sytle for the titles and text*/ | ||
.title { | ||
font-size: 3rem; | ||
font-weight: bold; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.title.main { | ||
font-size: 4rem; | ||
margin-bottom: 40px; | ||
} | ||
|
||
.text { | ||
font-size: 1.4rem; | ||
color: #ffffff; | ||
padding: 0 100px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.text.main { | ||
font-size: 2rem; | ||
padding: 0 200px; | ||
margin-bottom: 40px; | ||
} | ||
|
||
/* Styles for the logo */ | ||
#logo { | ||
width: 200px; | ||
height: auto; | ||
animation: floatAnimation 2s ease-in-out infinite alternate; | ||
} | ||
|
||
/* Animation for the logo */ | ||
@keyframes floatAnimation { | ||
0% { | ||
transform: translateX(-3px) translateY(-3px); /* Initial position */ | ||
} | ||
100% { | ||
transform: translateX(3px) translateY(3px); /* Final position */ | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.