Created
October 28, 2013 02:06
-
-
Save jccarlin56/7190371 to your computer and use it in GitHub Desktop.
Style Guide Example - RJMetrics From https://dashboard.rjmetrics.com/v2/sass/common.scss
This file contains hidden or 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
| @import "compass"; | |
| $iconSpritePath: '../images/iconSprite.png'; | |
| // 1.0 Color Palette | |
| /* | |
| Logo | |
| $logoGray - Gray found in the RJM logo | |
| $logoBlue - Logo Blue | |
| $logoGreen - Logo Green | |
| $logoOrange - Logo Orange | |
| Styleguide 1.1. | |
| */ | |
| $logoGray: #231F20; | |
| $logoBlue: #00B0D8; | |
| $logoGreen: #37B34A; | |
| $logoOrange: #F05A28; | |
| $superLightGray: #f7f7f7; | |
| $lightGray: #efefef; | |
| $regularGray: #B8B8B8; | |
| $mediumGray: #797979; | |
| $darkGray: #2a2a2a; | |
| $infoBg: #fafafa; | |
| $successBg: #F0FCF0; | |
| $validationBg: #FFDADA; | |
| $warningBg: #FFFECB; | |
| $darkWarningBg: #053F61; | |
| $errorBg: #FFF9F9; | |
| /* | |
| Debug Colors | |
| $lightGray - | |
| $darkGray - | |
| $darkGrayHeader - | |
| Styleguide 1.2. | |
| */ | |
| $debugLight: #efefef; | |
| $debugMedium: #797979; | |
| $debugDark: #2a2a2a; | |
| // 2.0 Typography | |
| /* | |
| Paragraphs | |
| $inlineFont - Font stack used for all inline elements | |
| Styleguide 2.1. | |
| */ | |
| // $inlineFont: 'Gill Sans MT', 'Myriad Pro', Myriad, 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| $inlineFont: 'proxima-nova', 'ProximaNova', 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| html, body, div, span, p, blockquote, dl, dt, dd, ol, ul, li, fieldset, form, label, table, caption, tbody, tfoot, thead, tr, th, td{ | |
| // font-family: $inlineFont; | |
| font-size: 13px; | |
| } | |
| a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, sub, sup, tt, var, b, u, i, center{ | |
| font-size: inherit; | |
| } | |
| pre, pre span{ | |
| font-family: Courier, Helvetica, Arial, sans-serif; | |
| font-size: 13px; | |
| } | |
| p{ | |
| line-height: 1.7; | |
| margin: 10px 0px 10px 0px; | |
| &.headingExplanation{ | |
| width: 600px; | |
| margin-top:3px; | |
| font-weight: normal; | |
| font-style: italic; | |
| color: #777; | |
| line-height: 1.2; | |
| } | |
| } | |
| strong{ | |
| font-weight: bold; | |
| } | |
| .darkBG *{ | |
| color: #fff; | |
| } | |
| code{ | |
| display: inline-block; | |
| padding: 3px; | |
| background: $lightGray; | |
| border: $regularGray 1px solid; | |
| @include border-radius(2px); | |
| } | |
| /* | |
| Headings | |
| $headingFont - Font stack used for h1 etc | |
| Styleguide 2.2. | |
| */ | |
| $headingFont: 'proxima-nova', 'ProximaNova', 'Helvetica Neue', Helvetica, Arial, sans-serif; //'Helvetica Neue', Arial, sans-serif; | |
| h1{ | |
| margin: 10px 0px 35px 0px; | |
| font-size: 32px; | |
| font-family: $headingFont; | |
| font-weight: bold; | |
| } | |
| h2{ | |
| margin: 30px 0px 24px 0px; | |
| font-size: 26px; | |
| font-family: $headingFont; | |
| font-weight: bold; | |
| } | |
| h3{ | |
| font-size: 18px; | |
| font-family: $headingFont; | |
| } | |
| h4{ | |
| font-family: $headingFont; | |
| } | |
| h5{ | |
| font-family: $headingFont; | |
| } | |
| h6{ | |
| font-family: $headingFont; | |
| } | |
| /* | |
| Angular | |
| */ | |
| [ng\:cloak], [ng-cloak], .ng-cloak { | |
| display: none !important; | |
| } | |
| /* | |
| Horizontal Rules | |
| Styleguide 2.5. | |
| */ | |
| hr{ | |
| color: $regularGray; | |
| background-color: $regularGray; | |
| border: none; | |
| height: 1px; | |
| } | |
| /* | |
| Links | |
| :hover - On mouse over | |
| :visited - When a link has already been clicked | |
| :active - When a link is clicked | |
| Styleguide 2.3. | |
| */ | |
| a{ | |
| font-family: $inlineFont; | |
| color: $darkGray; | |
| &:hover{ | |
| text-decoration: none; | |
| } | |
| &:visited{ | |
| } | |
| &:active{ | |
| } | |
| } | |
| // Pulses the input once. Used to show that a field needs attention. | |
| input.pulse{ | |
| -webkit-animation: pulse 1s 1; | |
| } | |
| @-webkit-keyframes pulse{ | |
| 0% { box-shadow: 0px 0px 4px #F8BF9D; } | |
| 100% { box-shadow: 0px 0px 0px #F8BF9D; } | |
| } | |
| .blocked{ | |
| position: relative; | |
| &:before{ | |
| position: absolute; | |
| top: 0px; | |
| bottom: 0px; | |
| left: 0px; | |
| right: 0px; | |
| width: 100%; | |
| height: 100%; | |
| z-index: 20; | |
| background: rgba(#fff, 0.8); | |
| text-align: center; | |
| content: ' '; | |
| } | |
| &.loading{ | |
| &:before{ | |
| background: rgba(#fff, 0.6) url(../images/loader.gif) 50% 50% no-repeat; | |
| } | |
| } | |
| &.message:after{ | |
| position: absolute; | |
| text-align: center; | |
| content: attr(data-message); | |
| top: 28%; | |
| left: 0; | |
| right: 0; | |
| z-index: 30; | |
| font-weight: bold; | |
| } | |
| } | |
| // 3.0 Buttons | |
| /* | |
| Buttons | |
| :hover - Subtle hover highlight. | |
| :active - A state when the button is pressed | |
| .green - A green button used for saving things | |
| .blue - A blue button for non-save actions | |
| .orange - Orange | |
| .purple - Purple | |
| Styleguide 3.1. | |
| */ | |
| @mixin buttonGradient($top, $bottom){ | |
| @include background-image(linear-gradient($top 5%, $bottom)); | |
| } | |
| input[type=submit], input[type=button], a.button, button{ | |
| // Small Buttons | |
| &.small{ | |
| padding: 0px 5px 1px 5px; | |
| font-size: 11px; | |
| } | |
| // Big Buttons | |
| &.big{ | |
| padding: 12px 10px 14px 10px; | |
| font-size: 22px; | |
| } | |
| } | |
| button.icon.calendar{ | |
| @include box-shadow(none); | |
| border: none; | |
| } | |
| // Forms | |
| /* | |
| Text Input | |
| Styleguide 4.1. | |
| */ | |
| .form{ | |
| &.login{ | |
| width: 300px; | |
| .field{ | |
| margin: 15px 0px 5px 0px; | |
| &.submit{ | |
| a{ | |
| line-height: 2.5; | |
| } | |
| input[type=submit]{ | |
| float: right; | |
| } | |
| } | |
| label{ | |
| display: block; | |
| width: 100%; | |
| a{ | |
| float: right; | |
| } | |
| } | |
| input[type=text], input[type=password]{ | |
| width: 290px; | |
| height: 25px | |
| } | |
| } | |
| } | |
| } | |
| // Tables | |
| /* | |
| Data Table | |
| Styleguide 5.1. | |
| */ | |
| .dataTable{ | |
| height: 100%; | |
| table{ | |
| width: 100%; | |
| border-collapse: collapse; | |
| tr{ | |
| th, td{ | |
| padding: 7px 15px; | |
| border: $lightGray 1px solid; | |
| } | |
| th{ | |
| @include background-image(linear-gradient($superLightGray, $lightGray)); | |
| color: $darkGray; | |
| font-weight: bold; | |
| } | |
| td{ | |
| } | |
| } | |
| } | |
| } | |
| table.tablesorter { | |
| thead { | |
| th.header { | |
| background-image: url(../images/tablesorter/bg.gif); | |
| background-repeat: no-repeat; | |
| background-position: center right; | |
| cursor: pointer; | |
| } | |
| th.headerSortUp { | |
| background-image: url(../images/tablesorter/asc.gif); | |
| } | |
| th.headerSortDown { | |
| background-image: url(../images/tablesorter/desc.gif); | |
| } | |
| } | |
| } | |
| /* | |
| Lists | |
| Styleguide 6.1. | |
| */ | |
| ul.default{ | |
| margin: 25px 0px; | |
| padding: 0px 10px; | |
| li{ | |
| margin: 15px; | |
| list-style: disc; | |
| } | |
| } | |
| ol.default{ | |
| margin: 25px 0px; | |
| padding: 0px 10px; | |
| li{ | |
| margin: 15px; | |
| list-style: decimal; | |
| } | |
| } | |
| /* | |
| Login | |
| Styleguide 7.1. | |
| */ | |
| .login{ | |
| &> .wrapper{ | |
| } | |
| .field{ | |
| &.block{ | |
| } | |
| &.inline{ | |
| } | |
| &.submit{ | |
| margin: 10px auto; | |
| } | |
| } | |
| .links{ | |
| } | |
| } | |
| /* | |
| Notices | |
| .info - | |
| .warning - | |
| .error - | |
| Styleguide 8.1. | |
| */ | |
| .notice{ | |
| position: relative; | |
| padding: 10px; | |
| border: $mediumGray 1px solid; | |
| &.info{ | |
| background: $infoBg; | |
| border-color: darken($infoBg, 30%); | |
| } | |
| &.success{ | |
| background: $successBg; | |
| border-color: darken($successBg, 30%); | |
| } | |
| &.invalid{ | |
| background: $validationBg; | |
| border-color: darken($validationBg, 30%); | |
| } | |
| &.warning{ | |
| background: $warningBg; | |
| border-color: #FCD060; | |
| a:not(.button){ | |
| color: #DA590F; | |
| } | |
| } | |
| &.darkWarning{ | |
| background: $darkWarningBg; | |
| border-color: darken($darkWarningBg, 30%); | |
| color: #fff; | |
| } | |
| &.error{ | |
| background: $errorBg; | |
| border-color: darken($errorBg, 30%); | |
| } | |
| h1{ | |
| margin-bottom: 20px; | |
| margin-left: 10px; | |
| } | |
| h3, h4{ | |
| font-weight: bold; | |
| } | |
| h3{ | |
| margin-bottom: 10px; | |
| } | |
| h4{ | |
| margin: 10px 0px 10px 0px; | |
| } | |
| p{ | |
| margin: 10px 0px 3px 10px; | |
| &.message{ | |
| margin: 3px 0px 3px 0px; | |
| } | |
| } | |
| .close{ | |
| position: absolute; | |
| top: 7%; | |
| right: 10px; | |
| } | |
| #learnMore{ | |
| margin-left: 10px; | |
| } | |
| } | |
| // StickyBar is the bar that sticks to the bottom. Used for notices. | |
| .stickyBar{ | |
| position: fixed; | |
| bottom: 0px; | |
| left: 0px; | |
| background: #3E5C7F; | |
| color: #fff; | |
| width: 100%; | |
| p{ | |
| font-size: 14px; | |
| #chooseDemo{ | |
| margin-left: 10px; | |
| font-size: 14px; | |
| } | |
| } | |
| } | |
| span.error{ | |
| &.invalid{ | |
| font-size: 13px; | |
| color: red; | |
| font-style: italic; | |
| display: inline-block; // Overrides main.css | |
| } | |
| } | |
| /* | |
| InlinePicker | |
| Styleguide 9.1. | |
| */ | |
| .multiComplete{ | |
| background: #fff; | |
| border: $regularGray 1px solid; | |
| padding: 8px; | |
| } | |
| /* | |
| Icons | |
| Styleguide 10.1 | |
| */ | |
| @-webkit-keyframes rotate { | |
| from { | |
| -webkit-transform: rotate(0deg); | |
| } | |
| to { | |
| -webkit-transform: rotate(360deg); | |
| } | |
| } | |
| .rotate{ | |
| -webkit-animation-name: rotate; | |
| -webkit-animation-duration: 1s; | |
| -webkit-animation-iteration-count: infinite; | |
| -webkit-animation-timing-function: linear; | |
| } | |
| i.icon, .icon{ | |
| display: inline-block; | |
| width: 20px; | |
| height: 20px; | |
| background: transparent url($iconSpritePath) no-repeat; | |
| text-indent: -9999px; | |
| &.small{ | |
| width: 12px; | |
| height: 12px; | |
| } | |
| &.export{ | |
| background-position: -20px 0px; | |
| } | |
| &.settings{ | |
| background-position: -39px 0px; | |
| } | |
| &.close{ | |
| opacity: 1; | |
| filter: alpha(opacity=100); | |
| &:hover{ | |
| opacity: 1; | |
| filter: alpha(opacity=100); | |
| } | |
| background-position: -1px 0px; | |
| &.ringer{ | |
| background-position: -88px 0px; | |
| } | |
| &.gray{ | |
| background-position: -98px -23px; | |
| &.light{ | |
| background-position: -117px -23px; | |
| } | |
| } | |
| } | |
| &.calendar{ | |
| background-position: -60px 2px; | |
| width: 25px; | |
| height: 25px; | |
| } | |
| &.reload{ | |
| background-position: -289px -43px; | |
| width: 16px; | |
| height: 19px; | |
| } | |
| &.reload.medium{ | |
| background-position: -158px 0px; | |
| height: 36px; | |
| width: 28px; | |
| &.rotate{ | |
| -webkit-animation-name: rotate; | |
| -webkit-animation-duration: 1s; | |
| -webkit-animation-iteration-count: infinite; | |
| -webkit-animation-timing-function: linear; | |
| } | |
| } | |
| &.notifier{ | |
| background-position: -1px -26px; | |
| } | |
| &.syndicated{ | |
| background-position: -75px -24px; | |
| &.small{ | |
| background-position: -2px -45px; | |
| } | |
| } | |
| &.chat{ | |
| background-position: -200px -40px; | |
| width: 30px; | |
| height: 25px; | |
| } | |
| &.email{ | |
| background-position: -158px -42px; | |
| width: 32px; | |
| height: 20px; | |
| } | |
| &.call{ | |
| background-position: -243px -40px; | |
| width: 24px; | |
| height: 26px; | |
| } | |
| &.signOut{ | |
| background-position: -16px -41px; | |
| width: 12px; | |
| height: 12px; | |
| } | |
| &.fileUpload{ | |
| background-position: -1px -65px; | |
| width: 23px; | |
| height: 29px; | |
| } | |
| } | |
| /* | |
| Module | |
| Styleguide 11.1. | |
| */ | |
| .module{ | |
| position: relative; | |
| min-height: 120px; | |
| min-width: 400px; | |
| margin: 15px; | |
| padding: 5px; | |
| border: $regularGray 1px solid; | |
| background: $superLightGray; | |
| &.showcase{ | |
| overflow: hidden; | |
| padding: 20px 30px; | |
| } | |
| // Showcase Module - Primarily used for dashboards | |
| &.dashboard{ | |
| width: auto; | |
| margin: 3px 3px 6px 3px; | |
| min-width: 0px; | |
| padding: 0px; | |
| background-color: #f4f4f4; | |
| &.size-1{ | |
| width: 30%; | |
| } | |
| &.size-3{ | |
| width: 60%; | |
| } | |
| header, .dragableBoxHeader{ | |
| height: 38px; | |
| width: 100%; | |
| margin: 0px 0px 5px 0px; | |
| padding: 0px 0px 0px 0px; | |
| background-color: #f4f4f4; | |
| @include transition-property(background-color); | |
| @include transition-duration(.3s); | |
| @include transition-timing-function(ease-in); | |
| &:hover{ | |
| //@include background-image(linear-gradient(#fff, #ddd)); | |
| background-color: $darkGray; | |
| @include transition-property(background-color); | |
| @include transition-duration(.3s); | |
| @include transition-timing-function(ease-in); | |
| cursor: move; | |
| nav{ | |
| display: block; | |
| } | |
| } | |
| h2{ | |
| display: inline-block; | |
| margin: 5px 0px 0px 13px; | |
| line-height: 32px; | |
| font-size: 14px; | |
| font-weight: 400; | |
| } | |
| nav{ | |
| float: right; | |
| display: none; | |
| ul{ | |
| margin: 6px 0px 0px 0px; | |
| li{ | |
| display: inline-block; | |
| margin: 0px; | |
| padding: 0px; | |
| a{ | |
| &.close{ | |
| position: absolute; | |
| top: -10px; | |
| right: -10px; | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| .highcharts-container{ | |
| padding: 5px; | |
| } | |
| .scalar{ | |
| h3{ | |
| margin: 30px 0px 0px 0px; | |
| font-weight: bold; | |
| font-size: 70px; | |
| text-align: center; | |
| } | |
| } | |
| } | |
| } | |
| // reconcile this with module | |
| .visual { | |
| &.scalar { | |
| width: 95%; | |
| text-align: left; | |
| vertical-align:middle; | |
| margin: 0px; | |
| padding: 0px 0px 0px 15px; | |
| font-size: 43px; | |
| font-weight: 500; | |
| line-height: 1; | |
| } | |
| } | |
| /* | |
| Inline Selector | |
| Styleguide 12.1. | |
| */ | |
| .inlineSelector { | |
| margin: 6px 0px; | |
| > h3{ | |
| display: block; | |
| padding: 5px 0px; | |
| font-weight: bold; | |
| } | |
| table{ | |
| margin-top: 4px; | |
| border-collapse: separate; | |
| } | |
| .item { | |
| display: table-cell; | |
| padding: 8px 10px 8px 10px; | |
| background: #FFF; | |
| @include background-image(linear-gradient(#fff, $lightGray)); | |
| cursor: pointer; | |
| border-top: 1px solid $regularGray; | |
| border-bottom: 1px solid $regularGray; | |
| border-left: 1px solid $regularGray; | |
| border-right: none; | |
| white-space: nowrap; | |
| text-shadow: #F6F6F6; | |
| text-align: center; | |
| font-weight: 600; | |
| &:hover{ | |
| @include background-image(linear-gradient($superLightGray, $regularGray)); | |
| } | |
| &:last-child, &.last { | |
| @include border-top-right-radius(3px); | |
| @include border-bottom-right-radius(3px); | |
| border-right: 1px solid $regularGray; | |
| } | |
| &:first-child, &.first { | |
| @include border-top-left-radius(3px); | |
| @include border-bottom-left-radius(3px); | |
| } | |
| &.is-disabled, &.disabled { | |
| color: $regularGray; | |
| text-shadow: #fff; | |
| cursor: default; | |
| &:hover{ | |
| @include background-image(linear-gradient(#fff, $lightGray)); | |
| } | |
| } | |
| &.is-selected, &.selected { | |
| @include background-image(linear-gradient(top, #A9CEEC, #83B9E3 1px, #5393C5)); | |
| color: #fff; | |
| text-shadow: 0 -1px 1px $mediumGray; | |
| } | |
| &.top{ | |
| border-bottom: none; | |
| @include border-bottom-radius(0px); | |
| } | |
| &.bottom{ | |
| @include border-top-radius(0px); | |
| } | |
| } | |
| } | |
| /* | |
| Hello Bar | |
| */ | |
| .helloBar{ | |
| h2.title{ | |
| margin: 8px 0px 0px 30px; | |
| float: left; | |
| font-size: 20px | |
| } | |
| } | |
| /* | |
| Filters (Restrictions) | |
| */ | |
| .filterList{ | |
| &.empty{ | |
| min-height: 100px; | |
| position: relative; | |
| &:after{ | |
| position: absolute; | |
| content: 'No Filters'; | |
| width: 320px; | |
| top: 0; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| height: 15%; | |
| display: block; | |
| vertical-align: middle; | |
| margin: auto; | |
| color: #ddd; | |
| font-size: 45px; | |
| font-weight: 600; | |
| } | |
| } | |
| .filterLetter{ | |
| background: #444; | |
| color: #fff; | |
| font-size: 20px; | |
| padding: 10px 8px; | |
| @include border-radius(3px); | |
| display: inline-block; | |
| margin-right: 10px; | |
| } | |
| } | |
| /* | |
| Horizontal Rule | |
| */ | |
| hr{ | |
| &.thick{ | |
| height: 5px; | |
| @include background-image(linear-gradient(#409CFF, #0880B3)); | |
| } | |
| } | |
| /* | |
| Entry | |
| Used as a line item in a series. For example, a history of changelog entries. | |
| */ | |
| .entries{ | |
| .entry{ | |
| padding: 10px; | |
| margin: 10px; | |
| border: #AABEC9 1px solid; | |
| @include border-radius(5px); | |
| header{ | |
| height: 20px; | |
| margin: -10px -10px 10px -10px; | |
| padding: 15px 10px 10px 10px; | |
| background: #E9F6FD; | |
| @include border-top-radius(5px); | |
| h3{ | |
| float: left; | |
| text-transform: capitalize; | |
| font-size: 13px; | |
| font-weight: bold; | |
| .changeType{ | |
| font-weight: normal; | |
| color: $mediumGray; | |
| } | |
| } | |
| .timeSince{ | |
| float: right; | |
| font-size: 11px; | |
| strong{ | |
| font-size: 11px; | |
| } | |
| } | |
| } | |
| ul.reasons{ | |
| clear: both; | |
| margin: 5px 0px 0px 10px; | |
| li{ | |
| margin: 0px 0px 0px 20px; | |
| list-style: disc; | |
| } | |
| } | |
| } | |
| } | |
| /* | |
| Data Table | |
| */ | |
| .dataTables_wrapper { | |
| position: relative; | |
| clear: both; | |
| zoom: 1; /* Feeling sorry for IE */ | |
| min-height: 100%; | |
| margin-top: -10px; | |
| table{ | |
| margin-bottom: 0px; | |
| thead{ | |
| .sorting { background: url('../images/datatables/sort_both.png') no-repeat center right; } | |
| .sorting_asc { background: url('../images/datatables/sort_asc.png') no-repeat center right; } | |
| .sorting_desc { background: url('../images/datatables/sort_desc.png') no-repeat center right; } | |
| .sorting_asc_disabled { background: url('../images/datatables/sort_asc_disabled.png') no-repeat center right; } | |
| .sorting_desc_disabled { background: url('../images/datatables/sort_desc_disabled.png') no-repeat center right; } | |
| } | |
| thead, tbody{ | |
| tr{ | |
| th, td{ | |
| &:first-child{ | |
| border-left: none; | |
| } | |
| &:last-child{ | |
| border-right: none; | |
| } | |
| } | |
| } | |
| } | |
| thead{ | |
| tr th{ | |
| border-bottom: none; | |
| } | |
| } | |
| } | |
| } | |
| .dataTables_length { | |
| width: 40%; | |
| float: left; | |
| } | |
| .dataTables_filter { | |
| position: absolute; | |
| bottom: -3px; | |
| right: 5px; | |
| text-align: right; | |
| margin-bottom: 0px; | |
| label{ | |
| margin-bottom: 0px; | |
| input{ | |
| width: 74%; | |
| } | |
| } | |
| } | |
| .dataTables_info { | |
| width: 60%; | |
| position: absolute; | |
| bottom: 0px; | |
| left: 15px; | |
| } | |
| .dataTables_paginate { | |
| float: right; | |
| text-align: right; | |
| } | |
| .dataTables_scrollBody{ | |
| border-bottom: #ddd 1px solid; | |
| } | |
| /* | |
| Select2 Select UI component | |
| */ | |
| .select2-container { | |
| &.list-mode{ | |
| .select2-search-choice { | |
| background-color: transparent !important; | |
| @include background-image(none !important); | |
| @include border-radius(0 !important); | |
| @include background-clip(border-box !important); | |
| @include box-shadow(none !important); | |
| border: 0 !important; | |
| padding: 5px 5px 5px 20px !important; | |
| margin: 3px 0 3px 0px !important; | |
| } | |
| .select2-search-choice-close { | |
| left: 5px !important; | |
| } | |
| &.select2-container-multi .select2-choices li { | |
| float: none !important; | |
| } | |
| } | |
| } | |
| /* | |
| Date Picker | |
| */ | |
| .datePicker{ | |
| a.calendar{ | |
| position: relative; | |
| top: 8px; | |
| } | |
| } | |
| .DynarchCalendar { | |
| border: 1px solid #aaa; | |
| -moz-user-select: none; | |
| -webkit-user-select: none; | |
| user-select: none; | |
| background: #aaaaaa; | |
| font-size: 11px; | |
| line-height: 14px; | |
| position: relative; | |
| cursor: default; | |
| .DynarchCalendar-topBar { | |
| border-bottom: 1px solid #aaa; | |
| background: #ddd; | |
| padding: 5px 0 0 0; | |
| } | |
| } | |
| table.DynarchCalendar-titleCont { | |
| font-size: 130%; font-weight: bold; | |
| color: #444; | |
| text-align: center; | |
| z-index: 9; | |
| position: relative; | |
| margin: 0px auto; | |
| } | |
| .DynarchCalendar-title div { | |
| padding: 5px 17px; | |
| text-shadow: 1px 1px 1px #777; | |
| } | |
| .DynarchCalendar-hover-title div { | |
| background-color: #fff; | |
| border: 1px solid #000; | |
| padding: 4px 16px; | |
| background-image: url("img/datatables/drop-down.gif"); | |
| background-repeat: no-repeat; | |
| background-position: 100% 50%; | |
| } | |
| .DynarchCalendar-pressed-title div { | |
| border: 1px solid #000; | |
| padding: 4px 16px; | |
| background-color: #777; | |
| color: #fff; | |
| background-image: url("img/datatables/drop-up.gif"); | |
| background-repeat: no-repeat; | |
| background-position: 100% 50%; | |
| } | |
| .DynarchCalendar-bottomBar { | |
| border-top: 1px solid #aaa; | |
| background: #ddd; | |
| padding: 2px; | |
| position: relative; | |
| text-align: center; | |
| } | |
| .DynarchCalendar-bottomBar-today { | |
| padding: 2px 15px; | |
| } | |
| .DynarchCalendar-hover-bottomBar-today { | |
| border: 1px solid #000; | |
| background-color: #fff; | |
| padding: 1px 14px; | |
| } | |
| .DynarchCalendar-pressed-bottomBar-today { | |
| border: 1px solid #000; | |
| background-color: #777; | |
| color: #fff; | |
| padding: 1px 14px; | |
| } | |
| .DynarchCalendar-body { | |
| position: relative; | |
| overflow: hidden; | |
| padding-top: 5px; | |
| padding-bottom: 5px; | |
| } | |
| .DynarchCalendar-first-col { padding-left: 5px; } | |
| .DynarchCalendar-last-col { padding-right: 5px; } | |
| .DynarchCalendar-animBody-backYear { | |
| position: absolute; | |
| top: -100%; | |
| left: 0; | |
| } | |
| .DynarchCalendar-animBody-back { | |
| position: absolute; | |
| top: 5px; | |
| left: -100%; | |
| } | |
| .DynarchCalendar-animBody-fwd { | |
| position: absolute; | |
| top: 5px; | |
| left: 100%; | |
| } | |
| .DynarchCalendar-animBody-now { | |
| position: absolute; | |
| top: 5px; | |
| left: 0; | |
| } | |
| .DynarchCalendar-animBody-fwdYear { | |
| position: absolute; | |
| top: 100%; | |
| left: 0; | |
| } | |
| .DynarchCalendar-dayNames { | |
| padding-left: 5px; | |
| padding-right: 5px; | |
| } | |
| .DynarchCalendar-dayNames div { font-weight: bold; color: #444; } | |
| .DynarchCalendar-navBtn { | |
| position: absolute; | |
| top: 5px; | |
| z-index: 10; | |
| } | |
| .DynarchCalendar-navBtn div { | |
| background-repeat: no-repeat; | |
| background-position: 50% 50%; | |
| height: 15px; | |
| width: 16px; | |
| padding: 1px; | |
| } | |
| .DynarchCalendar-hover-navBtn div { | |
| border: 1px solid #000; | |
| padding: 0; | |
| background-color: #fff; | |
| } | |
| .DynarchCalendar-navDisabled { | |
| opacity: 0.3; | |
| filter: alpha(opacity=30); | |
| } | |
| .DynarchCalendar-pressed-navBtn div { | |
| border: 1px solid #000; | |
| padding: 0; | |
| background-color: #777; | |
| color: #fff; | |
| } | |
| .DynarchCalendar-prevMonth { | |
| left: 25px; | |
| } | |
| .DynarchCalendar-nextMonth { | |
| left: 100%; | |
| margin-left: -43px; | |
| } | |
| .DynarchCalendar-prevYear { | |
| left: 5px; | |
| } | |
| .DynarchCalendar-nextYear { | |
| left: 100%; | |
| margin-left: -23px; | |
| } | |
| .DynarchCalendar-prevMonth div { | |
| // Put Something Here | |
| } | |
| .DynarchCalendar-nextMonth div { | |
| // Put Something Here | |
| } | |
| .DynarchCalendar-prevYear div { | |
| // Put Something Here | |
| } | |
| .DynarchCalendar-nextYear div { | |
| // Put Something Here | |
| } | |
| .DynarchCalendar-menu { | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: #ddd; | |
| overflow: hidden; | |
| opacity: 0.85; | |
| filter: alpha(opacity=85); | |
| } | |
| .DynarchCalendar-menu table td div { | |
| text-align: center; | |
| font-weight: bold; | |
| padding: 3px 5px; | |
| } | |
| .DynarchCalendar-menu table td div.DynarchCalendar-menu-month { | |
| width: 4em; | |
| text-align: center; | |
| } | |
| .DynarchCalendar-menu table td div.DynarchCalendar-hover-navBtn { | |
| border: 1px solid #000; | |
| padding: 2px 4px; | |
| background-color: #fff; | |
| color: #000; | |
| } | |
| .DynarchCalendar-menu table td div.DynarchCalendar-pressed-navBtn { | |
| border: 1px solid #000; | |
| padding: 2px 4px; | |
| background-color: #777; | |
| color: #fff !important; | |
| } | |
| .DynarchCalendar-menu-year { | |
| text-align: center; | |
| font: 16px "lucida grande",tahoma,verdana,sans-serif; | |
| font-weight: bold; | |
| } | |
| .DynarchCalendar-menu-sep { | |
| height: 1px; font-size: 1px; line-height: 1px; | |
| overflow: hidden; | |
| border-top: 1px solid #888; | |
| background: #fff; | |
| margin-top: 4px; margin-bottom: 3px; | |
| } | |
| .DynarchCalendar-time td { font-weight: bold; font-size: 120%; } | |
| .DynarchCalendar-time-hour, .DynarchCalendar-time-minute { padding: 1px 3px; } | |
| .DynarchCalendar-time-down { background: url("img/datatables/time-down.png") no-repeat 50% 50%; width: 11px; height: 8px; opacity: 0.5; } | |
| .DynarchCalendar-time-up { background: url("img/datatables/time-up.png") no-repeat 50% 50%; width: 11px; height: 8px; opacity: 0.5; } | |
| .DynarchCalendar-time-sep { padding: 0 2px; } | |
| .DynarchCalendar-hover-time { background-color: #444; color: #fff; opacity: 1; } | |
| .DynarchCalendar-pressed-time { background-color: #000; color: #fff; opacity: 1; } | |
| .DynarchCalendar-time-am { padding: 1px; width: 2.5em; text-align: center; } | |
| /* body */ | |
| .DynarchCalendar-hover-week { background-color: #ddd; } | |
| .DynarchCalendar-dayNames div, .DynarchCalendar-day, .DynarchCalendar-weekNumber { | |
| width: 1.7em; | |
| padding: 3px 4px; | |
| text-align: center; | |
| } | |
| .DynarchCalendar-weekNumber { | |
| border-right: 1px solid #aaa; | |
| margin-right: 4px; | |
| width: 2em !important; | |
| padding-right: 8px !important; | |
| } | |
| .DynarchCalendar-day { | |
| text-align: right; color: #222; | |
| } | |
| .DynarchCalendar-day-othermonth { color: #888; } | |
| .DynarchCalendar-weekend { color: #c22; } | |
| .DynarchCalendar-day-today { color: #00f; font-weight: bold; } | |
| .DynarchCalendar-day-disabled { | |
| opacity: 0.5; | |
| text-shadow: 2px 1px 1px #fff; | |
| } | |
| .DynarchCalendar-hover-date { | |
| padding: 2px 3px; | |
| background-color: #eef; | |
| border: 1px solid #88c; | |
| margin: 0 !important; | |
| color: #000; | |
| } | |
| .DynarchCalendar-day-othermonth.DynarchCalendar-hover-date { border-color: #aaa; color: #888; } | |
| .DynarchCalendar-dayNames .DynarchCalendar-weekend { color: #c22; } | |
| .DynarchCalendar-day-othermonth.DynarchCalendar-weekend { color: #d88; } | |
| .DynarchCalendar-day-selected { | |
| padding: 2px 3px; | |
| margin: 1px; | |
| background-color: #aaa; | |
| color: #000 !important; | |
| } | |
| .DynarchCalendar-day-today.DynarchCalendar-day-selected { background-color: #999; } | |
| /* focus */ | |
| .DynarchCalendar-focusLink { | |
| position: absolute; | |
| opacity: 0; | |
| filter: alpha(opacity=0); | |
| } | |
| .DynarchCalendar-focused { | |
| border-color: #000; | |
| } | |
| .DynarchCalendar-focused .DynarchCalendar-topBar, .DynarchCalendar-focused .DynarchCalendar-bottomBar { | |
| background-color: #ccc; | |
| border-color: #336; | |
| } | |
| .DynarchCalendar-focused .DynarchCalendar-hover-week { | |
| background-color: #ccc; | |
| } | |
| .DynarchCalendar-tooltip { | |
| position: absolute; | |
| top: 100%; | |
| width: 100%; | |
| } | |
| .DynarchCalendar-tooltipCont { | |
| margin: 0 5px 0 5px; | |
| border: 1px solid #aaa; | |
| border-top: 0; | |
| padding: 3px 6px; | |
| background: #ddd; | |
| } | |
| .DynarchCalendar-focused .DynarchCalendar-tooltipCont { | |
| background: #ccc; | |
| border-color: #000; | |
| } | |
| @media print { | |
| .DynarchCalendar-day-selected { | |
| padding: 2px 3px; | |
| border: 1px solid #000; | |
| margin: 0 !important; | |
| } | |
| } | |
| .DynarchCalendar, .DynarchCalendar-focused { | |
| background-color: #d4d0c8; | |
| } | |
| .DynarchCalendar-topBar, | |
| .DynarchCalendar-bottomBar, | |
| .DynarchCalendar-focused .DynarchCalendar-topBar, | |
| .DynarchCalendar-focused .DynarchCalendar-bottomBar { | |
| background-color: #444444; | |
| color: #fff; | |
| } | |
| .DynarchCalendar-title div { color: #fff; text-align:center;} | |
| .DynarchCalendar-dayNames { background-color: #f4f0e8; } | |
| .DynarchCalendar-hover-navBtn div, | |
| .DynarchCalendar-hover-title div, | |
| .DynarchCalendar-hover-bottomBar-today { | |
| border-color: #f4f0e8 #444038 #444038 #f4f0e8; | |
| background-color: #d4d0c8; | |
| color: #000; | |
| } | |
| .DynarchCalendar-menu table td div.DynarchCalendar-hover-navBtn { | |
| border-color: #f4f0e8 #444038 #444038 #f4f0e8; | |
| background-color: #e4e0d8; | |
| color: #000; | |
| } | |
| .DynarchCalendar-pressed-navBtn div, | |
| .DynarchCalendar-pressed-title div, | |
| .DynarchCalendar-pressed-bottomBar-today, | |
| .DynarchCalendar-menu table td div.DynarchCalendar-pressed-navBtn { | |
| border-color: #444038 #f4f0e8 #f4f0e8 #444038; | |
| background-color: #646058; | |
| color: #fff; | |
| } | |
| .DynarchCalendar-hover-date { | |
| border-color: #f4f0e8 #444038 #444038 #f4f0e8; | |
| background-color: #e4e0d8; | |
| } | |
| .DynarchCalendar-day { | |
| -moz-border-radius: 0; | |
| -webkit-border-radius: 0; | |
| border-radius: 0; | |
| } | |
| .DynarchCalendar-day-disabled { | |
| background: #c4c0b8; | |
| } | |
| .DynarchCalendar-hover-week { background-color: #e4e0d8 !important; } | |
| .DynarchCalendar-day-selected { | |
| background-color: #e4e0d8; | |
| border: 1px solid; | |
| border-color: #444038 #f4f0e8 #f4f0e8 #444038; | |
| margin: 0; | |
| } | |
| .DynarchCalendar-day-today.DynarchCalendar-day-selected { background-color: #e4e0d8; } | |
| .DynarchCalendar-menu { | |
| background-color: #d4d0c8; | |
| } | |
| .DynarchCalendar, .DynarchCalendar-focused { | |
| background-color: #d4d0c8; | |
| } | |
| .DynarchCalendar-topBar, | |
| .DynarchCalendar-bottomBar, | |
| .DynarchCalendar-focused .DynarchCalendar-topBar, | |
| .DynarchCalendar-focused .DynarchCalendar-bottomBar { | |
| background-color: #444444; | |
| color: #fff; | |
| } | |
| .DynarchCalendar-title div { color: #fff; } | |
| .DynarchCalendar-dayNames { background-color: #f4f0e8; } | |
| .DynarchCalendar-hover-navBtn div, | |
| .DynarchCalendar-hover-title div, | |
| .DynarchCalendar-hover-bottomBar-today { | |
| border-color: #f4f0e8 #444038 #444038 #f4f0e8; | |
| background-color: #d4d0c8; | |
| color: #000; | |
| } | |
| .DynarchCalendar-menu table td div.DynarchCalendar-hover-navBtn { | |
| border-color: #f4f0e8 #444038 #444038 #f4f0e8; | |
| background-color: #e4e0d8; | |
| color: #000; | |
| } | |
| .DynarchCalendar-pressed-navBtn div, | |
| .DynarchCalendar-pressed-title div, | |
| .DynarchCalendar-pressed-bottomBar-today, | |
| .DynarchCalendar-menu table td div.DynarchCalendar-pressed-navBtn { | |
| border-color: #444038 #f4f0e8 #f4f0e8 #444038; | |
| background-color: #646058; | |
| color: #fff; | |
| } | |
| .DynarchCalendar-hover-date { | |
| border-color: #f4f0e8 #444038 #444038 #f4f0e8; | |
| background-color: #e4e0d8; | |
| } | |
| .DynarchCalendar-day { | |
| -moz-border-radius: 0; | |
| -webkit-border-radius: 0; | |
| border-radius: 0; | |
| } | |
| .DynarchCalendar-day-disabled { | |
| background: #c4c0b8; | |
| } | |
| .DynarchCalendar-hover-week { background-color: #e4e0d8 !important; } | |
| .DynarchCalendar-day-selected { | |
| background-color: #e4e0d8; | |
| border: 1px solid; | |
| border-color: #444038 #f4f0e8 #f4f0e8 #444038; | |
| margin: 0; | |
| } | |
| .DynarchCalendar-day-today.DynarchCalendar-day-selected { background-color: #e4e0d8; } | |
| .DynarchCalendar-menu { | |
| background-color: #d4d0c8; | |
| } | |
| /* END datePicker */ | |
| /************IMPROMPTU***************/ | |
| .jqifade{ | |
| position: absolute; | |
| background-color: #000000; | |
| } | |
| .passwordMessage{ | |
| padding-top: 15px; | |
| font-weight: bold; | |
| text-align: center; | |
| } | |
| .title{ | |
| font-weight: bold; | |
| margin-bottom: 20px; | |
| } | |
| #alertName{ | |
| margin-left: auto; | |
| margin-right: auto; | |
| } | |
| #inputContainer{ | |
| padding: 2px; | |
| margin-top: -2px; | |
| margin-left: -3px; | |
| } | |
| div.jqi{ | |
| width: 400px; | |
| text-align: left; | |
| font-family: Helvetica, sans-serif; | |
| position: relative; | |
| background-color: $lightGray; | |
| /*font-size: 14px;*/ | |
| border: solid 1px #eeeeee; | |
| @include border-radius(5px); | |
| padding: 7px; | |
| } | |
| div.jqi .jqimessage{ | |
| padding-right: 7px; | |
| padding-left: 7px; | |
| h1{ | |
| } | |
| h2{ | |
| margin: 10px 0px 3px 0px; | |
| label{ | |
| font-size: 20px; | |
| } | |
| } | |
| .inputField{ | |
| width: 350px; | |
| font-size: 18px; | |
| } | |
| } | |
| div.jqi .jqiclose{ | |
| position: absolute; | |
| top: -8px; right: -10px; | |
| height: 20px; | |
| width: 20px; | |
| cursor: default; | |
| color: white; | |
| background: transparent url($iconSpritePath) no-repeat; | |
| background-position: -88px 0px; | |
| font-weight: bold; | |
| &:hover{ | |
| cursor: pointer; | |
| } | |
| } | |
| div.jqi .jqibuttons{ | |
| text-align: center; | |
| margin-top: 20px; | |
| } | |
| div.jqi button:hover{ | |
| background-position: bottom; | |
| } | |
| // Grey box (Modal) | |
| #GB_window{ | |
| #GB_content{ | |
| .inner{ | |
| padding: 20px; | |
| h2{ | |
| text-align: left; | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment