Advertisement
Guest User

Untitled

a guest
Jun 7th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 7.03 KB | None | 0 0
  1. /*
  2. SO Styles
  3. =========
  4.  
  5. Styles avalaible when the SO.css is included.
  6.  
  7. */
  8. @color-1: #607998;
  9. @color-2: #dfe4eb;
  10. @color-3: #595959;
  11. @white: #FFF;
  12. @border-thickness: 1px;
  13.  
  14. /*
  15. NS Field Breakout
  16. =================
  17.  
  18. This is used to make NetSuite field-widt: 100%.
  19.  
  20. */
  21. .uir-outside-fields-table {
  22.   width: 100%;
  23. }
  24.  
  25. /*
  26. The report class
  27. ================
  28.  
  29. Defines a table as a report.
  30.  
  31.   <table class="report ns-font">
  32.       <thead>
  33.       <tr class="header">
  34.           <th class="" width="15%">Tier I</th>
  35.           <th class="" width="15%">Mar 2015</th>
  36.           <th class="" width="15%">Apr 2015</th>
  37.           <th class="" width="15%">May 2015</th>
  38.           <th class="" width="15%">Jun 2015</th>
  39.       </tr>
  40.       </thead>
  41.       <tbody>
  42.       <tr class="subtotal">
  43.           <th class="" scope="row">Beginning Customers</th>
  44.           <td class="" width="15%">449</td>
  45.           <td class="" width="15%">441</td>
  46.           <td class="" width="15%">673</td>
  47.           <td class="" width="15%">433</td>
  48.       <tr>
  49.       <tr class="data">
  50.           <th class="" scope="row">New</th>
  51.           <td class="" width="15%">19</td>
  52.           <td class="" width="15%">256</td>
  53.           <td class="" width="15%">19</td>
  54.           <td class="" width="15%">7</td>
  55.       <tr>
  56.       <tr class="data">
  57.           <th class="" scope="row">Cancelled</th>
  58.           <td class="" width="15%">18</td>
  59.           <td class="" width="15%">27</td>
  60.           <td class="" width="15%">24</td>
  61.           <td class="" width="15%">259</td>
  62.       <tr>
  63.       <tr class="subtotal">
  64.           <th class="" scope="row">Ending Customers</th>
  65.           <td class="" width="15%">450</td>
  66.           <td class="" width="15%">670</td>
  67.           <td class="" width="15%">668</td>
  68.           <td class="" width="15%">181</td>
  69.       <tr>
  70.       <tr class="total">
  71.           <th class="" scope="row">Churn</th>
  72.           <td class="" width="15%">4 %</td>
  73.           <td class="" width="15%">6 %</td>
  74.           <td class="" width="15%">4 %</td>
  75.           <td class="" width="15%">60 %</td>
  76.       <tr>
  77.       </tbody>
  78.   </table>
  79.  
  80. */
  81. table.report {
  82.   border-style: solid;
  83.   border-width: @border-thickness;
  84.   border-color: @color-3;
  85.   font-family: 'Open Sans';
  86.   border-spacing: 0px;
  87.   width: 100%;
  88.   border-collapse: separate;
  89. }
  90.  
  91. /*
  92. The header Class
  93. ================
  94.  
  95. Defines the styling of th elements in a header row.
  96.  
  97.   <table class="report ns-font">
  98.     <thead>
  99.     <tr class="header">
  100.         <th class="" width="15%">Tier I</th>
  101.         <th class="" width="15%">Mar 2015</th>
  102.         <th class="" width="15%">Apr 2015</th>
  103.         <th class="" width="15%">May 2015</th>
  104.         <th class="" width="15%">Jun 2015</th>
  105.     </tr>
  106.     </thead>
  107.   </table>
  108.  
  109. */
  110. tr.header th {
  111.   background-color: @color-1;
  112.   color: @white;
  113.   text-align: center;
  114. }
  115.  
  116. /*
  117. The data Class
  118. ==============
  119.  
  120. Defines the styling of th elements in a data row.
  121.  
  122.   <table class="report ns-font">
  123.       <tbody>
  124.       <tr class="data">
  125.           <th class="" scope="row">Cancelled</th>
  126.           <td class="" width="15%">18</td>
  127.           <td class="" width="15%">27</td>
  128.           <td class="" width="15%">24</td>
  129.           <td class="" width="15%">259</td>
  130.       <tr>
  131.       </tbody>
  132.   </table>
  133.  
  134. */
  135. tr.data td:not(:nth-last-child(-n+2)) {
  136.   border-right: @border-thickness @color-3 dotted;
  137.   text-align: center;
  138. }
  139.  
  140. tr.data td:last-child {
  141.   border-left: @border-thickness @color-3 dotted;
  142.   text-align: center;
  143. }
  144.  
  145. tr.data td:nth-child(2) {
  146.   border-right: @border-thickness @color-3 dotted;
  147.   text-align: center;
  148. }
  149.  
  150. tr.data th {
  151.   background-color: @white;
  152.   border-right-style: solid;
  153.   border-right-width: @border-thickness;
  154.   border-right-color: @color-3;
  155.   font-weight: 400;
  156. }
  157.  
  158. tr.data td {
  159.   text-align: center;
  160. }
  161.  
  162. /*
  163. The subtotal Class
  164. ==================
  165.  
  166. Defines the styling of th elements in a subtotal row.
  167.  
  168.   <table class="report ns-font">
  169.       <tbody>
  170.       <tr class="subtotal">
  171.           <th class="" scope="row">Ending Customers</th>
  172.           <td class="" width="15%">450</td>
  173.           <td class="" width="15%">670</td>
  174.           <td class="" width="15%">668</td>
  175.           <td class="" width="15%">181</td>
  176.       <tr>
  177.       </tbody>
  178.   </table>
  179.  
  180. */
  181. tr.subtotal td:not(:nth-last-child(-n+2)) {
  182.   border-right: @border-thickness @color-3 dotted;
  183.   text-align: center;
  184. }
  185.  
  186. tr.subtotal td:last-child {
  187.   border-left: @border-thickness @color-3 dotted;
  188.   text-align: center;
  189. }
  190.  
  191. tr.subtotal td:nth-child(2) {
  192.   border-right: @border-thickness @color-3 dotted;
  193.   text-align: center;
  194. }
  195.  
  196. tr.subtotal th {
  197.   background-color: @white;
  198.   font-weight: bold;
  199.   border-right-style: solid;
  200.   border-right-width: @border-thickness;
  201.   border-right-color: @color-3;
  202. }
  203.  
  204. tr.subtotal td {
  205.   text-align: center;
  206. }
  207.  
  208. tr.subtotal {
  209.   font-weight: bold;
  210. }
  211.  
  212. /*
  213. The total class
  214. ===============
  215.  
  216. Defines the styling of th elements in a total row.
  217.  
  218.   <table class="report ns-font">
  219.       <tbody>
  220.       <tr class="total">
  221.           <th class="" scope="row">Churn</th>
  222.           <td class="" width="15%">4 %</td>
  223.           <td class="" width="15%">6 %</td>
  224.           <td class="" width="15%">4 %</td>
  225.           <td class="" width="15%">60 %</td>
  226.       <tr>
  227.       </tbody>
  228.   </table>
  229.  
  230. */
  231. tr.total {
  232.   font-weight: bold;
  233. }
  234.  
  235. tr.total td:not(:nth-last-child(-n+2)) {
  236.   border-right: @border-thickness @color-3 dotted;
  237.   text-align: center;
  238. }
  239.  
  240. tr.total td:last-child {
  241.   border-left: @border-thickness @color-3 dotted;
  242.   text-align: center;
  243. }
  244.  
  245. tr.total td:nth-child(2) {
  246.   border-right: @border-thickness @color-3 dotted;
  247.   text-align: center;
  248. }
  249.  
  250. tr.total th {
  251.   background-color: @color-2;
  252.   border-right: @border-thickness @color-3 solid;
  253.   border-top: @border-thickness @color-3 solid;
  254.   font-weight: bold;
  255. }
  256.  
  257. tr.total td {
  258.   background-color: @color-2;
  259.   text-align: center;
  260.   border-top: @border-thickness @color-3 solid;
  261. }
  262.  
  263. /*
  264. The text classes
  265. ================
  266.  
  267. Makes whatever it's applied to have various properties.
  268.  
  269.     <div class="normal">Normal</div>
  270.     <div class="bold">Bold</div>
  271.     <div class="bolder">Bolder</div>
  272.  
  273. */
  274. .normal {
  275.   font-weight: 400;
  276. }
  277.  
  278. .bold {
  279.   font-weight: 600;
  280. }
  281.  
  282. .bolder {
  283.   font-weight: 700;
  284. }
  285.  
  286. .ns-font {
  287.   font-family: 'Open Sans';
  288. }
  289.  
  290. /*
  291. The color classes
  292. =================
  293.  
  294. Makes whatever it's applied to have various color properties.
  295.  
  296.     <div class="foreground-color-1">Color 1</div>
  297.     <div class="foreground-color-2">Color 2</div>
  298.     <div class="foreground-color-3">Color 3</div>
  299.     <div class="background-color-1">Color 1</div>
  300.     <div class="background-color-2">Color 2</div>
  301.     <div class="background-color-3">Color 3</div>
  302.  
  303. */
  304. .foreground-color-1 {
  305.   color: @color-1;
  306. }
  307.  
  308. .foreground-color-2 {
  309.   color: @color-2;
  310. }
  311.  
  312. .foreground-color-3 {
  313.   color: @color-3;
  314. }
  315.  
  316. .background-color-1 {
  317.   background-color: @color-1;
  318. }
  319.  
  320. .background-color-2 {
  321.   background-color: @color-2;
  322. }
  323.  
  324. .background-color-3 {
  325.   background-color: @color-3;
  326. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement