You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

483 lines
9.4 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
11 years ago
  1. /*
  2. * # Semantic - Segment
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'element';
  15. @element : 'segment';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Segment
  19. *******************************/
  20. .ui.segment {
  21. position: relative;
  22. background-color: @background;
  23. box-shadow: @boxShadow;
  24. margin: @margin 0em;
  25. padding: @verticalPadding @horizontalPadding;
  26. border-radius: @borderRadius;
  27. border: @border;
  28. }
  29. .ui.segment:first-child {
  30. margin-top: 0em;
  31. }
  32. .ui.segment:last-child {
  33. margin-bottom: 0em;
  34. }
  35. .ui.segment:after {
  36. content: '';
  37. display: block;
  38. height: 0px;
  39. clear: both;
  40. visibility: hidden;
  41. }
  42. .ui.vertical.segment {
  43. margin: 0em;
  44. padding-left: 0em;
  45. padding-right: 0em;
  46. background-color: transparent;
  47. border-radius: 0px;
  48. border: none;
  49. box-shadow: 0px 1px 0px @borderColor;
  50. }
  51. .ui.vertical.segment:first-child {
  52. padding-top: 0em;
  53. }
  54. .ui.vertical.segment:last-child {
  55. padding-bottom: 0em;
  56. box-shadow: none;
  57. }
  58. .ui.horizontal.segment {
  59. margin: 0em;
  60. padding-top: 0em;
  61. padding-bottom: 0em;
  62. background-color: transparent;
  63. border-radius: 0px;
  64. border: none;
  65. box-shadow: 1px 0px 0px @borderColor;
  66. }
  67. .ui.horizontal.segment:first-child {
  68. padding-left: 0em;
  69. }
  70. .ui.horizontal.segment:last-child {
  71. padding-right: 0em;
  72. }
  73. /*-------------------
  74. Loose Coupling
  75. --------------------*/
  76. /* Menu */
  77. .ui.pointing.menu + .ui.attached.segment {
  78. top: 1px;
  79. }
  80. /* Header */
  81. .ui.inverted.segment > .ui.header {
  82. color: @white;
  83. }
  84. /* Label */
  85. .ui[class*="bottom attached"].segment > [class*="top attached"].label {
  86. border-top-left-radius: 0em;
  87. border-top-right-radius: 0em;
  88. }
  89. .ui[class*="top attached"].segment > [class*="bottom attached"].label {
  90. border-bottom-left-radius: 0em;
  91. border-bottom-right-radius: 0em;
  92. }
  93. .ui.attached.segment:not(.top):not(.bottom) > [class*="top attached"].label {
  94. border-top-left-radius: 0em;
  95. border-top-right-radius: 0em;
  96. }
  97. .ui.attached.segment:not(.top):not(.bottom) > [class*="bottom attached"].label {
  98. border-bottom-left-radius: 0em;
  99. border-bottom-right-radius: 0em;
  100. }
  101. /* Grid */
  102. .ui.page.grid.segment,
  103. .ui.grid .ui.segment.column {
  104. padding-top: @pageGridMargin;
  105. padding-bottom: @pageGridMargin;
  106. }
  107. .ui.grid.segment,
  108. .ui.grid .ui.segment.row,
  109. .ui.grid .ui.segment.column {
  110. border-radius: 0em;
  111. box-shadow: none;
  112. border: none;
  113. }
  114. /* Table */
  115. .ui.basic.table.segment {
  116. background: @background;
  117. border: @border;
  118. box-shadow: @boxShadow;
  119. }
  120. .ui[class*="very basic"].table.segment {
  121. padding: @verticalPadding @horizontalPadding;
  122. }
  123. /*******************************
  124. Types
  125. *******************************/
  126. /*-------------------
  127. Piled
  128. --------------------*/
  129. .ui.piled.segment {
  130. margin: @piledMargin 0em;
  131. box-shadow: @piledBoxShadow;
  132. z-index: @piledZIndex;
  133. }
  134. .ui.piled.segment:first-child {
  135. margin-top: 0em;
  136. }
  137. .ui.piled.segment:last-child {
  138. margin-bottom: 0em;
  139. }
  140. .ui.piled.segment:after,
  141. .ui.piled.segment:before {
  142. background-color: @white;
  143. visibility: visible;
  144. content: '';
  145. display: block;
  146. height: 100%;
  147. left: 0px;
  148. position: absolute;
  149. width: 100%;
  150. box-shadow: @piledBoxShadow;
  151. }
  152. .ui.piled.segment:after {
  153. transform: rotate(@piledDegrees);
  154. top: 0;
  155. z-index: -1;
  156. }
  157. .ui.piled.segment:before {
  158. transform: rotate(-@piledDegrees);
  159. top: 0;
  160. z-index: -2;
  161. }
  162. /*-------------------
  163. Stacked
  164. --------------------*/
  165. .ui.stacked.segment {
  166. padding-bottom: @stackedPadding;
  167. }
  168. .ui.stacked.segment:after,
  169. .ui.stacked.segment:before {
  170. content: '';
  171. position: absolute;
  172. bottom: -(@stackedHeight / 2);
  173. left: 0%;
  174. border-top: 1px solid @borderColor;
  175. background-color: @stackedPageBackground;
  176. width: 100%;
  177. height: @stackedHeight;
  178. visibility: visible;
  179. }
  180. .ui.stacked.segment:before {
  181. display: none;
  182. }
  183. /* Add additional page */
  184. .ui.tall.stacked.segment:before {
  185. display: block;
  186. bottom: 0px;
  187. }
  188. /* Inverted */
  189. .ui.stacked.inverted.segment:after,
  190. .ui.stacked.inverted.segment:before {
  191. background-color: @subtleTransparentBlack;
  192. border-top: 1px solid @selectedBorderColor;
  193. }
  194. /*-------------------
  195. Circular
  196. --------------------*/
  197. .ui.circular.segment {
  198. display: table-cell;
  199. padding: @circularPadding;
  200. text-align: center;
  201. vertical-align: middle;
  202. border-radius: 500em;
  203. }
  204. /*-------------------
  205. Raised
  206. --------------------*/
  207. .ui.raised.segment {
  208. box-shadow: @raisedBoxShadow;
  209. }
  210. /*******************************
  211. States
  212. *******************************/
  213. .ui.disabled.segment {
  214. opacity: @disabledOpacity;
  215. color: @disabledTextColor;
  216. }
  217. /*******************************
  218. Variations
  219. *******************************/
  220. /*-------------------
  221. Basic
  222. --------------------*/
  223. .ui.basic.segment {
  224. position: relative;
  225. background-color: transparent;
  226. box-shadow: none;
  227. border-radius: 0px;
  228. }
  229. .ui.basic.segment:first-child {
  230. padding-top: 0em;
  231. }
  232. .ui.basic.segment:last-child {
  233. padding-bottom: 0em;
  234. }
  235. /*-------------------
  236. Fittted
  237. --------------------*/
  238. .ui.fitted.segment {
  239. padding: 0em;
  240. }
  241. /*-------------------
  242. Colors
  243. --------------------*/
  244. .ui.black.segment:not(.inverted) {
  245. border-top: @coloredBorderSize solid @black;
  246. border-radius: @coloredBorderRadius !important;
  247. }
  248. .ui.blue.segment:not(.inverted) {
  249. border-top: @coloredBorderSize solid @blue;
  250. border-radius: @coloredBorderRadius !important;
  251. }
  252. .ui.green.segment:not(.inverted) {
  253. border-top: @coloredBorderSize solid @green;
  254. border-radius: @coloredBorderRadius !important;
  255. }
  256. .ui.orange.segment:not(.inverted) {
  257. border-top: @coloredBorderSize solid @orange;
  258. border-radius: @coloredBorderRadius !important;
  259. }
  260. .ui.pink.segment:not(.inverted) {
  261. border-top: @coloredBorderSize solid @pink;
  262. border-radius: @coloredBorderRadius !important;
  263. }
  264. .ui.purple.segment:not(.inverted) {
  265. border-top: @coloredBorderSize solid @purple;
  266. border-radius: @coloredBorderRadius !important;
  267. }
  268. .ui.red.segment:not(.inverted) {
  269. border-top: @coloredBorderSize solid @red;
  270. border-radius: @coloredBorderRadius !important;
  271. }
  272. .ui.teal.segment:not(.inverted) {
  273. border-top: @coloredBorderSize solid @teal;
  274. border-radius: @coloredBorderRadius !important;
  275. }
  276. .ui.yellow.segment:not(.inverted) {
  277. border-top: @coloredBorderSize solid @yellow;
  278. border-radius: @coloredBorderRadius !important;
  279. }
  280. /*-------------------
  281. Inverted Colors
  282. --------------------*/
  283. .ui.inverted.segment,
  284. .ui.inverted.black.segment {
  285. background-color: @black !important;
  286. color: @white !important;
  287. }
  288. .ui.inverted.blue.segment {
  289. background-color: @blue !important;
  290. color: @white !important;
  291. }
  292. .ui.inverted.green.segment {
  293. background-color: @green !important;
  294. color: @white !important;
  295. }
  296. .ui.inverted.orange.segment {
  297. background-color: @orange !important;
  298. color: @white !important;
  299. }
  300. .ui.inverted.pink.segment {
  301. background-color: @pink !important;
  302. color: @white !important;
  303. }
  304. .ui.inverted.purple.segment {
  305. background-color: @purple !important;
  306. color: @white !important;
  307. }
  308. .ui.inverted.red.segment {
  309. background-color: @red !important;
  310. color: @white !important;
  311. }
  312. .ui.inverted.teal.segment {
  313. background-color: @teal !important;
  314. color: @white !important;
  315. }
  316. .ui.inverted.yellow.segment {
  317. background-color: @yellow !important;
  318. color: @white !important;
  319. }
  320. /*-------------------
  321. Aligned
  322. --------------------*/
  323. .ui[class*="left aligned"].segment {
  324. text-align: left;
  325. }
  326. .ui[class*="right aligned"].segment {
  327. text-align: right;
  328. }
  329. .ui[class*="center aligned"].segment {
  330. text-align: center;
  331. }
  332. /*-------------------
  333. Floated
  334. --------------------*/
  335. .ui.floated.segment,
  336. .ui[class*="left floated"].segment {
  337. float: left;
  338. }
  339. .ui[class*="right floated"].segment {
  340. float: right;
  341. }
  342. /*-------------------
  343. Inverted
  344. --------------------*/
  345. .ui.inverted.segment {
  346. border: none;
  347. -webkit-box-shadow: none;
  348. -moz-box-shadow: none;
  349. box-shadow: none;
  350. }
  351. .ui.inverted.segment .segment {
  352. color: @textColor;
  353. }
  354. .ui.inverted.segment .inverted.segment {
  355. color: @white;
  356. }
  357. .ui.inverted.segment,
  358. .ui.primary.inverted.segment {
  359. background-color: @black;
  360. color: @white;
  361. }
  362. .ui.inverted.block.segment,
  363. .ui.inverted.attached.segment {
  364. box-shadow: none !important;
  365. }
  366. /*-------------------
  367. Ordinality
  368. --------------------*/
  369. .ui.secondary.segment {
  370. background: @secondaryBackground;
  371. color: @secondaryColor;
  372. }
  373. .ui.tertiary.segment {
  374. background: @tertiaryBackground;
  375. color: @textColor;
  376. }
  377. .ui.secondary.inverted.segment {
  378. background: @secondaryInvertedBackground;
  379. color: @secondaryInvertedColor;
  380. }
  381. .ui.tertiary.inverted.segment {
  382. background: @tertiaryInvertedBackground;
  383. color: @tertiaryInvertedColor;
  384. }
  385. /*-------------------
  386. Attached
  387. --------------------*/
  388. .ui.segment.attached {
  389. top: 0px;
  390. bottom: 0px;
  391. margin: 0em;
  392. border-radius: 0px;
  393. box-shadow: @attachedBoxShadow;
  394. }
  395. .ui[class*="top attached"].segment {
  396. top: @attachedTopOffset;
  397. bottom: 0px;
  398. margin-top: @margin;
  399. margin-bottom: 0em;
  400. border-radius: @borderRadius @borderRadius 0em 0em;
  401. }
  402. .ui.segment[class*="top attached"]:first-child {
  403. margin-top: 0em;
  404. }
  405. .ui.segment[class*="bottom attached"] {
  406. top: @attachedBottomOffset;
  407. bottom: 0px;
  408. margin-top: 0em;
  409. margin-bottom: @margin;
  410. box-shadow: @attachedBottomBoxShadow;
  411. border-radius: 0em 0em @borderRadius @borderRadius;
  412. }
  413. .ui.segment[class*="bottom attached"]:last-child {
  414. margin-bottom: 0em;
  415. }
  416. .loadUIOverrides();