pyc-website

main website for pyc inc.

git clone https://9o.is/git/pyc-website.git

x-editable.less

(7481B)


      1 /*! X-editable - v1.5.0 
      2 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
      3 * http://github.com/vitalets/x-editable
      4 * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
      5 .editableform {
      6     margin-bottom: 0; /* overwrites bootstrap margin */
      7 }
      8 
      9 .editableform .control-group {
     10     margin-bottom: 0; /* overwrites bootstrap margin */
     11     white-space: nowrap; /* prevent wrapping buttons on new line */
     12 }
     13 
     14 .editable-buttons {
     15    display: inline-block; /* should be inline to take effect of parent's white-space: nowrap */
     16    vertical-align: top;
     17    margin-left: 7px;
     18    /* inline-block emulation for IE7*/
     19    zoom: 1; 
     20    *display: inline;
     21 }
     22 
     23 .editable-buttons.editable-buttons-bottom {
     24    display: block; 
     25    margin-top: 7px;
     26    margin-left: 0;
     27 }
     28 
     29 .editable-input {
     30     vertical-align: top; 
     31     display: inline-block; /* should be inline to take effect of parent's white-space: nowrap */
     32     width: auto; /* bootstrap-responsive has width: 100% that breakes layout */
     33     white-space: normal; /* reset white-space decalred in parent*/
     34    /* display-inline emulation for IE7*/
     35    zoom: 1; 
     36    *display: inline;   
     37 }
     38 
     39 .editable-buttons .editable-cancel {
     40    margin-left: 7px; 
     41 }
     42 
     43 /*for jquery-ui buttons need set height to look more pretty*/
     44 .editable-buttons button.ui-button-icon-only {
     45    height: 24px; 
     46    width: 30px;
     47 }
     48 
     49 .editableform-loading {
     50     background: url('@{base-url}/loading.gif') center center no-repeat;  
     51     height: 25px;
     52     width: auto; 
     53     min-width: 25px; 
     54 }
     55 
     56 .editable-inline .editableform-loading {
     57     background-position: left 5px;      
     58 }
     59 
     60  .editable-error-block {
     61     max-width: 300px;
     62     margin: 5px 0 0 0;
     63     width: auto;
     64     white-space: normal;
     65 }
     66 
     67 /*add padding for jquery ui*/
     68 .editable-error-block.ui-state-error {
     69     padding: 3px;  
     70 }  
     71 
     72 .editable-error {
     73    color: red;  
     74 }
     75 
     76 /* ---- For specific types ---- */
     77 
     78 .editableform .editable-date {
     79     padding: 0; 
     80     margin: 0;
     81     float: left;
     82 }
     83 
     84 /* move datepicker icon to center of add-on button. See https://github.com/vitalets/x-editable/issues/183 */
     85 .editable-inline .add-on .icon-th {
     86    margin-top: 3px;
     87    margin-left: 1px; 
     88 }
     89 
     90 
     91 /* checklist vertical alignment */
     92 .editable-checklist label input[type="checkbox"], 
     93 .editable-checklist label span {
     94     vertical-align: middle;
     95     margin: 0;
     96 }
     97 
     98 .editable-checklist label {
     99     white-space: nowrap; 
    100 }
    101 
    102 /* set exact width of textarea to fit buttons toolbar */
    103 .editable-wysihtml5 {
    104     width: 566px; 
    105     height: 250px; 
    106 }
    107 
    108 /* clear button shown as link in date inputs */
    109 .editable-clear {
    110    clear: both;
    111    font-size: 0.9em;
    112    text-decoration: none;
    113    text-align: right;
    114 }
    115 
    116 /* IOS-style clear button for text inputs */
    117 .editable-clear-x {
    118    background: url('@{base-url}/clear.png') center center no-repeat;
    119    display: block;
    120    width: 13px;    
    121    height: 13px;
    122    position: absolute;
    123    opacity: 0.6;
    124    z-index: 100;
    125    
    126    top: 50%;
    127    right: 6px;
    128    margin-top: -6px;
    129    
    130 }
    131 
    132 .editable-clear-x:hover {
    133    opacity: 1;
    134 }
    135 
    136 .editable-pre-wrapped {
    137    white-space: pre-wrap;
    138 }
    139 .editable-container.editable-popup {
    140     max-width: none !important; /* without this rule poshytip/tooltip does not stretch */
    141 }  
    142 
    143 .editable-container.popover {
    144     width: auto; /* without this rule popover does not stretch */
    145 }
    146 
    147 .editable-container.editable-inline {
    148     display: inline-block; 
    149     vertical-align: middle;
    150     width: auto;
    151     /* inline-block emulation for IE7*/
    152     zoom: 1; 
    153     *display: inline;    
    154 }
    155 
    156 .editable-container.ui-widget {
    157    font-size: inherit;  /* jqueryui widget font 1.1em too big, overwrite it */
    158    z-index: 9990; /* should be less than select2 dropdown z-index to close dropdown first when click */
    159 }
    160 .editable-click, 
    161 a.editable-click, 
    162 a.editable-click:hover {
    163     text-decoration: none;
    164     border-bottom: dashed 1px #0088cc;
    165 }
    166 
    167 .editable-click.editable-disabled, 
    168 a.editable-click.editable-disabled, 
    169 a.editable-click.editable-disabled:hover {
    170    color: #585858;  
    171    cursor: default;
    172    border-bottom: none;
    173 }
    174 
    175 .editable-empty, .editable-empty:hover, .editable-empty:focus{
    176   font-style: italic; 
    177   color: #DD1144;  
    178   /* border-bottom: none; */
    179   text-decoration: none;
    180 }
    181 
    182 .editable-unsaved {
    183   font-weight: bold; 
    184 }
    185 
    186 .editable-unsaved:after {
    187 /*    content: '*'*/
    188 }
    189 
    190 .editable-bg-transition {
    191   -webkit-transition: background-color 1400ms ease-out;
    192   -moz-transition: background-color 1400ms ease-out;
    193   -o-transition: background-color 1400ms ease-out;
    194   -ms-transition: background-color 1400ms ease-out;
    195   transition: background-color 1400ms ease-out;  
    196 }
    197 
    198 /*see https://github.com/vitalets/x-editable/issues/139 */
    199 .form-horizontal .editable
    200 { 
    201     padding-top: 5px;
    202     display:inline-block;
    203 }
    204 
    205 
    206 /*
    207  * x-editable CSS
    208  */
    209 
    210 .editable-address {
    211     display: block;
    212     margin-bottom: 5px;  
    213 }
    214 
    215 .editable-address span {
    216     width: 70px;  
    217     display: inline-block;
    218 }
    219 
    220 
    221 
    222 /*!
    223  * Datepicker for Bootstrap
    224  *
    225  * Copyright 2012 Stefan Petre
    226  * Licensed under the Apache License v2.0
    227  * http://www.apache.org/licenses/LICENSE-2.0
    228  *
    229  */
    230  
    231 .datepicker {
    232 	top: 0;
    233 	left: 0;
    234 	padding: 4px;
    235 	margin-top: 1px;
    236 	&:before {
    237 		content: '';
    238 		display: inline-block;
    239 		border-left:   7px solid transparent;
    240 		border-right:  7px solid transparent;
    241 		border-bottom: 7px solid #ccc;
    242 		border-bottom-color: rgba(0,0,0,.2);
    243 		position: absolute;
    244 		top: -7px;
    245 		left: 6px;
    246 	}
    247 	&:after {
    248 		content: '';
    249 		display: inline-block;
    250 		border-left:   6px solid transparent;
    251 		border-right:  6px solid transparent;
    252 		border-bottom: 6px solid @white;
    253 		position: absolute;
    254 		top: -6px;
    255 		left: 7px;
    256 	}
    257 	>div {
    258 		display: none;
    259 	}
    260 	table{
    261 		width: 100%;
    262 		min-width: 214px;
    263 		margin: 0;
    264 	}
    265 	td,
    266 	th{
    267 		text-align: center;
    268 		width: 24px;
    269 		height: 20px;
    270 	}
    271 	td {
    272 		&.day:hover {
    273 			background: @gray-lighter;
    274 			cursor: pointer;
    275 		}
    276 		&.day.disabled {
    277 			color: @gray;
    278 		}
    279 		&.old,
    280 		&.new {
    281 			color: @gray;
    282 		}
    283 		&.active,
    284 		&.active:hover {
    285 			background:@brand-primary;
    286 			color: #fff;
    287 			text-shadow: 0 -1px 0 rgba(0,0,0,.25);
    288 			border-radius:3px;
    289 		}
    290 		span {
    291 			display: block;
    292 			width: 47px;
    293 			height: 54px;
    294 			line-height: 54px;
    295 			float: left;
    296 			margin: 2px;
    297 			cursor: pointer;
    298 			&:hover {
    299 				background: @gray-lighter;
    300 			}
    301 			&.active {
    302 				background:@brand-primary;
    303 				color: #fff;
    304 				text-shadow: 0 -1px 0 rgba(0,0,0,.25);
    305 				border-radius:3px;
    306 			}
    307 			&.old {
    308 				color: @gray;
    309 			}
    310 		}
    311 	}
    312 	
    313 	th {
    314 		&.switch {
    315 			width: 145px;
    316 		}
    317 		&.next,
    318 		&.prev {
    319 			font-size: @font-size-base * 1.5;
    320 		}
    321 	}
    322 	
    323 	thead tr:first-child th {
    324 		cursor: pointer;
    325 		&:hover{
    326 			background: @gray-lighter;
    327 		}
    328 	}
    329 	/*.dow {
    330 		border-top: 1px solid #ddd !important;
    331 	}*/
    332 }
    333 .input-append,
    334 .input-prepend {
    335 	&.date {
    336 		.add-on i {
    337 			display: block;
    338 			cursor: pointer;
    339 			width: 16px;
    340 			height: 16px;
    341 		}
    342 	}
    343 }
    344 
    345 .datepicker .next i, .datepicker .prev i {
    346 	display: inline-block;
    347 	font-family: FontAwesome;
    348 	font-style: normal;
    349 	font-weight: normal;
    350 	line-height: 1;
    351 	-webkit-font-smoothing: antialiased;
    352 	-moz-osx-font-smoothing: grayscale;
    353 	font-size:14px;
    354 }
    355 
    356 .datepicker .prev i:before {
    357 	content: "\f060";
    358 }
    359 .datepicker .next i:before {
    360 	content: "\f061";
    361 }