gui.less.orig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  1. <<<<<<< HEAD
  2. /**
  3. * www.g-u-i.net
  4. */
  5. /** font */
  6. .8{font-size:8px;}
  7. .9{font-size:9px;}
  8. .10{font-size:10px;}
  9. .11{font-size:10px;}
  10. .12{font-size:12px;}
  11. .14{font-size:14px;}
  12. .16{font-size:16px;}
  13. .18{font-size:18px;}
  14. .20{font-size:18px;}
  15. .24{font-size:24px;}
  16. .28{font-size:28px;}
  17. .30{font-size:30px;}
  18. .36{font-size:36px;}
  19. .48{font-size:48px;}
  20. .60{font-size:60px;}
  21. .72{font-size:72px;}
  22. .regular{font-weight:normal;}
  23. .bold{font-weight:bold;}
  24. .100{font-weight:100;}
  25. .300{font-weight:300;}
  26. .500{font-weight:500;}
  27. .700{font-weight:700;}
  28. .900{font-weight:900;}
  29. .upper{text-transform: uppercase;}
  30. .italic{font-style:italic;}
  31. .normal{font-style: normal;}
  32. /** shortcuts */
  33. =======
  34. /*
  35. * www.g-u-i.net
  36. */
  37. // =
  38. // =
  39. // =
  40. // =
  41. // =
  42. // ===== TYPOGRAHIE ======================================================================================================
  43. .8(){font-size:8px;}
  44. .9(){font-size:9px;}
  45. .10(){font-size:10px;}
  46. .11(){font-size:10px;}
  47. .12(){font-size:12px;}
  48. .14(){font-size:14px;}
  49. .16(){font-size:16px;}
  50. .18(){font-size:18px;}
  51. .24(){font-size:24px;}
  52. .30(){font-size:30px;}
  53. .36(){font-size:36px;}
  54. .48(){font-size:48px;}
  55. .60(){font-size:60px;}
  56. .72(){font-size:72px;}
  57. .regular(){font-weight:normal;}
  58. .bold(){font-weight:bold;}
  59. .100(){font-weight:100;}
  60. .300(){font-weight:300;}
  61. .500(){font-weight:500;}
  62. .700(){font-weight:700;}
  63. .900(){font-weight:900;}
  64. .upper(){text-transform: uppercase;}
  65. .italic(){font-style:italic;}
  66. .normal(){font-style: normal;}
  67. .hyphens(@value: auto)
  68. {
  69. -webkit-hyphens:@value;
  70. -moz-hyphens:@value;
  71. -ms-hyphens:@value;
  72. -o-hyphens:@value;
  73. hyphens:@value;
  74. }
  75. .font-size(@value: 1em,@lineheight:1.3em)
  76. {
  77. font-size:@value;
  78. line-height:@lineheight;
  79. }
  80. @green:#17942A;
  81. @red:#E60000;
  82. // =
  83. // =
  84. // =
  85. // =
  86. // =
  87. // ===== SHORTCUTS =======================================================================================================
  88. >>>>>>> bitbucket/master
  89. // padding
  90. .p(@p){ padding:@arguments; }
  91. .p(@v, @h){ padding:@arguments; }
  92. .p(@t, @l, @b, @l){ padding:@arguments; }
  93. .pt(@p){ padding-top:@p; }
  94. .pr(@p){ padding-right:@p; }
  95. .pb(@p){ padding-bottom:@p; }
  96. .pl(@p){ padding-left:@p; }
  97. // margin
  98. .m(@p){ margin:@arguments; }
  99. .m(@v, @h){ margin:@arguments; }
  100. .m(@t, @l, @b, @l){ margin:@arguments; }
  101. .mt(@m){ margin-top:@m; }
  102. .mr(@m){ margin-right:@m; }
  103. .mb(@m){ margin-bottom:@m; }
  104. .ml(@m){ margin-left:@m; }
  105. .0(){ margin:0; padding:0; }
  106. // border
  107. .b(@b){ border: @b; }
  108. .b(@size, @color){ border: @size solid @color; }
  109. .bt(@b){ border-top: @b;}
  110. .bt(@size, @color){border-top: @size solid @color;}
  111. .br(@b){ border-right: @b;}
  112. .br(@size, @color){border-right: @size solid @color;}
  113. .bb(@b){ border-bottom: @b;}
  114. .bb(@size, @color){border-bottom: @size solid @color;}
  115. .bl(@b){ border-left: @b;}
  116. .bl(@size, @color){border-left: @size solid @color;}
  117. .bordered(@top-color: #EEE, @right-color: #EEE, @bottom-color: #EEE, @left-color: #EEE)
  118. {
  119. border-top : solid 1px @top-color;
  120. border-right : solid 1px @right-color;
  121. border-bottom: solid 1px @bottom-color;
  122. border-left : solid 1px @left-color;
  123. }
  124. // Background
  125. .bg(@color, @url, @repeat, @scrollfixed, @pos){background: @arguments;}
  126. .bgc(@color){background-color: @arguments;}
  127. .bkgd(@params){background: @arguments;}
  128. .bkgdc(@color){.bgc(@arguments);}
  129. <<<<<<< HEAD
  130. // opacity
  131. .opacity(@opacity: 0.5) {
  132. -moz-opacity: @opacity;
  133. -khtml-opacity: @opacity;
  134. -webkit-opacity: @opacity;
  135. opacity: @opacity;
  136. }
  137. /** Inline blocks */
  138. .inlineblock(){
  139. display:moz-inline-stack;
  140. display:inline-block;
  141. vertical-align:top;
  142. zoom:1;
  143. *display:inline;
  144. /* margin-right:-.25em;*/
  145. .ie7 &{display:inline;}
  146. }
  147. // selection style
  148. .selection(@bgcolor,@color){
  149. =======
  150. // Selection
  151. .selection(@bgcolor,@color)
  152. {
  153. >>>>>>> bitbucket/master
  154. &::selection {
  155. background:@bgcolor;
  156. color:@color;
  157. }
  158. &::-moz-selection {
  159. background:@bgcolor;
  160. color:@color;
  161. }
  162. &::-webkit-selection {
  163. background:@bgcolor;
  164. color:@color;
  165. }
  166. }
  167. // Colors
  168. .color(@value)
  169. {
  170. &,
  171. & *{color:@value;}
  172. }
  173. // Opacity
  174. .opacity(@opacity: 0.5)
  175. {
  176. -webkit-opacity: @opacity;
  177. -khtml-opacity: @opacity;
  178. -moz-opacity: @opacity;
  179. opacity: @opacity;
  180. }
  181. // size
  182. .size(@height, @width) {
  183. width: @width;
  184. height: @height;
  185. }
  186. .square(@size) {
  187. .size(@size, @size);
  188. }
  189. // center
  190. .center-block() {
  191. display: block;
  192. margin-left: auto;
  193. margin-right: auto;
  194. }
  195. // =
  196. // =
  197. // =
  198. // =
  199. // =
  200. // ===== DISPLAY UTILS ===================================================================================================
  201. // Inline blocks
  202. .inlineblock(@align:top)
  203. {
  204. display:moz-inline-stack;
  205. display:inline-block;
  206. vertical-align:@align;
  207. zoom:1;
  208. *display:inline;
  209. .ie7 &, .ie8 &{display:block;float:left;}
  210. }
  211. .db(){display:block;}
  212. .dib(){.inlineblock;}
  213. .dib(@align){.inlineblock(@align);}
  214. // Vertical alignement
  215. //
  216. // ___ .align-child()
  217. // |
  218. // | Permet l’alignement vertical d’un objet par rapport à son premier parent (dans son conteneur direct).
  219. // |
  220. // | 1 param : @vertical-align
  221. //
  222. .align-child(@align:middle){
  223. &:before { content: ""; .dib(middle); overflow: hidden; visibility: hidden; width: 0; height: 100%; }
  224. & > * { .dib(@align); }
  225. }
  226. .clear-after(){
  227. &:after{clear:both;content:'';display:block;height:0px;overflow:hidden;visibility:hidden;width:0px;}
  228. }
  229. // For clearing floats like a boss h5bp.com/q
  230. .clearix() {
  231. *zoom: 1;
  232. &:before,
  233. &:after {
  234. display: table;
  235. content: "";
  236. // Fixes Opera/contenteditable bug:
  237. // http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
  238. line-height: 0;
  239. }
  240. &:after {
  241. clear: both;
  242. }
  243. }
  244. // =
  245. // =
  246. // =
  247. // =
  248. // =
  249. // ===== CSS3 ============================================================================================================
  250. // Gradients
  251. .gradient(@color: #F5F5F5, @start: #EEE, @stop: #FFF)
  252. {
  253. background: @color;
  254. background: -webkit-gradient(linear,
  255. left bottom,
  256. left top,
  257. color-stop(0, @start),
  258. color-stop(1, @stop));
  259. background: -ms-linear-gradient(bottom,
  260. @start,
  261. @stop);
  262. background: -moz-linear-gradient(center bottom,
  263. @start 0%,
  264. @stop 100%);
  265. }
  266. .bw-gradient(@color: #F5F5F5, @start: 0, @stop: 255)
  267. {
  268. background: @color;
  269. background: -webkit-gradient(linear,
  270. left bottom,
  271. left top,
  272. color-stop(0, rgb(@start,@start,@start)),
  273. color-stop(1, rgb(@stop,@stop,@stop)));
  274. background: -ms-linear-gradient(bottom,
  275. rgb(@start,@start,@start) 0%,
  276. rgb(@start,@start,@start) 100%);
  277. background: -moz-linear-gradient(center bottom,
  278. rgb(@start,@start,@start) 0%,
  279. rgb(@stop,@stop,@stop) 100%);
  280. }
  281. // Shadows
  282. //
  283. // ___ .box-shadow()
  284. // |
  285. // | Ombré extérieur.
  286. // |
  287. // | 1 param : @blur
  288. // | 2+ params : @horizontal / @vertical / @blur / @color: #000 / @spread: 0px
  289. //
  290. // ___ .inset-shadow()
  291. // |
  292. // | Ombré intérieur.
  293. // |
  294. // | 1 param : @blur
  295. // | 2+ params : @horizontal / @vertical / @blur / @color: #000 / @spread: 0px
  296. //
  297. .box-shadow(@blur: 9px)
  298. {
  299. filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=0, OffY=0, Color='#000');
  300. -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=0, OffY=0, Color='#000')";
  301. -webkit-box-shadow: 0 0 @blur #000;
  302. -moz-box-shadow: 0 0 @blur #000;
  303. -ms-box-shadow: 0 0 @blur #000;
  304. box-shadow: 0 0 @blur #000;
  305. }
  306. .box-shadow(@x, @y, @blur: 9px, @color: #000, @spread: 0px)
  307. {
  308. filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=@x, OffY=@y, Color=~'@{color}');
  309. -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=@{x}, OffY=@{y}, Color='@{color}')";
  310. -webkit-box-shadow: @x @y @blur @spread @color;
  311. -moz-box-shadow: @x @y @blur @spread @color;
  312. -ms-box-shadow: @x @y @blur @spread @color;
  313. box-shadow: @x @y @blur @spread @color;
  314. }
  315. .inset-shadow(@blur: 9px)
  316. {
  317. filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=0, OffY=0, Color='#000');
  318. -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=0, OffY=0, Color='#000')";
  319. -webkit-box-shadow: 0 0 @blur #000 inset;
  320. -moz-box-shadow: 0 0 @blur #000 inset;
  321. -ms-box-shadow: 0 0 @blur #000 inset;
  322. box-shadow: 0 0 @blur #000 inset;
  323. }
  324. .inset-shadow(@x, @y, @blur: 9px, @color: #000, @spread: 0px)
  325. {
  326. filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=@x, OffY=@y, Color=~'@{color}');
  327. -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=0, OffY=0, Color='@{color}')";
  328. -webkit-box-shadow: @x @y @blur @spread @color inset;
  329. -moz-box-shadow: @x @y @blur @spread @color inset;
  330. -ms-box-shadow: @x @y @blur @spread @color inset;
  331. box-shadow: @x @y @blur @spread @color inset;
  332. }
  333. // Border radius
  334. .rounded(@radius: 2px)
  335. {
  336. -webkit-border-radius: @radius;
  337. -moz-border-radius: @radius;
  338. border-radius: @radius;
  339. -webkit-background-clip: padding-box;
  340. -moz-background-clip: padding;
  341. background-clip: padding-box;
  342. }
  343. .border-radius(@topleft: 0, @topright: 0, @bottomright: 0, @bottomleft: 0)
  344. {
  345. -webkit-border-radius:@arguments;
  346. -moz-border-radius:@arguments;
  347. border-radius:@arguments;
  348. -webkit-background-clip: padding-box;
  349. -moz-background-clip: padding;
  350. background-clip: padding-box;
  351. }
  352. <<<<<<< HEAD
  353. // transitions
  354. .transition-simply-prefix(@string) {
  355. -webkit-transition: @string;
  356. -moz-transition: @string;
  357. -o-transition: @string;
  358. transition: @string;
  359. =======
  360. // Transition
  361. //
  362. // ___ .transition()
  363. // |
  364. // | 1 param : @property
  365. // | 2 params : @property / @duration
  366. // | 3+ params : @property / @duration / @transitiondelay:0s , @timingfunction:ease-out
  367. //
  368. // ___ .transitions()
  369. // |
  370. // | Permet de fixer des paramètres spécifique par propriétés, exemple:
  371. // |
  372. // | .transitions(
  373. // | 'height , padding , margin , box-shadow',
  374. // | '.5s , .2s , .2s , .2s',
  375. // | '0s , 0s , 0s , .3s',
  376. // | 'linear , ease-out , linear , ease-out'
  377. // | );
  378. //
  379. .transition(@property: all)
  380. {
  381. -webkit-transition: @property;
  382. -moz-transition: @property;
  383. -o-transition: @property;
  384. transition: @property;
  385. >>>>>>> bitbucket/master
  386. }
  387. .transition(@property, @duration)
  388. {
  389. -webkit-transition: @arguments;
  390. -moz-transition: @arguments;
  391. -o-transition: @arguments;
  392. transition: @arguments;
  393. }
  394. .transition(@property, @duration, @transitiondelay, @timingfunction:ease-out)
  395. {
  396. -webkit-transition: @arguments;
  397. -moz-transition: @arguments;
  398. -o-transition: @arguments;
  399. transition: @arguments;
  400. }
  401. .transitions(@property: all, @duration:0s, @transitiondelay:0s, @timingfunction:ease-out)
  402. {
  403. -webkit-transition-property :~'@{property}';
  404. -webkit-transition-duration :~'@{duration}';
  405. -webkit-transition-delay :~'@{transitiondelay}';
  406. -webkit-transition-timing-function:~'@{timingfunction}';
  407. -moz-transition-property :~'@{property}';
  408. -moz-transition-duration :~'@{duration}';
  409. -moz-transition-delay :~'@{transitiondelay}';
  410. -moz-transition-timing-function:~'@{timingfunction}';
  411. -o-transition-property :~'@{property}';
  412. -o-transition-duration :~'@{duration}';
  413. -o-transition-delay :~'@{transitiondelay}';
  414. -o-transition-timing-function:~'@{timingfunction}';
  415. transition-property :~'@{property}';
  416. transition-duration :~'@{duration}';
  417. transition-delay :~'@{transitiondelay}';
  418. transition-timing-function:~'@{timingfunction}';
  419. }
  420. <<<<<<< HEAD
  421. .transition(@p, @d, @e, @de) {
  422. -webkit-transition: @arguments;
  423. -moz-transition: @arguments;
  424. -o-transition: @arguments;
  425. transition: @arguments;
  426. }
  427. .transition-delay(@delay: 0s) {
  428. -webkit-transition-delay: @delay;
  429. -moz-transition-delay: @delay;
  430. -o-transition-delay: @delay;
  431. transition-delay: @delay;
  432. }
  433. // rotation
  434. .rotation(@deg:5deg){
  435. =======
  436. .transitions-duration(@duration: 0s)
  437. {
  438. -webkit-transition-duration: ~'@{duration}';
  439. -moz-transition-duration: ~'@{duration}';
  440. -o-transition-duration: ~'@{duration}';
  441. transition-duration: ~'@{duration}';
  442. }
  443. .transition-duration(@duration: 0.2s)
  444. {
  445. -webkit-transition-duration: @duration;
  446. -moz-transition-duration: @duration;
  447. -o-transition-duration: @duration;
  448. transition-duration: @duration;
  449. }
  450. // Rotate
  451. //
  452. // ___ .rotation()
  453. // |
  454. // | 1 param : @degree
  455. //
  456. // ___ .rotate()
  457. // |
  458. // | Tentative de compatibilté étendue (fonctionne uniquement pour 0, 90, 180 ou 270 degrés).
  459. // |
  460. // | 1 param : @degree
  461. // | 3 params : @degree / @originX / @originY
  462. //
  463. .rotation(@deg:5deg)
  464. {
  465. >>>>>>> bitbucket/master
  466. -webkit-transform: rotate(@deg);
  467. -moz-transform: rotate(@deg);
  468. transform: rotate(@deg);
  469. }
  470. .rotate(@value, @originX:0%, @originY:0%, @unit:'deg')
  471. {
  472. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation = (360 / @value) + 1); //0, 1, 2, or 3 rotate 0, 90, 180 or 270
  473. -webkit-transform: rotate(~"@{value}@{unit}"); // ~"@{value}@{unit}" rather than @value@unit remove the spaces between value and unit.
  474. -moz-transform: rotate(~"@{value}@{unit}");
  475. -ms-transform: rotate(~"@{value}@{unit}");
  476. -o-transform: rotate(~"@{value}@{unit}");
  477. transform: rotate(~"@{value}@{unit}");
  478. -webkit-transform-origin:@originX @originY;
  479. -moz-transform-origin:@originX @originY;
  480. -ms-transform-origin:@originX @originY;
  481. -o-transform-origin:@originX @originY;
  482. transform-origin:@originX @originY;
  483. }
  484. // Scale
  485. .scale(@ratio:1.5)
  486. {
  487. -webkit-transform:scale(@ratio);
  488. <<<<<<< HEAD
  489. -moz-transform:scale(@ratio);
  490. transform:scale(@ratio);
  491. }
  492. // columns
  493. .columns(@colwidth: 250px) {
  494. -moz-column-width: @colwidth;
  495. -webkit-column-width: @colwidth;
  496. column-width: @colwidth;
  497. }
  498. .columns(@colwidth: 250px, @colcount: 0, @colgap: 50px, @columnRuleColor: #EEE, @columnRuleStyle: solid, @columnRuleWidth: 1px) {
  499. -moz-column-width: @colwidth;
  500. -moz-column-count: @colcount;
  501. -moz-column-gap: @colgap;
  502. -moz-column-rule-color: @columnRuleColor;
  503. -moz-column-rule-style: @columnRuleStyle;
  504. -moz-column-rule-width: @columnRuleWidth;
  505. -webkit-column-width: @colwidth;
  506. -webkit-column-count: @colcount;
  507. -webkit-column-gap: @colgap;
  508. =======
  509. -moz-transform:scale(@ratio);
  510. transform:scale(@ratio);
  511. }
  512. // Translate
  513. .translate(@x:0, @y:0)
  514. {
  515. -webkit-transform: translate(@x, @y);
  516. -moz-transform: translate(@x, @y);
  517. -ms-transform: translate(@x, @y);
  518. -o-transform: translate(@x, @y);
  519. transform: translate(@x, @y);
  520. }
  521. // Columns
  522. .columns(@colwidth: 250px, @colcount: 0, @colgap: 50px, @columnRuleColor: #EEE, @columnRuleStyle: solid, @columnRuleWidth: 1px)
  523. {
  524. -webkit-column-width : @colwidth;
  525. -webkit-column-count : @colcount;
  526. -webkit-column-gap : @colgap;
  527. >>>>>>> bitbucket/master
  528. -webkit-column-rule-color: @columnRuleColor;
  529. -webkit-column-rule-style: @columnRuleStyle;
  530. -webkit-column-rule-width: @columnRuleWidth;
  531. -moz-column-width : @colwidth;
  532. -moz-column-count : @colcount;
  533. -moz-column-gap : @colgap;
  534. -moz-column-rule-color: @columnRuleColor;
  535. -moz-column-rule-style: @columnRuleStyle;
  536. -moz-column-rule-width: @columnRuleWidth;
  537. column-width : @colwidth;
  538. column-count : @colcount;
  539. column-gap : @colgap;
  540. column-rule-color: @columnRuleColor;
  541. column-rule-style: @columnRuleStyle;
  542. column-rule-width: @columnRuleWidth;
  543. }
  544. .edit-link(@bc:#CCFF2F,@c:#333)
  545. {
  546. .dib;
  547. background-color:@bc;
  548. border:1px solid;
  549. border-color:darken(desaturate(@bc, 35%),15%) darken(desaturate(@bc, 35%),15%) darken(desaturate(@bc, 35%),20%);
  550. .rounded;
  551. color: @c;
  552. cursor: pointer;
  553. .font-size(.8em,1em);
  554. font-weight: normal;
  555. padding: 0.25em 0.75em;
  556. margin-top:.5em;
  557. &:hover{background-color:darken(@bc, 20%);}
  558. &:active{
  559. text-shadow: 0 1px 0 lighten(@bc,5%);
  560. background-color:darken(@bc, 20%);
  561. //.inset-shadow(0,0,2px,darken(@bc,60));
  562. }
  563. }
  564. // =
  565. // =
  566. // =
  567. // =
  568. // =
  569. // ===== RETINA ==========================================================================================================
  570. // retina.less
  571. // A helper mixin for applying high-resolution background images (http://www.retinajs.com)
  572. .at2x(@path, @w: auto, @h: auto) {
  573. background-image: url(@path);
  574. @at2x_path: ~`"@{path}".split('.').slice(0, "@{path}".split('.').length - 1).join(".") + "@2x" + "." + "@{path}".split('.')["@{path}".split('.').length - 1]`;
  575. @media all and (-webkit-min-device-pixel-ratio : 1.5) {
  576. background-image: url(@at2x_path);
  577. background-size: @w @h;
  578. }
  579. }