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.

507 lines
12 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Comment
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. /*
  15. */
  16. /*******************************
  17. Folders
  18. *******************************/
  19. /* Path to theme packages */
  20. /* Path to site override folder */
  21. /*******************************
  22. Themes
  23. *******************************/
  24. /* To override a theme for an individual element
  25. specify theme name below
  26. Be sure to update the user folder name (see README)
  27. */
  28. /* Global */
  29. /* Elements */
  30. /* Collections */
  31. /* Modules */
  32. /* Views */
  33. /*******************************
  34. Import Directives
  35. *******************************/
  36. /*------------------
  37. Load Defaults
  38. -------------------*/
  39. /*******************************
  40. Site Settings
  41. *******************************/
  42. /*-------------------
  43. Paths
  44. --------------------*/
  45. /*-------------------
  46. Fonts
  47. --------------------*/
  48. /*-------------------
  49. Site Colors
  50. --------------------*/
  51. /*--- Colors ---*/
  52. /*--- Light Colors ---*/
  53. /*-------------------
  54. Page
  55. --------------------*/
  56. /*-------------------
  57. Background Colors
  58. --------------------*/
  59. /* Used for differentiating neutrals */
  60. /* Used for differentiating layers */
  61. /*-------------------
  62. Grid
  63. --------------------*/
  64. /*-------------------
  65. Breakpoints
  66. --------------------*/
  67. /*******************************
  68. Power-User
  69. *******************************/
  70. /*-------------------
  71. Icons
  72. --------------------*/
  73. /* Max Width of Icon */
  74. /*-------------------
  75. Easing
  76. --------------------*/
  77. /*--- Neutrals ---*/
  78. /*--- Colored Backgrounds ---*/
  79. /*--- Colored Text ---*/
  80. /*--- Colored Headers ---*/
  81. /*-------------------
  82. Emotive Colors
  83. --------------------*/
  84. /* Mood */
  85. /* Status */
  86. /*-------------------
  87. Neutral Text
  88. --------------------*/
  89. /*-------------------
  90. Brand Colors
  91. --------------------*/
  92. /*-------------------
  93. Borders
  94. --------------------*/
  95. /*-------------------
  96. Sizes
  97. --------------------*/
  98. /*-------------------
  99. Transitions
  100. --------------------*/
  101. /*-------------------
  102. Derived Values
  103. --------------------*/
  104. /* Makes sure padded grid can fit at 320px */
  105. /* Used to match floats with text */
  106. /* Positive / Negative Dupes */
  107. /* Header Colors */
  108. /* Responsive */
  109. /* Columns */
  110. /*******************************
  111. States
  112. *******************************/
  113. /*-------------------
  114. Disabled
  115. --------------------*/
  116. /*-------------------
  117. Hover
  118. --------------------*/
  119. /*--- Colors ---*/
  120. /*--- Emotive ---*/
  121. /*--- Neutrals ---*/
  122. /*-------------------
  123. Down (:active)
  124. --------------------*/
  125. /*--- Colors ---*/
  126. /*--- Emotive ---*/
  127. /*--- Neutrals ---*/
  128. /*-------------------
  129. Active
  130. --------------------*/
  131. /*--- Standard ---*/
  132. /*--- Emotive ---*/
  133. /*--- Neutrals ---*/
  134. /*******************************
  135. Comments
  136. *******************************/
  137. /*-------------------
  138. View
  139. --------------------*/
  140. /*-------------------
  141. Elements
  142. --------------------*/
  143. /* Comment */
  144. /* Nested Comment */
  145. /* Avatar */
  146. /* Content */
  147. /* Author */
  148. /* Metadata */
  149. /* Text */
  150. /* Actions */
  151. /* Reply */
  152. /*-------------------
  153. Variations
  154. --------------------*/
  155. /* Threaded */
  156. /* Minimal */
  157. /* Sizes */
  158. /*------------------
  159. Load Theme
  160. -------------------*/
  161. /*******************************
  162. Site Settings
  163. *******************************/
  164. /*-------------------
  165. Paths
  166. --------------------*/
  167. /*-------------------
  168. Fonts
  169. --------------------*/
  170. /*-------------------
  171. Site Colors
  172. --------------------*/
  173. /*--- Colors ---*/
  174. /*--- Light Colors ---*/
  175. /*-------------------
  176. Page
  177. --------------------*/
  178. /*-------------------
  179. Background Colors
  180. --------------------*/
  181. /* Used for differentiating neutrals */
  182. /* Used for differentiating layers */
  183. /*-------------------
  184. Grid
  185. --------------------*/
  186. /*-------------------
  187. Breakpoints
  188. --------------------*/
  189. /*******************************
  190. Power-User
  191. *******************************/
  192. /*-------------------
  193. Icons
  194. --------------------*/
  195. /* Max Width of Icon */
  196. /*-------------------
  197. Easing
  198. --------------------*/
  199. /*--- Neutrals ---*/
  200. /*--- Colored Backgrounds ---*/
  201. /*--- Colored Text ---*/
  202. /*--- Colored Headers ---*/
  203. /*-------------------
  204. Emotive Colors
  205. --------------------*/
  206. /* Mood */
  207. /* Status */
  208. /*-------------------
  209. Neutral Text
  210. --------------------*/
  211. /*-------------------
  212. Brand Colors
  213. --------------------*/
  214. /*-------------------
  215. Borders
  216. --------------------*/
  217. /*-------------------
  218. Sizes
  219. --------------------*/
  220. /*-------------------
  221. Transitions
  222. --------------------*/
  223. /*-------------------
  224. Derived Values
  225. --------------------*/
  226. /* Makes sure padded grid can fit at 320px */
  227. /* Used to match floats with text */
  228. /* Positive / Negative Dupes */
  229. /* Header Colors */
  230. /* Responsive */
  231. /* Columns */
  232. /*******************************
  233. States
  234. *******************************/
  235. /*-------------------
  236. Disabled
  237. --------------------*/
  238. /*-------------------
  239. Hover
  240. --------------------*/
  241. /*--- Colors ---*/
  242. /*--- Emotive ---*/
  243. /*--- Neutrals ---*/
  244. /*-------------------
  245. Down (:active)
  246. --------------------*/
  247. /*--- Colors ---*/
  248. /*--- Emotive ---*/
  249. /*--- Neutrals ---*/
  250. /*-------------------
  251. Active
  252. --------------------*/
  253. /*--- Standard ---*/
  254. /*--- Emotive ---*/
  255. /*--- Neutrals ---*/
  256. /*******************************
  257. Comments
  258. *******************************/
  259. /*-------------------
  260. View
  261. --------------------*/
  262. /*-------------------
  263. Elements
  264. --------------------*/
  265. /* Comment */
  266. /* Nested Comment */
  267. /* Avatar */
  268. /* Content */
  269. /* Author */
  270. /* Metadata */
  271. /* Text */
  272. /* Actions */
  273. /* Reply */
  274. /*-------------------
  275. Variations
  276. --------------------*/
  277. /* Threaded */
  278. /* Minimal */
  279. /* Sizes */
  280. /*------------------
  281. Load Site
  282. -------------------*/
  283. /*******************************
  284. User Global Variables
  285. *******************************/
  286. /*******************************
  287. User Variable Overrides
  288. *******************************/
  289. /*------------------
  290. Override Loader
  291. -------------------*/
  292. /*******************************
  293. Standard
  294. *******************************/
  295. /*--------------
  296. Comments
  297. ---------------*/
  298. .ui.comments {
  299. margin: 1.5em 0em;
  300. max-width: 650px;
  301. }
  302. .ui.comments:first-child {
  303. margin-top: 0em;
  304. }
  305. .ui.comments:last-child {
  306. margin-bottom: 0em;
  307. }
  308. /*--------------
  309. Comment
  310. ---------------*/
  311. .ui.comments .comment {
  312. position: relative;
  313. background: none;
  314. margin: 0.5em 0em 0em;
  315. padding: 0.5em 0em 0em;
  316. border: none;
  317. border-top: none;
  318. line-height: 1.2;
  319. }
  320. .ui.comments .comment:first-child {
  321. margin-top: 0em;
  322. padding-top: 0em;
  323. }
  324. /*--------------------
  325. Nested Comments
  326. ---------------------*/
  327. .ui.comments .comment .comments {
  328. margin: 0em 0em 0.5em 0.5em;
  329. padding: 1em 0em 1em 1em;
  330. }
  331. .ui.comments .comment .comments:before {
  332. position: absolute;
  333. top: 0px;
  334. left: 0px;
  335. }
  336. .ui.comments .comment .comments .comment {
  337. border: none;
  338. border-top: none;
  339. background: none;
  340. }
  341. /*--------------
  342. Avatar
  343. ---------------*/
  344. .ui.comments .comment .avatar {
  345. display: block;
  346. width: 2.5em;
  347. height: auto;
  348. float: left;
  349. margin: 0.2em 0em 0em;
  350. }
  351. .ui.comments .comment img.avatar,
  352. .ui.comments .comment .avatar img {
  353. display: block;
  354. margin: 0em auto;
  355. width: 100%;
  356. height: 100%;
  357. border-radius: 0.25rem;
  358. }
  359. /*--------------
  360. Content
  361. ---------------*/
  362. .ui.comments .comment > .content {
  363. display: block;
  364. }
  365. /* If there is an avatar move content over */
  366. .ui.comments .comment > .avatar ~ .content {
  367. margin-left: 3.5em;
  368. }
  369. /*--------------
  370. Author
  371. ---------------*/
  372. .ui.comments .comment .author {
  373. font-size: 1em;
  374. color: rgba(0, 0, 0, 0.8);
  375. font-weight: bold;
  376. }
  377. .ui.comments .comment a.author {
  378. cursor: pointer;
  379. }
  380. .ui.comments .comment a.author:hover {
  381. color: #00b2f3;
  382. }
  383. /*--------------
  384. Metadata
  385. ---------------*/
  386. .ui.comments .comment .metadata {
  387. display: inline-block;
  388. margin-left: 0.5em;
  389. color: rgba(0, 0, 0, 0.4);
  390. font-size: 0.875em;
  391. }
  392. .ui.comments .comment .metadata > * {
  393. display: inline-block;
  394. margin: 0em 0.5em 0em 0em;
  395. }
  396. .ui.comments .comment .metadata > :last-child {
  397. margin-right: 0em;
  398. }
  399. /*--------------------
  400. Comment Text
  401. ---------------------*/
  402. .ui.comments .comment .text {
  403. margin: 0.25em 0em 0.5em;
  404. font-size: 1em;
  405. word-wrap: break-word;
  406. color: rgba(0, 0, 0, 0.8);
  407. line-height: 1.3;
  408. }
  409. /*--------------------
  410. User Actions
  411. ---------------------*/
  412. .ui.comments .comment .actions {
  413. font-size: 0.875em;
  414. }
  415. .ui.comments .comment .actions a {
  416. cursor: pointer;
  417. display: inline-block;
  418. margin: 0em 0.75em 0em 0em;
  419. color: rgba(0, 0, 0, 0.4);
  420. }
  421. .ui.comments .comment .actions a:last-child {
  422. margin-right: 0em;
  423. }
  424. .ui.comments .comment .actions a.active,
  425. .ui.comments .comment .actions a:hover {
  426. color: rgba(0, 0, 0, 0.8);
  427. }
  428. /*--------------------
  429. Reply Form
  430. ---------------------*/
  431. .ui.comments > .reply.form {
  432. margin-top: 1em;
  433. }
  434. .ui.comments .comment .reply.form {
  435. width: 100%;
  436. margin-top: 1em;
  437. }
  438. .ui.comments .reply.form textarea {
  439. font-size: 1em;
  440. height: 12em;
  441. }
  442. /*******************************
  443. State
  444. *******************************/
  445. .ui.collapsed.comments,
  446. .ui.comments .collapsed.comments,
  447. .ui.comments .collapsed.comment {
  448. display: none;
  449. }
  450. /*******************************
  451. Variations
  452. *******************************/
  453. /*--------------------
  454. Threaded
  455. ---------------------*/
  456. .ui.threaded.comments .comment .comments {
  457. margin: -1.5em 0 -1em 1.25em;
  458. padding: 3em 0em 2em 2.25em;
  459. box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.15);
  460. }
  461. /*--------------------
  462. Minimal
  463. ---------------------*/
  464. .ui.minimal.comments .comment .actions {
  465. opacity: 0;
  466. position: absolute;
  467. top: 0px;
  468. right: 0px;
  469. left: auto;
  470. -webkit-transition: opacity 0.2s ease;
  471. transition: opacity 0.2s ease;
  472. -webkit-transition-delay: 0.1s;
  473. transition-delay: 0.1s;
  474. }
  475. .ui.minimal.comments .comment > .content:hover > .actions {
  476. opacity: 1;
  477. }
  478. /*--------------------
  479. Sizes
  480. ---------------------*/
  481. .ui.small.comments {
  482. font-size: 0.9em;
  483. }
  484. .ui.comments {
  485. font-size: 1em;
  486. }
  487. .ui.large.comments {
  488. font-size: 1.1em;
  489. }
  490. .ui.huge.comments {
  491. font-size: 1.2em;
  492. }
  493. /*******************************
  494. Overrides
  495. *******************************/
  496. /*******************************
  497. User Variable Overrides
  498. *******************************/