crowi.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. // import crowi variable
  2. @import 'utilities';
  3. // import bootstrap
  4. $bootstrap-sass-asset-helper: true;
  5. @import "~bootstrap-sass/assets/stylesheets/bootstrap";
  6. // import toastr styles
  7. @import '~toastr/build/toastr';
  8. // crowi component
  9. @import 'admin';
  10. @import 'attachments';
  11. @import 'comment';
  12. @import 'comment_crowi-plus';
  13. @import 'delete';
  14. @import 'form';
  15. @import 'layout';
  16. @import 'layout_crowi-plus';
  17. @import 'page_list';
  18. @import 'page';
  19. @import 'page_crowi-plus';
  20. @import 'portal';
  21. @import 'search';
  22. @import 'shortcuts';
  23. @import 'user';
  24. @import 'user_crowi-plus';
  25. @import 'wiki';
  26. @import 'wiki_crowi-plus';
  27. ul {
  28. padding-left: 18px;
  29. }
  30. .meta {
  31. margin-top: 0;
  32. padding: 16px;
  33. color: #666;
  34. border-top: solid 1px #ccc;
  35. background: #f0f0f0;
  36. font-size: 0.95em;
  37. color: #888;
  38. .picture {
  39. width: 16px;
  40. height: 16px;
  41. }
  42. }
  43. .page-meta {
  44. margin-bottom: 0;
  45. }
  46. .help-block {
  47. font-size: .9em;
  48. }
  49. header nav ul img {
  50. vertical-align: middle;
  51. }
  52. footer, aside {
  53. h4:first-child, h3:first-child {
  54. margin-top: 0;
  55. }
  56. h4 {
  57. font-size: 1.1em;
  58. }
  59. }
  60. .form-element {
  61. margin-bottom: 1em;
  62. }
  63. footer {
  64. h4,
  65. h3 {
  66. margin-bottom: 0.5em;
  67. font-weight: normal;
  68. &:first-child {
  69. margin-top: 0;
  70. }
  71. }
  72. p {
  73. margin: 0.3em 0 0.5em 0;
  74. &:first-child {
  75. margin-top: 0;
  76. }
  77. }
  78. }
  79. .modal-backdrop {
  80. z-index: 1060;
  81. }
  82. .modal {
  83. z-index: 1061;
  84. p {
  85. font-size: 1em;
  86. }
  87. h3, h4 {
  88. font-size: 18px;
  89. margin: 0;
  90. }
  91. }
  92. .modal-body.alert {
  93. margin-bottom: 0;
  94. border-radius: 0;
  95. }
  96. .modal.create-page {
  97. @media (min-width: $screen-sm-min) { // {{{ more than tablet size
  98. .modal-dialog {
  99. width: 750px;
  100. }
  101. }
  102. .modal-body {
  103. h3, h4 {
  104. margin-bottom: 10px;
  105. }
  106. form {
  107. .page-name-addons {
  108. position: absolute;
  109. top: 7px;
  110. left: 27px;
  111. }
  112. .page-today-prefix {
  113. display: inline-block;
  114. }
  115. .page-today-input1 {
  116. width: 60px;
  117. padding-left: 2px;
  118. padding-right: 2px;
  119. display: inline-block;
  120. }
  121. .page-today-suffix {
  122. display: inline-block;
  123. }
  124. .page-today-input2 {
  125. // width: 100%;
  126. display: inline-block;
  127. }
  128. #page-name-inputter input {
  129. min-width: 300px; // Workaround to display placeholder.
  130. // cf https://github.com/ericgio/react-bootstrap-typeahead/issues/256
  131. }
  132. }
  133. }
  134. }
  135. .popular-page-high {
  136. color: #e80000;
  137. font-size: 1.1em;
  138. font-weight: bold;
  139. }
  140. .popular-page-mid {
  141. color: #e47800;
  142. font-weight: bold;
  143. }
  144. .popular-page-low {
  145. color: #ab7c7c;
  146. }
  147. // {{{ add badge variation
  148. .badge-default {
  149. @include label-variant($label-default-bg);
  150. }
  151. .badge-primary {
  152. @include label-variant($label-primary-bg);
  153. }
  154. .badge-success {
  155. @include label-variant($label-success-bg);
  156. }
  157. .badge-info {
  158. @include label-variant($label-info-bg);
  159. }
  160. .badge-warning {
  161. @include label-variant($label-warning-bg);
  162. }
  163. .badge-danger {
  164. @include label-variant($label-danger-bg);
  165. }
  166. // }}}
  167. .dropdown-menu {
  168. .dropdown-button {
  169. padding: 3px 20px;
  170. }
  171. }
  172. .notif {
  173. a {
  174. }
  175. .badge {
  176. position: absolute;
  177. top: 6px;
  178. right: 1px;
  179. padding: 3px 6px;
  180. font-size: 11px;
  181. font-weight: normal;
  182. }
  183. }
  184. .dropdown-menu {
  185. li {
  186. a {
  187. padding: 5px 20px;
  188. }
  189. }
  190. }
  191. .dropdown-disabled {
  192. cursor: not-allowed;
  193. }
  194. .edit-button.edit-button-disabled {
  195. cursor: not-allowed;
  196. }
  197. // user picture
  198. .picture {
  199. // 通常サイズ
  200. width: 24px;
  201. height: 24px;
  202. // size list
  203. &.picture-lg {
  204. width: 48px;
  205. height: 48px;
  206. }
  207. &.picture-sm {
  208. width: 16px;
  209. height: 16px;
  210. }
  211. &.picture-xs {
  212. width: 12px;
  213. height: 12px;
  214. }
  215. // design option
  216. &.picture-sq {
  217. border-radius: 2px;
  218. border: solid 1px #ccc;
  219. }
  220. &.picture-rounded {
  221. border-radius: 50%;
  222. box-shadow: 0 0 2px rgba(0,0,0,.3);
  223. }
  224. }
  225. .highlighted {
  226. color: #333;
  227. background-color: rgba(255,255,140,0.5);
  228. border-radius: 3px;
  229. }
  230. // adjust
  231. // this is for diff2html. hide page name from diff view
  232. .d2h-file-header {
  233. display: none;
  234. }
  235. // components
  236. .flip-container { // {{{
  237. perspective: 1000;
  238. .flipper {
  239. .front, .back {
  240. -webkit-backface-visibility: hidden;
  241. backface-visibility: hidden;
  242. transition: 0.4s;
  243. -webkit-transform-style: preserve-3d;
  244. transform-style: preserve-3d;
  245. }
  246. .front {
  247. z-index: 2;
  248. }
  249. .back {
  250. }
  251. .back,
  252. &.to-flip .front {
  253. -webkit-transform: rotateY(180deg);
  254. transform: rotateY(180deg);
  255. }
  256. &.to-flip .back {
  257. -webkit-transform: rotateY(0);
  258. transform: rotateY(0);
  259. }
  260. }
  261. }
  262. // buttons
  263. .btn-primary {
  264. }
  265. $btn-google-color: rgb(204,89,71);
  266. .btn-google {
  267. @include button-variant(lighten($btn-google-color, 50%), $btn-google-color, darken($btn-google-color, 20%));
  268. }
  269. input.searching {
  270. background: #fff url(/images/loading_s.gif) right no-repeat;
  271. }
  272. .search-list {
  273. padding: 0;
  274. li {
  275. list-style: none;
  276. }
  277. .list-link {
  278. padding-bottom: 5px;
  279. a {
  280. display: block;
  281. word-break: break-all;
  282. font-weight: bold;
  283. text-decoration: none;
  284. span {
  285. font-weight: normal;
  286. }
  287. &:hover {
  288. background: #f0f0f0;
  289. color: #666;
  290. }
  291. }
  292. .search-description {
  293. font-size: .8em;
  294. color: #999;
  295. }
  296. }
  297. .next-link {
  298. a {
  299. display: block;
  300. text-align: center;
  301. }
  302. }
  303. }
  304. // notification
  305. .fk-notif {
  306. display: none;
  307. bottom: 0;
  308. left: 0;
  309. width: 100%;
  310. position: fixed;
  311. z-index: 1029;
  312. padding: 10px;
  313. box-shadow: -1px 0 3px 0px #666;
  314. font-weight: bold;
  315. transition: all .3s;
  316. &.fk-notif-danger {
  317. background: #b94a48;
  318. color: #fff;
  319. a {
  320. color: #f5ecf4;
  321. text-decoration: underline;
  322. &:hover {
  323. text-decoration: none;
  324. }
  325. }
  326. }
  327. &.fk-notif-warning {
  328. background: #fcf8e3;
  329. color: #8a6d3b;
  330. }
  331. }
  332. .on-edit .fk-notif {
  333. bottom: 50px;
  334. z-index: 1061;
  335. }
  336. // external-services
  337. .crowi {
  338. .github-link {
  339. background: #e5f6f8;
  340. padding: 1px;
  341. border-radius: 3px;
  342. display: inline-block;
  343. border: solid 1px #ccc;
  344. color: #555;
  345. text-decoration: none;
  346. &:hover {
  347. background: #afdadf;
  348. }
  349. }
  350. }
  351. .fullscreen-layer {
  352. position: fixed;
  353. top: 0;
  354. left: 0;
  355. width: 100%;
  356. height: 0;
  357. background: rgba(0, 0, 0, .5);
  358. z-index: 9999;
  359. opacity: 0;
  360. -webkit-transition: opacity .3s ease-out;
  361. -moz-transition: opacity .3s ease-out;
  362. transition: opacity .3s ease-out;
  363. & > * {
  364. box-shadow: 0 0 20px rgba(0, 0, 0, .8);
  365. }
  366. }
  367. .overlay-on {
  368. .container-fluid,
  369. .crowi-header {
  370. -webkit-filter: blur(5px);
  371. -moz-filter: blur(5px);
  372. filter: blur(5px);
  373. }
  374. .fullscreen-layer {
  375. opacity: 1;
  376. height: 100%;
  377. }
  378. }
  379. #presentation-container {
  380. position: absolute;
  381. top: 5%;
  382. left: 5%;
  383. width: 90%;
  384. height: 90%;
  385. background: #000;
  386. iframe {
  387. width: 100%;
  388. height: 100%;
  389. border: 0;
  390. }
  391. }
  392. .cmd-key.mac {
  393. &:after {
  394. content: '⌘';
  395. }
  396. }
  397. .cmd-key.win {
  398. &:after {
  399. content: 'Ctrl';
  400. }
  401. }