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.

758 lines
15 KiB

  1. /*!
  2. * # Semantic UI 2.1.6 - Segment
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Segment
  13. *******************************/
  14. .ui.segment {
  15. position: relative;
  16. background: #FFFFFF;
  17. box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15);
  18. margin: 1rem 0em;
  19. padding: 1em 1em;
  20. border-radius: 0.28571429rem;
  21. border: 1px solid rgba(34, 36, 38, 0.15);
  22. }
  23. .ui.segment:first-child {
  24. margin-top: 0em;
  25. }
  26. .ui.segment:last-child {
  27. margin-bottom: 0em;
  28. }
  29. /* Vertical */
  30. .ui.vertical.segment {
  31. margin: 0em;
  32. padding-left: 0em;
  33. padding-right: 0em;
  34. background: none transparent;
  35. border-radius: 0px;
  36. box-shadow: none;
  37. border: none;
  38. border-bottom: 1px solid rgba(34, 36, 38, 0.15);
  39. }
  40. .ui.vertical.segment:last-child {
  41. border-bottom: none;
  42. }
  43. /*-------------------
  44. Loose Coupling
  45. --------------------*/
  46. /* Header */
  47. .ui.inverted.segment > .ui.header {
  48. color: #FFFFFF;
  49. }
  50. /* Label */
  51. .ui[class*="bottom attached"].segment > [class*="top attached"].label {
  52. border-top-left-radius: 0em;
  53. border-top-right-radius: 0em;
  54. }
  55. .ui[class*="top attached"].segment > [class*="bottom attached"].label {
  56. border-bottom-left-radius: 0em;
  57. border-bottom-right-radius: 0em;
  58. }
  59. .ui.attached.segment:not(.top):not(.bottom) > [class*="top attached"].label {
  60. border-top-left-radius: 0em;
  61. border-top-right-radius: 0em;
  62. }
  63. .ui.attached.segment:not(.top):not(.bottom) > [class*="bottom attached"].label {
  64. border-bottom-left-radius: 0em;
  65. border-bottom-right-radius: 0em;
  66. }
  67. /* Grid */
  68. .ui.page.grid.segment,
  69. .ui.grid > .row > .ui.segment.column,
  70. .ui.grid > .ui.segment.column {
  71. padding-top: 2em;
  72. padding-bottom: 2em;
  73. }
  74. .ui.grid.segment {
  75. margin: 1rem 0em;
  76. border-radius: 0.28571429rem;
  77. }
  78. /* Table */
  79. .ui.basic.table.segment {
  80. background: #FFFFFF;
  81. border: 1px solid rgba(34, 36, 38, 0.15);
  82. box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15);
  83. }
  84. .ui[class*="very basic"].table.segment {
  85. padding: 1em 1em;
  86. }
  87. /*******************************
  88. Types
  89. *******************************/
  90. /*-------------------
  91. Piled
  92. --------------------*/
  93. .ui.piled.segments,
  94. .ui.piled.segment {
  95. margin: 3em 0em;
  96. box-shadow: '';
  97. z-index: auto;
  98. }
  99. .ui.piled.segment:first-child {
  100. margin-top: 0em;
  101. }
  102. .ui.piled.segment:last-child {
  103. margin-bottom: 0em;
  104. }
  105. .ui.piled.segments:after,
  106. .ui.piled.segments:before,
  107. .ui.piled.segment:after,
  108. .ui.piled.segment:before {
  109. background-color: #FFFFFF;
  110. visibility: visible;
  111. content: '';
  112. display: block;
  113. height: 100%;
  114. left: 0px;
  115. position: absolute;
  116. width: 100%;
  117. border: 1px solid rgba(34, 36, 38, 0.15);
  118. box-shadow: '';
  119. }
  120. .ui.piled.segments:before,
  121. .ui.piled.segment:before {
  122. -webkit-transform: rotate(-1.2deg);
  123. -ms-transform: rotate(-1.2deg);
  124. transform: rotate(-1.2deg);
  125. top: 0;
  126. z-index: -2;
  127. }
  128. .ui.piled.segments:after,
  129. .ui.piled.segment:after {
  130. -webkit-transform: rotate(1.2deg);
  131. -ms-transform: rotate(1.2deg);
  132. transform: rotate(1.2deg);
  133. top: 0;
  134. z-index: -1;
  135. }
  136. /* Piled Attached */
  137. .ui[class*="top attached"].piled.segment {
  138. margin-top: 3em;
  139. margin-bottom: 0em;
  140. }
  141. .ui.piled.segment[class*="top attached"]:first-child {
  142. margin-top: 0em;
  143. }
  144. .ui.piled.segment[class*="bottom attached"] {
  145. margin-top: 0em;
  146. margin-bottom: 3em;
  147. }
  148. .ui.piled.segment[class*="bottom attached"]:last-child {
  149. margin-bottom: 0em;
  150. }
  151. /*-------------------
  152. Stacked
  153. --------------------*/
  154. .ui.stacked.segment {
  155. padding-bottom: 1.4em;
  156. }
  157. .ui.stacked.segments:before,
  158. .ui.stacked.segments:after,
  159. .ui.stacked.segment:before,
  160. .ui.stacked.segment:after {
  161. content: '';
  162. position: absolute;
  163. bottom: -3px;
  164. left: 0%;
  165. border-top: 1px solid rgba(34, 36, 38, 0.15);
  166. background: rgba(0, 0, 0, 0.03);
  167. width: 100%;
  168. height: 6px;
  169. visibility: visible;
  170. }
  171. .ui.stacked.segments:before,
  172. .ui.stacked.segment:before {
  173. display: none;
  174. }
  175. /* Add additional page */
  176. .ui.tall.stacked.segments:before,
  177. .ui.tall.stacked.segment:before {
  178. display: block;
  179. bottom: 0px;
  180. }
  181. /* Inverted */
  182. .ui.stacked.inverted.segments:before,
  183. .ui.stacked.inverted.segments:after,
  184. .ui.stacked.inverted.segment:before,
  185. .ui.stacked.inverted.segment:after {
  186. background-color: rgba(0, 0, 0, 0.03);
  187. border-top: 1px solid rgba(34, 36, 38, 0.35);
  188. }
  189. /*-------------------
  190. Padded
  191. --------------------*/
  192. .ui.padded.segment {
  193. padding: 1.5em;
  194. }
  195. .ui[class*="very padded"].segment {
  196. padding: 3em;
  197. }
  198. /*-------------------
  199. Compact
  200. --------------------*/
  201. .ui.compact.segment {
  202. display: table;
  203. }
  204. /* Compact Group */
  205. .ui.compact.segments {
  206. display: -webkit-inline-box;
  207. display: -webkit-inline-flex;
  208. display: -ms-inline-flexbox;
  209. display: inline-flex;
  210. }
  211. .ui.compact.segments .segment,
  212. .ui.segments .compact.segment {
  213. display: block;
  214. -webkit-box-flex: 0;
  215. -webkit-flex: 0 1 auto;
  216. -ms-flex: 0 1 auto;
  217. flex: 0 1 auto;
  218. }
  219. /*-------------------
  220. Circular
  221. --------------------*/
  222. .ui.circular.segment {
  223. display: table-cell;
  224. padding: 2em;
  225. text-align: center;
  226. vertical-align: middle;
  227. border-radius: 500em;
  228. }
  229. /*-------------------
  230. Raised
  231. --------------------*/
  232. .ui.raised.segments,
  233. .ui.raised.segment {
  234. box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.08);
  235. }
  236. /*******************************
  237. Groups
  238. *******************************/
  239. /* Group */
  240. .ui.segments {
  241. -webkit-box-orient: vertical;
  242. -webkit-box-direction: normal;
  243. -webkit-flex-direction: column;
  244. -ms-flex-direction: column;
  245. flex-direction: column;
  246. position: relative;
  247. margin: 1rem 0em;
  248. border: 1px solid rgba(34, 36, 38, 0.15);
  249. box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15);
  250. border-radius: 0.28571429rem;
  251. }
  252. .ui.segments:first-child {
  253. margin-top: 0em;
  254. }
  255. .ui.segments:last-child {
  256. margin-bottom: 0em;
  257. }
  258. /* Nested Segment */
  259. .ui.segments > .segment {
  260. top: 0px;
  261. bottom: 0px;
  262. border-radius: 0px;
  263. margin: 0em;
  264. width: auto;
  265. box-shadow: none;
  266. border: none;
  267. border-top: 1px solid rgba(34, 36, 38, 0.15);
  268. }
  269. .ui.segments:not(.horizontal) > .segment:first-child {
  270. border-top: none;
  271. margin-top: 0em;
  272. bottom: 0px;
  273. margin-bottom: 0em;
  274. top: 0px;
  275. border-radius: 0.28571429rem 0.28571429rem 0em 0em;
  276. }
  277. /* Bottom */
  278. .ui.segments:not(.horizontal) > .segment:last-child {
  279. top: 0px;
  280. bottom: 0px;
  281. margin-top: 0em;
  282. margin-bottom: 0em;
  283. box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15), none;
  284. border-radius: 0em 0em 0.28571429rem 0.28571429rem;
  285. }
  286. /* Nested Group */
  287. .ui.segments > .ui.segments {
  288. border-top: 1px solid rgba(34, 36, 38, 0.15);
  289. margin: 1rem 1rem;
  290. }
  291. .ui.segments > .segments:first-child {
  292. border-top: none;
  293. }
  294. .ui.segments > .segment + .segments:not(.horizontal) {
  295. margin-top: 0em;
  296. }
  297. /* Horizontal Group */
  298. .ui.horizontal.segments {
  299. display: -webkit-box;
  300. display: -webkit-flex;
  301. display: -ms-flexbox;
  302. display: flex;
  303. -webkit-box-orient: horizontal;
  304. -webkit-box-direction: normal;
  305. -webkit-flex-direction: row;
  306. -ms-flex-direction: row;
  307. flex-direction: row;
  308. background-color: transparent;
  309. border-radius: 0px;
  310. padding: 0em;
  311. background-color: #FFFFFF;
  312. box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15);
  313. margin: 1rem 0em;
  314. border-radius: 0.28571429rem;
  315. border: 1px solid rgba(34, 36, 38, 0.15);
  316. }
  317. /* Nested Horizontal Group */
  318. .ui.segments > .horizontal.segments {
  319. margin: 0em;
  320. background-color: transparent;
  321. border-radius: 0px;
  322. border: none;
  323. box-shadow: none;
  324. border-top: 1px solid rgba(34, 36, 38, 0.15);
  325. }
  326. /* Horizontal Segment */
  327. .ui.horizontal.segments > .segment {
  328. -webkit-box-flex: 1;
  329. -webkit-flex: 1 1 auto;
  330. flex: 1 1 auto;
  331. -ms-flex: 1 1 0px;
  332. /* Solves #2550 MS Flex */
  333. margin: 0em;
  334. min-width: 0px;
  335. background-color: transparent;
  336. border-radius: 0px;
  337. border: none;
  338. box-shadow: none;
  339. border-left: 1px solid rgba(34, 36, 38, 0.15);
  340. }
  341. /* Border Fixes */
  342. .ui.segments > .horizontal.segments:first-child {
  343. border-top: none;
  344. }
  345. .ui.horizontal.segments > .segment:first-child {
  346. border-left: none;
  347. }
  348. /*******************************
  349. States
  350. *******************************/
  351. /*--------------
  352. Disabled
  353. ---------------*/
  354. .ui.disabled.segment {
  355. opacity: 0.45;
  356. color: rgba(40, 40, 40, 0.3);
  357. }
  358. /*--------------
  359. Loading
  360. ---------------*/
  361. .ui.loading.segment {
  362. position: relative;
  363. cursor: default;
  364. point-events: none;
  365. text-shadow: none !important;
  366. color: transparent !important;
  367. -webkit-transition: all 0s linear;
  368. transition: all 0s linear;
  369. }
  370. .ui.loading.segment:before {
  371. position: absolute;
  372. content: '';
  373. top: 0%;
  374. left: 0%;
  375. background: rgba(255, 255, 255, 0.8);
  376. width: 100%;
  377. height: 100%;
  378. border-radius: 0.28571429rem;
  379. z-index: 100;
  380. }
  381. .ui.loading.segment:after {
  382. position: absolute;
  383. content: '';
  384. top: 50%;
  385. left: 50%;
  386. margin: -1.5em 0em 0em -1.5em;
  387. width: 3em;
  388. height: 3em;
  389. -webkit-animation: segment-spin 0.6s linear;
  390. animation: segment-spin 0.6s linear;
  391. -webkit-animation-iteration-count: infinite;
  392. animation-iteration-count: infinite;
  393. border-radius: 500rem;
  394. border-color: #767676 rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1);
  395. border-style: solid;
  396. border-width: 0.2em;
  397. box-shadow: 0px 0px 0px 1px transparent;
  398. visibility: visible;
  399. z-index: 101;
  400. }
  401. @-webkit-keyframes segment-spin {
  402. from {
  403. -webkit-transform: rotate(0deg);
  404. transform: rotate(0deg);
  405. }
  406. to {
  407. -webkit-transform: rotate(360deg);
  408. transform: rotate(360deg);
  409. }
  410. }
  411. @keyframes segment-spin {
  412. from {
  413. -webkit-transform: rotate(0deg);
  414. transform: rotate(0deg);
  415. }
  416. to {
  417. -webkit-transform: rotate(360deg);
  418. transform: rotate(360deg);
  419. }
  420. }
  421. /*******************************
  422. Variations
  423. *******************************/
  424. /*-------------------
  425. Basic
  426. --------------------*/
  427. .ui.basic.segment {
  428. background: none transparent;
  429. box-shadow: none;
  430. border: none;
  431. border-radius: 0px;
  432. }
  433. /*-------------------
  434. Clearing
  435. --------------------*/
  436. .ui.clearing.segment:after {
  437. content: ".";
  438. display: block;
  439. height: 0;
  440. clear: both;
  441. visibility: hidden;
  442. }
  443. /*-------------------
  444. Colors
  445. --------------------*/
  446. /* Red */
  447. .ui.red.segment:not(.inverted) {
  448. border-top: 2px solid #DB2828;
  449. }
  450. .ui.inverted.red.segment {
  451. background-color: #DB2828 !important;
  452. color: #FFFFFF !important;
  453. }
  454. /* Orange */
  455. .ui.orange.segment:not(.inverted) {
  456. border-top: 2px solid #F2711C;
  457. }
  458. .ui.inverted.orange.segment {
  459. background-color: #F2711C !important;
  460. color: #FFFFFF !important;
  461. }
  462. /* Yellow */
  463. .ui.yellow.segment:not(.inverted) {
  464. border-top: 2px solid #FBBD08;
  465. }
  466. .ui.inverted.yellow.segment {
  467. background-color: #FBBD08 !important;
  468. color: #FFFFFF !important;
  469. }
  470. /* Olive */
  471. .ui.olive.segment:not(.inverted) {
  472. border-top: 2px solid #B5CC18;
  473. }
  474. .ui.inverted.olive.segment {
  475. background-color: #B5CC18 !important;
  476. color: #FFFFFF !important;
  477. }
  478. /* Green */
  479. .ui.green.segment:not(.inverted) {
  480. border-top: 2px solid #21BA45;
  481. }
  482. .ui.inverted.green.segment {
  483. background-color: #21BA45 !important;
  484. color: #FFFFFF !important;
  485. }
  486. /* Teal */
  487. .ui.teal.segment:not(.inverted) {
  488. border-top: 2px solid #00B5AD;
  489. }
  490. .ui.inverted.teal.segment {
  491. background-color: #00B5AD !important;
  492. color: #FFFFFF !important;
  493. }
  494. /* Blue */
  495. .ui.blue.segment:not(.inverted) {
  496. border-top: 2px solid #2185D0;
  497. }
  498. .ui.inverted.blue.segment {
  499. background-color: #2185D0 !important;
  500. color: #FFFFFF !important;
  501. }
  502. /* Violet */
  503. .ui.violet.segment:not(.inverted) {
  504. border-top: 2px solid #6435C9;
  505. }
  506. .ui.inverted.violet.segment {
  507. background-color: #6435C9 !important;
  508. color: #FFFFFF !important;
  509. }
  510. /* Purple */
  511. .ui.purple.segment:not(.inverted) {
  512. border-top: 2px solid #A333C8;
  513. }
  514. .ui.inverted.purple.segment {
  515. background-color: #A333C8 !important;
  516. color: #FFFFFF !important;
  517. }
  518. /* Pink */
  519. .ui.pink.segment:not(.inverted) {
  520. border-top: 2px solid #E03997;
  521. }
  522. .ui.inverted.pink.segment {
  523. background-color: #E03997 !important;
  524. color: #FFFFFF !important;
  525. }
  526. /* Brown */
  527. .ui.brown.segment:not(.inverted) {
  528. border-top: 2px solid #A5673F;
  529. }
  530. .ui.inverted.brown.segment {
  531. background-color: #A5673F !important;
  532. color: #FFFFFF !important;
  533. }
  534. /* Grey */
  535. .ui.grey.segment:not(.inverted) {
  536. border-top: 2px solid #767676;
  537. }
  538. .ui.inverted.grey.segment {
  539. background-color: #767676 !important;
  540. color: #FFFFFF !important;
  541. }
  542. /* Black */
  543. .ui.black.segment:not(.inverted) {
  544. border-top: 2px solid #1B1C1D;
  545. }
  546. .ui.inverted.black.segment {
  547. background-color: #1B1C1D !important;
  548. color: #FFFFFF !important;
  549. }
  550. /*-------------------
  551. Aligned
  552. --------------------*/
  553. .ui[class*="left aligned"].segment {
  554. text-align: left;
  555. }
  556. .ui[class*="right aligned"].segment {
  557. text-align: right;
  558. }
  559. .ui[class*="center aligned"].segment {
  560. text-align: center;
  561. }
  562. /*-------------------
  563. Floated
  564. --------------------*/
  565. .ui.floated.segment,
  566. .ui[class*="left floated"].segment {
  567. float: left;
  568. margin-right: 1em;
  569. }
  570. .ui[class*="right floated"].segment {
  571. float: right;
  572. margin-left: 1em;
  573. }
  574. /*-------------------
  575. Inverted
  576. --------------------*/
  577. .ui.inverted.segment {
  578. border: none;
  579. box-shadow: none;
  580. }
  581. .ui.inverted.segment,
  582. .ui.primary.inverted.segment {
  583. background: #1B1C1D;
  584. color: rgba(255, 255, 255, 0.9);
  585. }
  586. /* Nested */
  587. .ui.inverted.segment .segment {
  588. color: rgba(0, 0, 0, 0.87);
  589. }
  590. .ui.inverted.segment .inverted.segment {
  591. color: rgba(255, 255, 255, 0.9);
  592. }
  593. /* Attached */
  594. .ui.inverted.attached.segment {
  595. border-color: #555555;
  596. }
  597. /*-------------------
  598. Emphasis
  599. --------------------*/
  600. /* Secondary */
  601. .ui.secondary.segment {
  602. background: #F3F4F5;
  603. color: rgba(0, 0, 0, 0.6);
  604. }
  605. .ui.secondary.inverted.segment {
  606. background: #4c4f52 -webkit-linear-gradient(rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 100%);
  607. background: #4c4f52 linear-gradient(rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 100%);
  608. color: rgba(255, 255, 255, 0.8);
  609. }
  610. /* Tertiary */
  611. .ui.tertiary.segment {
  612. background: #DCDDDE;
  613. color: rgba(0, 0, 0, 0.6);
  614. }
  615. .ui.tertiary.inverted.segment {
  616. background: #717579 -webkit-linear-gradient(rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.35) 100%);
  617. background: #717579 linear-gradient(rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.35) 100%);
  618. color: rgba(255, 255, 255, 0.8);
  619. }
  620. /*-------------------
  621. Attached
  622. --------------------*/
  623. /* Middle */
  624. .ui.attached.segment {
  625. top: 0px;
  626. bottom: 0px;
  627. border-radius: 0px;
  628. margin: 0em -1px;
  629. width: calc(100% + 2px );
  630. max-width: calc(100% + 2px );
  631. box-shadow: none;
  632. border: 1px solid #D4D4D5;
  633. }
  634. .ui.attached + .ui.attached.segment:not(.top) {
  635. border-top: none;
  636. }
  637. /* Top */
  638. .ui[class*="top attached"].segment {
  639. bottom: 0px;
  640. margin-bottom: 0em;
  641. top: 0px;
  642. margin-top: 1rem;
  643. border-radius: 0.28571429rem 0.28571429rem 0em 0em;
  644. }
  645. .ui.segment[class*="top attached"]:first-child {
  646. margin-top: 0em;
  647. }
  648. /* Bottom */
  649. .ui.segment[class*="bottom attached"] {
  650. bottom: 0px;
  651. margin-top: 0em;
  652. top: 0px;
  653. margin-bottom: 1rem;
  654. box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15), none;
  655. border-radius: 0em 0em 0.28571429rem 0.28571429rem;
  656. }
  657. .ui.segment[class*="bottom attached"]:last-child {
  658. margin-bottom: 0em;
  659. }
  660. /*******************************
  661. Theme Overrides
  662. *******************************/
  663. /*******************************
  664. Site Overrides
  665. *******************************/