Files
freeCodeCamp/public/css/main.less

1022 lines
15 KiB
Plaintext
Raw Normal View History

2014-01-23 17:22:54 -05:00
@import "lib/bootstrap/bootstrap";
@import "lib/bootstrap-social/bootstrap-social";
2014-07-01 17:04:45 -04:00
@import "lib/ionicons/ionicons";
@import "lib/animate.min.less";
2015-01-25 10:35:41 -08:00
@import "lib/bootstrap/variables";
2014-11-07 17:00:27 -08:00
html,body,div,span,a,li,td,th {
font-family: 'Lato', sans-serif;
font-weight: 300;
}
2015-01-08 22:31:15 -08:00
li, .wrappable {
white-space: pre; /* CSS 2.0 */
white-space: pre-wrap; /* CSS 2.1 */
white-space: pre-line; /* CSS 3.0 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
white-space: -moz-pre-wrap; /* Mozilla */
white-space: -hp-pre-wrap; /* HP Printers */
word-wrap: break-word; /* IE 5+ */
}
2014-05-11 04:04:39 -04:00
html {
position: relative;
min-height: 100%;
// hack to prevent horizontal overflow problem on showHTML view
overflow-x: hidden;
2014-01-24 02:14:40 -05:00
}
input[type=checkbox]
{
/* Double-sized Checkboxes */
-ms-transform: scale(2); /* IE */
-moz-transform: scale(2); /* FF */
-webkit-transform: scale(2); /* Safari and Chrome */
-o-transform: scale(2); /* Opera */
padding: 10px;
}
2015-01-27 15:05:51 -08:00
body.full-screen-body-background {
background-color: #eeeeee;
}
body.top-and-bottom-margins {
padding-top: 80px;
margin-bottom: 60px;
}
2013-12-12 01:35:18 -05:00
body.no-top-and-bottom-margins {
2015-01-27 20:12:51 -05:00
margin: 70px 20px 50px 20px;
}
2013-12-12 01:35:18 -05:00
h1, h2 {
font-weight: 400;
}
.btn {
font-weight: 400;
}
2014-10-18 14:53:32 -07:00
h1, h2, h3, h4, h5, h6, p, li {
padding-top: 5px;
padding-bottom: 5px;
}
// Alerts
2014-03-07 14:40:01 -05:00
// -------------------------
.alert {
margin-top: 20px;
2014-03-07 14:40:01 -05:00
}
2014-06-05 14:18:51 -04:00
// Thumbnails
2014-03-07 14:40:01 -05:00
// -------------------------
2014-06-05 14:18:51 -04:00
.thumbnail {
padding: 0;
border-radius: 0;
box-shadow: 0 0 5px #ccc, inset 0 0 0 #000;
}
2014-07-01 18:00:28 -04:00
// Font Icons
2014-03-07 14:40:01 -05:00
// -------------------------
2014-07-01 18:00:28 -04:00
.fa,
[class^='ion-'] {
margin-right: 5px;
}
2014-10-13 14:14:51 -07:00
.img-center {
margin: 0 auto;
}
2014-10-13 14:14:51 -07:00
.three-by-three {
height: 100px;
}
2014-10-13 14:14:51 -07:00
2014-10-24 18:51:32 -07:00
/**/
2014-10-13 14:14:51 -07:00
.btn-cta {
font-size: 40px;
}
2014-10-13 14:14:51 -07:00
2014-10-26 09:32:57 -07:00
.nonprofit-cta {
2014-10-25 10:27:09 -07:00
font-size: 28px;
2014-10-24 18:51:32 -07:00
}
2014-10-13 14:14:51 -07:00
.btn {
white-space: normal;
-webkit-box-shadow: 2px 4px 1px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 2px 4px 1px rgba(0, 0, 0, 0.3);
box-shadow: 2px 4px 1px rgba(0, 0, 0, 0.3);
}
2014-10-13 14:14:51 -07:00
.btn-nav {
2014-11-07 16:45:19 -08:00
margin-top: 10px;
2014-10-13 18:00:37 -07:00
}
ul {
list-style: none;
word-wrap: break-word;
}
2014-10-18 14:53:32 -07:00
.img-center {
margin:0 auto;
2014-10-13 21:38:10 -07:00
}
2014-10-20 15:35:42 -07:00
.centered-iframe {
display:block;
}
2014-10-21 18:00:56 -07:00
@media (min-width: 767px) {
.landing-panel-body {
padding-left: 40px;
padding-right: 40px;
}
}
.landing-panel-heading {
font-size: 40px;
}
2014-11-02 12:24:37 -08:00
.panel-heading {
font-size: 25px;
}
.panel-heading > h1 {
font-size: 25px;
padding: 2px;
margin: 2px;
}
2014-10-21 18:00:56 -07:00
.navbar-brand {
2014-10-22 07:59:39 -07:00
font-size: 26px;
2014-10-21 18:00:56 -07:00
}
.ten-pixel-break {
height: 10px;
}
.fifteen-pixel-break {
height: 15px;
}
2014-10-23 23:07:52 -07:00
.nav-height {
2014-10-24 18:51:32 -07:00
height: 50px;
2014-12-11 17:59:01 -08:00
border: none;
2014-10-23 23:07:52 -07:00
}
2014-10-21 18:00:56 -07:00
.landing-icon {
2015-01-30 14:01:54 -08:00
height: 200px;
width: 200px;
2014-10-21 18:00:56 -07:00
}
.completion-icon{
2014-10-21 18:00:56 -07:00
font-size: 150px;
}
2014-10-21 21:36:47 -07:00
.responsive-container { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; }
.responsive-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.positive-5 {
margin-top: 5px;
}
2015-03-08 18:48:20 +09:00
.positive-10 {
2015-03-08 20:22:55 +09:00
padding-top: 10px;
2015-03-08 18:48:20 +09:00
}
.positive-15 {
margin-top: 15px;
}
.negative-45 {
2014-11-30 19:05:06 -08:00
margin-top: -45px;
margin-bottom: -45px;
}
.negative-10 {
margin-top: -10px;
}
2015-03-05 07:49:55 +09:00
.negative-28 {
margin-top: -28px;
}
.negative-35 {
margin-top: -35px;
}
.negative-30 {
margin-top: -30px;
}
.negative-5 {
margin-top: -5px;
}
2014-12-11 17:59:01 -08:00
.negative-15 {
margin-top: -15px;
}
.negative-20 {
margin-top: -20px;
}
2014-11-30 19:05:06 -08:00
.landing-p {
font-size: 18px !important;
2014-10-23 23:07:52 -07:00
}
2014-10-24 18:51:32 -07:00
.text-success {
color: @brand-success;
2014-10-24 18:51:32 -07:00
}
.delay-1 {
-webkit-animation-delay: 1s;
animation-delay: 1s;
}
.delay-2 {
-webkit-animation-delay: 2s;
animation-delay: 2s;
}
.delay-4 {
-webkit-animation-delay: 4s;
animation-delay: 4s;
}
2014-12-11 23:07:33 -08:00
.delay-10 {
-webkit-animation-delay: 10s;
animation-delay: 10s;
2014-11-30 19:05:06 -08:00
}
2014-10-24 18:51:32 -07:00
.fast-animation {
-webkit-animation-duration: 0.5s;
animation-duration: 0.5s;
2014-10-25 10:27:09 -07:00
}
.slow-animation {
-webkit-animation-duration: 1.5s;
animation-duration: 1.5s;
}
2014-10-25 10:27:09 -07:00
.disabled {
pointer-events: none;
cursor: default;
color: graytext !important;
}
.hidden-element {
display: none;
}
.button-container {
2014-11-02 09:07:40 -08:00
height: 120px;
2014-11-06 23:20:20 -08:00
}
2014-11-07 13:25:08 -08:00
.nav-logo {
height: 40px;
margin-top: -10px;
@media (max-width: 381px) {
2014-11-07 13:25:08 -08:00
height: 30px;
margin-top: -5px;
}
}
.navbar-right {
@media (min-width: 767px) {
padding-right: 50px;
}
2015-01-17 16:09:35 -08:00
@media (max-width: 991px) and (min-width: 768px) {
position: absolute;
right:0;
margin-right: 10px;
white-space: nowrap;
}
}
2014-11-07 13:25:08 -08:00
.navbar {
white-space: nowrap;
2015-01-17 16:09:35 -08:00
border: none;
@media (min-width: 767px) {
padding-left: 30px;
padding-right: 30px;
}
2014-11-07 13:47:39 -08:00
}
.panel-body {
2014-11-07 16:45:19 -08:00
margin-bottom: -6px;
2014-11-07 13:25:08 -08:00
}
2014-11-06 23:20:20 -08:00
.strikethrough {
text-decoration: line-through;
2014-11-07 13:25:08 -08:00
}
.btn-social {
width: 250px;
margin: auto;
}
.btn-link-social {
max-width: 400px;
2014-12-24 00:07:20 -08:00
margin: auto;
margin-bottom: 10px;
}
.navbar {
2014-12-11 15:36:46 -08:00
background-color: #4a2b0f;
}
2014-12-30 10:45:19 -08:00
.navbar-nav > li > a {
color: #eee;
&:hover {
2014-12-30 10:45:19 -08:00
color: #4a2b0f;
}
}
2014-11-30 19:05:06 -08:00
.hug-top {
2014-12-11 17:59:01 -08:00
margin-top: -35px;
2014-11-30 19:05:06 -08:00
margin-bottom: -10px;
}
.nonprofit-landing {
font-size: 50px;
}
.big-text {
font-size: 63px;
2014-11-30 19:05:06 -08:00
}
.scroll-lock {
overflow: hidden;
height: 100%;
2014-12-04 15:55:37 -08:00
}
.signup-btn.btn {
background-color: #ffac33;
background-image: linear-gradient(#ffcc4d, #ffac33);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffcc4d, endColorstr=#ffac33, GradientType=0)";
border-color: #f1a02a;
2014-12-30 12:38:45 -08:00
color: #292f33 !important;
2014-12-04 15:55:37 -08:00
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.signup-btn:hover, .signup-btn:focus {
background-color: #e99110;
background-image: linear-gradient(#ffcc4d, #e99110);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffcc4d, endColorstr=#e99110, GradientType=0)";
border-color: #ec8b11;
2014-12-30 12:38:45 -08:00
color: #292f33 !important;
2014-12-04 15:55:37 -08:00
}
.signup-btn:active {
background-color: #f2a330;
background-image: none;
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
}
.profile-image {
border-radius: 5px;
width: 200px;
height: 200px;
2014-12-18 00:45:31 -08:00
padding-left: 5px;
padding-right: 5px;
}
.team-member {
height: 420px;
}
*, *:before, *:after {box-sizing: border-box !important;}
.masonry-row {
-moz-column-width: 18em;
-webkit-column-width: 18em;
-moz-column-gap: 1em;
-webkit-column-gap:1em;
}
.masonry-block {
display: inline-block;
padding: .25rem;
width: 100%;
}
.masonry-relative {
position:relative;
display: block;
}
.next-challenge-button {
max-width: 1500px;
margin:0 auto;
}
.btn-big {
font-size: 30px;
}
.big-text-field {
2015-03-08 11:53:03 +09:00
font-size: 30px;
height: 57px;
}
.btn-responsive {
2015-03-08 11:53:03 +09:00
@media (max-width: 768px) {
font-size: 15px;
height: 26.5px;
padding-top: 1px;
}
}
.field-responsive {
2015-03-08 11:53:03 +09:00
@media (max-width: 768px) {
font-size: 15px;
height: 26.5px;
}
2015-03-05 17:30:05 -08:00
}
2014-12-05 23:10:02 -08:00
.table {
margin-left: -16px;
}
thead {
font-size: 150%;
2014-12-17 23:59:28 -08:00
}
.nowrap {
white-space: nowrap;
}
.big-break {
margin-top: 50px;
margin-bottom: 50px;
}
.profile-picture {
height: 50px;
width: 50px;
}
.navbar-nav a {
2014-12-30 10:45:19 -08:00
color: #eee;
font-size: 20px;
margin-top: -5px;
2014-12-30 12:38:45 -08:00
margin-bottom: -5px;
2014-12-30 11:40:37 -08:00
}
.navbar-toggle {
color: #eee;
2014-12-30 12:38:45 -08:00
}
.navbar-right {
background-color: #4a2b0f;
text-align: center;
}
.signup-btn-nav {
margin-top:-2px !important;
padding-top: 10px !important;
padding-bottom: 10px !important;
}
.nameline {
margin-top: -5px;
font-size: 40px;
}
.public-profile-img {
height: 200px;
width: 200px;
2015-01-08 23:27:14 -08:00
border-radius: 5px;
}
.ng-invalid.ng-dirty {
border-color: #FA787E;
}
.ng-valid.ng-dirty {
border-color: #78FA89;
}
.desktop-narrow {
@media (min-width: 767px) {
marign: 0 auto;
width: 80%;
}
2015-01-08 22:31:15 -08:00
}
.min650 {
min-height: 630px;
}
.portfolio-image {
height: 225px;
width: 300px;
border-radius: 5px;
2015-01-08 22:31:15 -08:00
}
.flat-top {
margin-top: -5px;
2015-01-08 23:27:14 -08:00
}
.negative-bottom {
margin-bottom: -20px;
}
.min-height-1000 {
min-height: 1000px;
}
.points-on-top {
color: #eee;
font-size: 35px;
z-index: 2;
width: 60%;
margin: 0 auto;
position: relative;
top: 50%;
transform: translateY(-50%);
}
2015-01-15 17:21:12 -08:00
.landing-skill-icon {
color: #215f1e;
2015-01-15 21:39:01 -08:00
font-size: 150px;
2015-01-15 17:21:12 -08:00
}
.black-text {
color: #333;
font-weight: 400;
font-size: 40px;
}
2015-01-15 19:04:24 -08:00
.font-awesome-padding {
2015-01-15 21:39:01 -08:00
margin-top: 45px;
2015-01-15 19:04:24 -08:00
margin-bottom: 20px;
}
.background-svg {
width: 220px;
height: 220px;
background-image: url("https://s3.amazonaws.com/freecodecamp/certificate-icon.svg");
background-size: 120%;
background-repeat: no-repeat;
background-position: center;
}
2015-01-15 19:04:24 -08:00
2015-01-15 17:21:12 -08:00
.testimonial-image {
border-radius: 5px;
height: 200px;
width: 200px;
2015-02-10 12:46:34 -08:00
color: #009900
2015-01-15 17:21:12 -08:00
}
.testimonial-copy {
font-size: 20px;
text-align: center;
2015-01-15 19:04:24 -08:00
@media (min-width: 991px) and (max-width: 1199px) {
height: 120px;
}
@media (min-width: 1200px) {
height: 90px;
}
2015-01-15 17:21:12 -08:00
}
2015-01-17 16:09:35 -08:00
.hamburger-dropdown {
@media (max-width: 768px) {
margin-top: -5px;
}
}
.challenge-list-header {
background-color: #215f1e;
color: #eee;
font-size: 36px;
text-align: center;
margin-bottom: -30px;
border-radius: 5px 5px 0px 0px;
padding-left: 50px;
}
2015-02-22 16:46:55 +09:00
.all-list-header {
background-color: #4A2B0F;
color: #eee;
font-size: 36px;
text-align: center;
margin-bottom: -30px;
border-radius: 5px 5px 0px 0px;
padding-left: 50px;
}
.closing-x {
color: #eee;
font-size: 50px;
text-align: right;
}
2015-01-17 14:16:29 -08:00
.fcc-footer {
width: 100%;
2015-04-07 00:11:31 -07:00
height: 50px;
2015-01-17 14:16:29 -08:00
text-align: center;
background-color: #4a2b0f;
2015-04-07 00:11:31 -07:00
padding: 12px;
2015-01-17 14:16:29 -08:00
bottom: 0;
left: 0;
2015-01-17 14:16:29 -08:00
position: absolute;
a {
2015-04-07 00:11:31 -07:00
font-size: 20px;
2015-01-17 14:16:29 -08:00
color: #eee;
2015-04-07 00:11:31 -07:00
margin-left: 0px;
margin-right: 0px;
padding-left: 10px;
padding-right: 10px;
2015-01-17 14:16:29 -08:00
&:hover {
2015-04-07 00:11:31 -07:00
padding-top: 14px;
padding-bottom: 14px;
2015-01-17 14:16:29 -08:00
color: #4a2b0f;
background-color: #eee;
text-decoration: none;
}
}
}
.embed-responsive-twitch-chat {
padding-bottom: 117%;
}
#directions {
text-align: left;
font-size: 15px;
}
.jquery-exercises-well {
text-align: left;
height: 200px;
}
#exercise-directory {
font-size: 20px;
}
#current-exercise {
text-size: 250px;
}
.bonfire-instructions {
margin-bottom: 5px;
}
/**
* Bonfire styling
*/
2015-01-19 23:52:39 -05:00
form.code span {
font-size: 18px;
font-family: "Ubuntu Mono";
2015-01-20 03:10:24 -05:00
padding-bottom: 0px;
margin-bottom: 0px;
height: 100%;
}
.CodeMirror-linenumber {
font-size: 18px;
font-family: "Ubuntu Mono";
}
#mainEditorPanel {
height: 100%;
2015-01-20 03:10:24 -05:00
}
2015-01-25 10:35:41 -08:00
.big-error-icon {
font-size: 40px;
2015-01-25 10:35:41 -08:00
color: @brand-danger;
}
.big-success-icon {
font-size: 40px;
2015-01-25 10:35:41 -08:00
color: @brand-primary;
}
.test-output {
font-size: 15px;
2015-01-25 10:35:41 -08:00
font-family: "Ubuntu Mono";
}
2015-01-20 03:10:24 -05:00
#mainEditorPanel .panel-body {
padding-bottom: 0px;
}
.panel-bonfire {
height: 100%
}
2015-01-20 20:35:25 -05:00
div.CodeMirror-scroll {
2015-01-27 20:12:51 -05:00
padding-bottom: 30px;
}
2015-01-20 20:35:25 -05:00
2015-01-25 10:35:41 -08:00
.test-vertical-center {
margin-top: 15px;
}
2015-01-27 20:12:51 -05:00
.cm-s-monokai.CodeMirror {
border-radius: 5px;
}
.bonfire-flames {
margin-top: -20px;
margin-bottom: -2px;
}
.bonfire-top {
margin-top: -30px;
}
iframe.iphone {
border: none;
@media(min-width: 992px) {
width: 280px;
height: 500px;
position: absolute;
top: 70px;
right: 25px;
2015-02-04 14:59:45 -05:00
overflow-y: scroll;
}
@media(max-width: 991px) {
width: 100%;
border-radius: 5px;
2015-02-04 14:59:45 -05:00
overflow-y: visible;
}
}
.nonprofit-help-select-text-height {
font-size: 40px;
padding-top: 20px;
}
// To adjust right margin, negative values bring the image closer to the edge of the screen
.iphone-position {
position: absolute;
top: -50px;
right: -205px;
z-index: -1;
}
.courseware-height {
min-height: 650px;
}
2015-02-10 16:26:59 -08:00
// This is used to give icons text for screen readers to read out, without needing the text to actually appear.
.icon-lock{
font-size: 0px;
}
.stats-text {
font-size: 26px;
line-height: 150%;
}
.github-and-twitter-button-text {
padding-top: 10px;
}
.gitter-imbed {
height: 100%;
margin-bottom: 50px;
}
.btn-primary-ghost {
background: transparent;
color: @brand-primary;
/* CSS Transition */
-webkit-transition: background .2s ease-in-out, border .2s ease-in-out;
-moz-transition: background .2s ease-in-out, border .2s ease-in-out;
-ms-transition: background .2s ease-in-out, border .2s ease-in-out;
-o-transition: background .2s ease-in-out, border .2s ease-in-out;
transition: background .2s ease-in-out, border .2s ease-in-out;
}
@media (max-width: 991px) {
.navbar-header {
float: none;
}
.navbar-toggle {
display: block;
}
.navbar-collapse.collapse {
display: none !important;
}
.navbar-nav {
float: none !important;
margin: 7.5px -15px;
}
.navbar-nav > li {
float: none;
}
.navbar-nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
}
.navbar-text {
float: none;
margin: 15px 0;
}
/* since 3.1.0 */
.navbar-collapse.collapse.in {
display: block !important;
}
.collapsing {
overflow: hidden !important;
}
}
.hamburger {
width: 80px;
padding-left: 0px;
padding-right: 8px;
margin-left: 0px;
margin-right: 2px;
text-align:left;
font-size: 10px;
}
.hamburger-text {
line-height: 0.75em;
margin-top: 10px;
font-size: 16px;
margin-left: -8px;
}
2015-02-26 14:38:22 -08:00
.tight-h3 {
2015-02-27 14:00:47 -08:00
margin-top: -4px;
margin-bottom: -4px;
2015-02-26 14:38:22 -08:00
}
.story-list {
padding-bottom: 30px;
margin-bottom: 30px;
}
2015-03-03 14:35:35 -08:00
.big-ion-up-arrow {
font-size: 45px;
margin-top: -10px;
margin-bottom: -15px;
text-align: center;
}
.big-ion-up-arrow #upvote, #reply-to-main-post {
cursor: pointer;
}
.story-up-votes {
padding-top: 0px;
margin-left: -5px;
text-align: center;
2015-03-03 14:35:35 -08:00
}
.control-label .control-label-story-submission {
telt-align: left;
}
.img-story-post {
max-width: 110px;
max-height: 110px;
}
.button-spacer {
padding: 3px 0 2px 0;
}
.spacer {
padding: 15px 0 15px 0;
}
.img-news {
width: 50px;
height: 50px;
}
.url-preview {
max-width: 250px;
max-height: 250px;
}
2015-03-08 18:48:20 +09:00
//.media ~ .media .media-body-wrapper:nth-child(odd) {
// background-color: #e5e5e5;
//}
2015-04-28 22:29:59 -07:00
.news-box {
@media (min-width: 768px) {
margin-top: -40px;
}
@media (max-width: 767px) {
padding: 5px;
border-color: @brand-info;
border-width: 1px;
border-style: solid;
border-radius: 5px;
width: 100%;
float: left;
}
2015-03-08 20:22:55 +09:00
}
.story-headline {
font-size: 20px;
2015-04-28 22:29:59 -07:00
@media (max-width: 767px) {
text-align: center;
margin-top: 10px;
margin-bottom: 10px;
}
}
#reply-to-main-post, #upvote {
cursor: pointer;
}
.btn-no-shadow {
-webkit-box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
-moz-box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}
2015-02-22 23:47:30 -08:00
#cal-heatmap {
width: 361px;
}
.cal-heatmap-container {
background-color: #EEEEEE;
2015-02-22 23:47:30 -08:00
}
.checkbox-table label {
margin-left: 10px;
}
2015-04-01 22:31:08 -07:00
.interested-camper-image {
height: 50px;
width: 50px;
padding: 5px;
}
.svg-challenge-map {
fill: #333;
height: 40px;
}
2015-04-28 22:29:59 -07:00
.news-number {
font-size: 30px;
text-align: center;
}
.mobile-story-image {
border-radius: 5px;
width: 100%;
@media (max-width: 768px) {
margin-top: 5px;
}
}
.alert a {
text-decoration: underline;
}
.step-text {
line-height: 120%;
padding-bottom: 10px;
}
2015-04-18 14:17:10 -07:00
.faded {
opacity: 0.5;
}
2015-04-18 14:17:10 -07:00
.same-line {
display: inline-block;
}
.padded-ionic-icon {
padding-top: 5px;
}
.checklist-element {
margin-left: -60px;
margin-right: -20px;
}
2015-04-28 22:29:59 -07:00
.border-radius-5 {
border-radius: 5px;
}
//uncomment this to see the dimensions of all elements outlined in red
//* {
// border-color: red;
// border-width: 1px;
// border-style: solid;
2015-01-18 19:10:03 -05:00
//}