input.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*
  2. Preserves orignal formatting
  3. */
  4. /* declarations can exist inside atrules */
  5. @font-face {
  6. font-family: 'Test font';
  7. }
  8. /* comment before rule */
  9. body/* comment after rule name */{
  10. /* comment before decl */
  11. padding /* comment after prop */ : /* comment before val */ 0 /* comment after val */ 1px /* another comment */ 2px /* one more */ 3px /* last one*/;
  12. /* comment after decl */
  13. margin:
  14. 0 /*top*/
  15. 1px /*right
  16. multi-line
  17. comment
  18. */
  19. 2px /*bottom*/
  20. 3px /*left*/;
  21. border-left/* comment after prop */: none;
  22. }
  23. /* empty options forces defaults */
  24. /*rtl:begin:options: {}*/
  25. /* should not process urls - default */
  26. @import url("rtl-right-east.css");
  27. /*rtl:end:options*/
  28. /*rtl:begin:config:
  29. {
  30. "options":{
  31. "autoRename": true,
  32. "stringMap":[
  33. {
  34. "name" : "prev-next",
  35. "search" : ["prev", "Prev", "PREV"],
  36. "replace" : ["next", "Next", "NEXT"],
  37. "options" : {"ignoreCase":false}
  38. }
  39. ]
  40. },
  41. "plugins":[
  42. {
  43. "name": "test",
  44. "directives":{
  45. "control": {},
  46. "value": []
  47. },
  48. "processors": [
  49. {
  50. "name": "content",
  51. "expr": /content/im,
  52. "action": function (prop, value, cxt) {
  53. if (value === '"A"') {
  54. return { 'prop': prop, 'value': '"ABC"' }
  55. } else if (value === '"ABC"') {
  56. return { 'prop': prop, 'value': '"A"' }
  57. }
  58. return { 'prop': prop, 'value': value }
  59. }
  60. }
  61. ]
  62. }
  63. ]
  64. }*/
  65. div:before { content: "A";} div:after { content: "ABC";}
  66. .demo-prev, .demo-Prev, .demo-PREV { content: 'p'; }
  67. .demo-next, .demo-Next, .demo-NEXT { content: 'n'; }
  68. /*rtl:end:config*/
  69. /*!rtl:begin:remove*/
  70. @import url(/test.css);
  71. i {
  72. color: blue;
  73. }
  74. /*rtl:end:remove*/
  75. div {
  76. /*rtl:remove*/
  77. direction: rtl;
  78. text-align: right;
  79. padding: 10px;
  80. }
  81. /*rtl:begin:ignore*/
  82. .sample {
  83. text-align: left;
  84. }
  85. /*rtl:end:ignore*/
  86. /*rtl:begin:options:{"autoRename":false, "clean": false}*/
  87. .right { display:inline;}
  88. /*rtl:begin:options:{"autoRename":true, "greedy": true}*/
  89. .bright { display:inline;}
  90. /*rtl:end:options*/
  91. .brighter { display:inline;}
  92. /*rtl:end:options*/
  93. /* auto rename only if a pair exists */
  94. /*rtl:begin:options:{"autoRename":true, "autoRenameStrict": true}*/
  95. /* The following should not be renamed */
  96. .ltr{ display: inline-flex;}
  97. /* But these should */
  98. .right{ display: inline-flex;}
  99. .left { display: block;}
  100. /*rtl:end:options*/