- /* MAIN SECTION */
- div#main-container {
- width: 100%;
- background-image: url('../images/bg-tile.jpg');
- }
- main {
- width: 988px;
- max-width: 100%;
- display: flex;
- margin: 0 auto;
- flex-direction: row; /* aside and section are side-by-side */
- }
- main aside#left-sidebar {
- width: 256px;
- height: auto;
- flex-grow: 1;
- background-color: #535351;
- }
- main aside#left-sidebar nav#left-nav {
- margin-bottom: 80px;
- }
- main aside#left-sidebar nav#left-nav ul {
- font-size: 1em;
- margin-left: 10px;
- }
- main aside#left-sidebar nav#left-nav ul li {
- font-size: 1em;
- padding: 10px 0 10px 10px;
- display: block;
- border-bottom: 0.5px solid rgba(255,255,255,0.5);
- }
- main aside#left-sidebar nav#left-nav ul li ul li {
- font-size: 0.9em;
- padding: 10px 0 10px 10px;
- display: block;
- border-bottom: none;
- }
- main aside#left-sidebar nav#left-quicklinks ul {
- font-size: 1.2em;
- margin-left: 10px;
- }
- main aside#left-sidebar nav#left-quicklinks ul li {
- padding: 10px 0 10px 10px;
- display: block;
- border-top: 1.5px solid #fff;
- }
- main aside#left-sidebar nav#left-quicklinks ul li:last-child {
- border-bottom: 1.5px solid #fff;
- }
- main section#right-section {
- width: calc(100% - 256px);
- height: auto;
- flex-grow: 1;
- background-color: rgb(242, 240, 229);
- color: #000;
- position: relative;
- }
- main section#right-section div#page-banner-image {
- max-width: 733px;
- width: 100%;
- background-image: url('../images/uscb-computational-science-placeholder-banner.png');
- background-size: contain;
- background-repeat: no-repeat;
- height: 0;
- max-height: 202px;
- padding-bottom: 27.55%; /* 202 / 733 = 27.55% */
- /* This is a bit of a trick to ensure that
- the #page-banner-image div height remains proportional
- to the div's width */
- }
- main section#right-section div#breadcrumbs {
- width: 100%;
- padding-top: 10px;
- text-align: right;
- }
- main section#right-section div#breadcrumbs p {
- margin-right: 15px;
- color: #535251;
- font-size: 0.9em;
- }
- main section#right-section div#breadcrumbs a {
- text-decoration: underline;
- color: #535251;
- }
- main section#right-section div#breadcrumbs a:hover, main section#right-section div#breadcrumbs a:focus {
- text-decoration: none;
- }
- main section#right-section div#breadcrumbs span {
- font-weight: bold;
- }
- main section#right-section div#page-content {
- margin: 0 25px 100px;
- }
- main section#right-section div#page-content h1 {
- font-weight: normal;
- font-family: 'Economica', sans-serif;
- margin: 10px auto;
- color: #9c6409;
- font-size: 2.3em;
- }
- main section#right-section div#page-content h2 {
- font-weight: normal;
- color: cadetblue;
- margin: 10px auto;
- font-size: 1.3em;
- color: #009bd7;
- }
- main section#right-section div#page-content p {
- font-size: 0.9em;
- margin: 10px auto;
- padding-bottom: 15px;
- }
- main section#right-section div#page-content a {
- color: #9c6409;
- text-decoration: underline;
- }
- main section#right-section div#page-content a:hover, main section#right-section div#page-content a:focus {
- color: #9c182f;
- text-decoration: none;
- }
- /* for RWD (Responsive Web Design) */
- @media only screen and (max-width: 580px) {
- main {
- width: 100%;
- display: flex;
- margin: 0 auto;
- flex-direction: column-reverse; /* ensures section is stacked ABOVE aside */
- }
- main aside#left-sidebar {
- width: 100%;
- height: auto;
- flex-grow: 1;
- background-color: #535351;
- }
- main aside#left-sidebar nav#left-nav {
- margin-bottom: 20px;
- }
- main section#right-section {
- width: 100%;
- height: auto;
- flex-grow: 1;
- background-color: rgb(242, 240, 229);
- color: #000;
- }
- }
- /* styles for right-floated-div */
- #optional-right-floated-image {
- float: right;
- width: 210px;
- height: 210px;
- margin-left: 20px;
- background-image:url('../images/sand-shark-logo.png');
- background-size: contain;
- }
- div#apply-now-button {
- display: inline-block;
- max-width: 344px;
- width: calc(100% - 6px);
- height: 50px;
- line-height: 50px;
- vertical-align: middle;
- background-color: #3cb6ce; /* #ce372f; */
- margin-bottom: 15px;
- font-weight: bold;
- text-align: center;
- font-size: 21px;
- border: 4px solid #21578a; /* #8e001c; */
- box-shadow: 0px 4px 1px gray;
- }
- div#apply-now-button:hover, div#apply-now-button:focus {
- background-color: #21578a; /* #8e001c; */
- color: white;
- box-shadow: 0px 4px 1px gray;
- }
- div#apply-now-button:active {
- position: relative;
- top: 4px;
- box-shadow: none;
- }
- a#apply-now-link {
- max-width: 350px !important;
- width: 100% !important;
- height: 58px !important;
- display: inline-block !important;
- color: white !important;
- text-decoration: none !important;
- margin-bottom: 15px !important;
- }
Raw Paste