Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
581-Project-2-Front-End/style.css
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
283 lines (240 sloc)
4.57 KB
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
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
} | |
body { | |
background-color: #f1f1f1; | |
color: #333; | |
font-size: 16px; | |
line-height: 1.6; | |
} | |
header { | |
background: #fff; | |
color: #333; | |
padding-top: 30px; | |
padding-bottom: 15px; | |
text-align: center; | |
} | |
header h1 { | |
margin: 0; | |
} | |
nav li a{ | |
color: #fff; | |
} | |
#nav-toggle { | |
display: block; | |
cursor: pointer; | |
} | |
#main-nav.active { | |
display: block; | |
} | |
@media screen and (max-width: 768px) { | |
#nav-toggle { | |
display: block; | |
} | |
#main-nav { | |
display: none; | |
} | |
#main-nav.active { | |
display: block; | |
} | |
#main-nav li { | |
display: block; | |
margin: 0; | |
} | |
#main-nav a { | |
display: block; | |
margin: 0; | |
padding: 10px; | |
border-bottom: 1px solid #ddd; | |
} | |
} | |
#main-nav { | |
margin-top: 1%; | |
list-style: none; | |
padding: 0; | |
} | |
#main-nav li { | |
display: inline; | |
margin-right: 10px; | |
} | |
#main-nav li.active a { | |
font-weight: bold; | |
border-bottom: 5px solid rgb(38, 172, 255); | |
} | |
#main-nav a { | |
text-decoration: none; | |
color: #333; | |
} | |
.help-icon { | |
width: 3%; | |
border: 1px solid black; | |
position: relative; | |
margin-left: 90%; | |
cursor: pointer; | |
background-color: rgb(19, 19, 19); | |
color: #eee; | |
} | |
#find-worker { | |
margin: 1em; | |
} | |
#search-worker { | |
width: calc(100% - 2em); | |
padding: 0.5em; | |
} | |
#map-area { | |
margin-top: 2%; | |
border: 1px solid #000; | |
min-height: 300px; | |
position: relative; | |
background-color: #e6f3ff; | |
background-image: url('map.png'); | |
background-size: cover; | |
background-repeat: no-repeat; | |
} | |
.worker-pin { | |
position: absolute; | |
width: 30px; | |
height: 30px; | |
line-height: 30px; | |
border: 2px solid #000; | |
border-radius: 50%; | |
background-color: #fff; | |
text-align: center; | |
font-weight: bold; | |
color: #000; | |
box-shadow: 0 2px 4px rgba(0,0,0,0.2); | |
} | |
.tooltip { | |
position: absolute; | |
padding: 8px; | |
background-color: black; | |
color: white; | |
border-radius: 4px; | |
font-size: 0.75rem; | |
white-space: nowrap; | |
z-index: 1000; | |
visibility: hidden; | |
opacity: 0; | |
transition: visibility 0s, opacity 0.5s linear; | |
} | |
.worker-pin:hover + .tooltip { | |
visibility: visible; | |
opacity: 1; | |
} | |
.popup { | |
position: relative; | |
display: inline-block; | |
cursor: pointer; | |
} | |
.popuptext { | |
visibility: hidden; | |
width: 160px; | |
background-color: #555; | |
color: #fff; | |
text-align: center; | |
border-radius: 6px; | |
padding: 8px 0; | |
position: absolute; | |
z-index: 1; | |
bottom: 125%; | |
left: 50%; | |
margin-left: -80px; | |
opacity: 0; | |
transition: opacity 1s; | |
} | |
.popup .show { | |
visibility: visible; | |
opacity: 1; | |
} | |
#search-worker { | |
padding: 20px; | |
} | |
#search-worker #worker-search-input { | |
padding: 1%; | |
margin-left: 30%; | |
font-size: 1rem; | |
width: 40%; | |
margin-bottom: 1%; | |
} | |
.worker-card { | |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); | |
padding: 20px; | |
margin: 10px 0; | |
background: #333; | |
color: #eee; | |
border-radius: 5px; | |
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; | |
} | |
.worker-info { | |
margin: 5px 0; | |
} | |
#worker-information { | |
padding: 20px; | |
} | |
#worker-info-form label { | |
display: block; | |
margin-top: 10px; | |
} | |
#worker-info-form input[type="text"], | |
#worker-info-form textarea { | |
width: 100%; | |
padding: 8px; | |
margin-top: 5px; | |
} | |
#worker-info-form button { | |
margin-top: 20px; | |
} | |
#submit-button { | |
display: inline-block; | |
padding: 10px 20px; | |
background-color: #1c1c1c; | |
color: white; | |
border: none; | |
border-radius: 4px; | |
cursor: pointer; | |
} | |
.hidden { | |
opacity: 0; | |
transition: opacity 0.5s ease-in-out; | |
} | |
.show { | |
opacity: 1; | |
} | |
#worker-info-form input[type="time"] { | |
font-size: 1rem; | |
width: 20%; | |
} | |
#account-information h2{ | |
margin-left: 29%; | |
margin-top: 2%; | |
} | |
#account-information input[type="text"], | |
#account-information input[type="email"], | |
#account-information input[type="tel"], | |
#account-information textarea { | |
width: 100%; | |
padding: 10px; | |
margin-bottom: 10px; | |
border: 1px solid #ccc; | |
border-radius: 4px; | |
} | |
#account-information button { | |
display: inline-block; | |
padding: 10px 20px; | |
background-color: #1c1c1c; | |
color: white; | |
border: none; | |
border-radius: 4px; | |
cursor: pointer; | |
} | |
#account-information button:hover { | |
background-color: #45a049; | |
} | |
#account-information form { | |
max-width: 600px; | |
margin: 0 auto; | |
padding: 20px; | |
} |