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.

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