Newer
Older
dmpopidor / lib / assets / stylesheets / roadmap-form.scss
@briley briley on 9 Jun 2017 8 KB resolved cherry-pick conflicts
@import "font-awesome";

$font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
$header-font: "GillSansLight";

$white: #FFF;
$error-color: #CC0000;
$error-background: #FFE6E6;
$dark-grey: #333;
$light-grey: #CCC;

$primary-color: #F49700;
$primary-admin-color: #0057A7;
$disabled-button-color: #CCC;
$cancel-button-color: #827D7E;
$reverse-text: #FFF;

/* See `.combobox-clear-button` for an example of this mixin in use */
@mixin icon($icon) {
  @extend .fa;
  @extend .fa-#{$icon}:before;
}

/* ========================================================= */
/* NULL OUT OLD BOOTSTRAP_AND_OVERRIDES STYLING */
/* ========================================================= */
#new_user input {
  width: 350px;
}
#new_user input[type="checkbox"]{
  width: auto;
}
#new_user input[type="submit"] {
  width: 150px;
  margin-left: 15px;
}
/* ========================================================= */

.primary-color {
  color: $primary-color;
}

.arrow-left {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 12px solid $dark-grey;
}

.main_header {
  margin-bottom: 20px;
}

.content-two-column {
  width: 98%;
  
  .column-left {
    display: inline-block;
    width: 55%;
  }
  .column-right {
    display: inline-block;
    width: 40%;
    margin-left: 35px;
    vertical-align: top;
  }
}

.inline {
  display: inline-block;
}
.centered {
  text-align: center;
}

/* Roadmap Tab Styling */
/* ------------------------------------------------ */
.tabs {
  list-style: none;
  margin: 0;

  li {
    display: inline;
    
    a {
      position: relative;
      float: left;
      display: block;
      padding: 10px 35px;
      margin-left: -1px;
      left: 1px; 
      color: $white;
      background-color: $primary-color;
      text-decoration: none;
      font-weight: bold;
    }
  }
  li a:hover,
  li.active a,
  li.active a:hover {
    color: $primary-color;
    background-color: $white;
  }
}
.tabs:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: "";
  clear: both;
  height: 0;
}
.tab-panels {
  position: relative;
  min-height: 250px;
}
.tabbed-area div.tab-panel {
  background: white;
  padding: 20px;
  min-height: 250px;
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
}
.tab-panel div.active {
  z-index: 1;
}


/* Roadmap Form Styling */
/* ------------------------------------------------ */
form.roadmap-form {
  text-align: left;

  fieldset.padded {
    padding: 10px 10px 25px 10px;
  }

  .red-border {
    border: 1px solid $error-color;
  }
  span[class*='error'] {
    float: right;
    background-color: $error-background;
    color: $error-color;
    padding: 5px;
    margin-bottom: 5px;
    
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
  }

  /* Fieldset with labels over inputs */
  fieldset.standard {
    padding: 5px;
    background-color: $white;

    margin-bottom: 25px;

    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    
    label, 
    input[type="checkbox"], 
    .combobox-container, 
    .left-indent {
      margin-left: 15px;
    }
    
    input[type="text"], select {
      margin-bottom: 15px;
    }
    
    input[type="checkbox"] {
      vertical-align: top;
    }
    
    .checkbox-label {
      display: inline-block;
      margin-left: 5px;
    }
  }
  
  /* Fieldset with labels to the left of inputs */
  fieldset.side-by-side {
    .mce-tinymce {
      display: inline-block;
    }
    
    div {
      label,
      input[type="checkbox"], 
      .combobox-container, 
      .identifier-scheme {
        display: inline-block;
      }

      .identifier-scheme-indent {
        margin-left: -5px;
      }
      
      label {
        width: 25%;
        text-align: right;
        margin-right: 10px;
        vertical-align: middle;
      }

      input.form-submit, 
      button.form-cancel {
        font-size: 10pt;
      }
    }
    
    .button-spacer {
      display: inline-block;
      width: 21%;
    }
  }
  
  /* Generic Fieldset Settings */
  fieldset legend {
    font-family: $header-font;
    color: $primary-color;
    font-size: 26px;
    font-weight: normal;
    text-decoration: none;
  
    float: left; /* positions the legend within the fieldset box */
    border-bottom: none;
  }
  
  div.inline {
    display: inline-block;
  }
  .left-indent {
    margin-left: 15px;
  }
  .input-extra-large {
    width: 70%;
  }
  .input-large {
    width: 50%;
  }
  .input-medium {
    width: 30%;
  }
  .input-small {
    width: 10%;
  }
  /* Used for the jquery autocomplete combobox on side-by-side fieldsets */
  .fixed-width-large {
    width: 550px;
  }
  
  /* Accessible Form Buttons */
  input.form-submit {
    background-color: $primary-color;
    color: $reverse-text;
    padding: 4px 12px;
    font-size: 14px;
    margin-top: 15px;
  
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
  }
  /* Override the button color for the Org Admin sections */
  input[type="submit"].admin{
    background-color: $primary-admin-color;
  }
  input.form-submit[aria-disabled='true'] {
    background-color: $disabled-button-color;
  }
  input.form-submit:focus + [role="tooltip"] {
    display: inline-block;
  }
  button.form-cancel {
    background-color: $cancel-button-color;
    color: $reverse-text;
    padding: 4px 12px;
    font-size: 14px;
    
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
  }
  .submit-tooltip {
    display: none;
    margin-left: 5px;

    .arrow-left {
      vertical-align: middle;
      margin-right: -5px;
    }
    .submit-tooltip-msg {
      color: $white;
      background-color: $dark-grey;
      padding: 5px 5px 8px 5px;
  
      -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
      border-radius: 5px;
    }
  }
  input.small-input-button {
    width: 250px;
  }
	
	div.form-input {
		position: relative;
	}
	.error-tooltip {
		display: none;
		position: absolute;
		top: 0;
		right: 0;
		z-index: 1;
	}
	.error-tooltip[role='tooltip'] {
		display: inline-block;
	}

}

/* Accessible JQuery combobox */
/* ------------------------------------------------------ */
.invisible {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.combobox-container {
  position: relative;
  max-width: 585px;
  
  font-family: $font-family;
}

.combobox-suggestions {
  position: absolute;
  left: 0;
  width: 562px;
  margin-top: -10px;
  background: #fff;
  z-index: 99;
}
.combobox-suggestion {
  color: #666;
  border-bottom: 1px solid #000;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  padding: 5px 10px 5px 10px;
  cursor: pointer;
  text-align: left;
}
.combobox-suggestion:first-child {
  border-top: 1px solid #000;
}
.combobox-suggestion:hover,
.combobox-suggestion:focus {
  color: $white;
  background-color: $primary-color;
}

.combobox-clear-button {
  @include icon(times-circle);
  display: inline;
  position: absolute;
  border: none;
  background: transparent;
  padding-top: 3px;
  font-size: 16pt;
}

/* http://geektnt.com/how-to-remove-x-from-search-input-field-on-chrome-and-ie.html */
.js-combobox[type=text]::-ms-clear { display: none; width: 0; height: 0; }
.js-combobox[type=text]::-ms-reveal { display: none; width: 0; height: 0; }



/* ------------------------------------------------ */
/* ------------------------------------------------ */
/* Page specific styling */
/* ------------------------------------------------ */
/* ------------------------------------------------ */

/* Login form */
/* ------------------------------------------------ */
.omniauth-options {
  display: block;
  width: 100%;

  .omniauth-login {
    width: 410px;
    padding: 4px 12px;
    background-color: $primary-color;
    color: $white;
    margin: 0 auto 10px auto;
  
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
  }
}
#new_user fieldset {
  input[type="password"],
  input[type="email"] {
    width: 392px;
  }
}
#new_user.user-registration {
  #user_firstname,
  #user_surname {
    width: 150px;
  }
  input[type="password"],
  input[type="email"] {
    width: 332px;
  }
}
div#forgot-password-link {
  vertical-align: bottom;
  margin-bottom: 5px;
  
  a:hover {
    color: $primary-color !important;  /* Remove the important once the bootstrap_and_overrides css is gone */
  }
}