crowi.scss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  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. .create-page-under-tree-label code {
  133. font-family: $font-family-monospace-not-strictly;
  134. }
  135. }
  136. }
  137. }
  138. .popular-page-high {
  139. color: #e80000;
  140. font-size: 1.1em;
  141. font-weight: bold;
  142. }
  143. .popular-page-mid {
  144. color: #e47800;
  145. font-weight: bold;
  146. }
  147. .popular-page-low {
  148. color: #ab7c7c;
  149. }
  150. // {{{ add badge variation
  151. .badge-default {
  152. @include label-variant($label-default-bg);
  153. }
  154. .badge-primary {
  155. @include label-variant($label-primary-bg);
  156. }
  157. .badge-success {
  158. @include label-variant($label-success-bg);
  159. }
  160. .badge-info {
  161. @include label-variant($label-info-bg);
  162. }
  163. .badge-warning {
  164. @include label-variant($label-warning-bg);
  165. }
  166. .badge-danger {
  167. @include label-variant($label-danger-bg);
  168. }
  169. // }}}
  170. .dropdown-menu {
  171. .dropdown-button {
  172. padding: 3px 20px;
  173. }
  174. }
  175. .notif {
  176. a {
  177. }
  178. .badge {
  179. position: absolute;
  180. top: 6px;
  181. right: 1px;
  182. padding: 3px 6px;
  183. font-size: 11px;
  184. font-weight: normal;
  185. }
  186. }
  187. .dropdown-menu {
  188. li {
  189. a {
  190. padding: 5px 20px;
  191. }
  192. }
  193. }
  194. .dropdown-disabled {
  195. cursor: not-allowed;
  196. }
  197. .edit-button.edit-button-disabled {
  198. cursor: not-allowed;
  199. }
  200. // user picture
  201. .picture {
  202. // 通常サイズ
  203. width: 24px;
  204. height: 24px;
  205. // size list
  206. &.picture-lg {
  207. width: 48px;
  208. height: 48px;
  209. }
  210. &.picture-sm {
  211. width: 16px;
  212. height: 16px;
  213. }
  214. &.picture-xs {
  215. width: 12px;
  216. height: 12px;
  217. }
  218. // design option
  219. &.picture-sq {
  220. border-radius: 2px;
  221. border: solid 1px #ccc;
  222. }
  223. &.picture-rounded {
  224. border-radius: 50%;
  225. box-shadow: 0 0 2px rgba(0,0,0,.3);
  226. }
  227. }
  228. .highlighted {
  229. color: #333;
  230. background-color: rgba(255,255,140,0.5);
  231. border-radius: 3px;
  232. }
  233. // adjust
  234. // this is for diff2html. hide page name from diff view
  235. .d2h-file-header {
  236. display: none;
  237. }
  238. // components
  239. .flip-container { // {{{
  240. perspective: 1000;
  241. .flipper {
  242. .front, .back {
  243. -webkit-backface-visibility: hidden;
  244. backface-visibility: hidden;
  245. transition: 0.4s;
  246. -webkit-transform-style: preserve-3d;
  247. transform-style: preserve-3d;
  248. }
  249. .front {
  250. z-index: 2;
  251. }
  252. .back {
  253. }
  254. .back,
  255. &.to-flip .front {
  256. -webkit-transform: rotateY(180deg);
  257. transform: rotateY(180deg);
  258. }
  259. &.to-flip .back {
  260. -webkit-transform: rotateY(0);
  261. transform: rotateY(0);
  262. }
  263. }
  264. }
  265. // buttons
  266. .btn-primary {
  267. }
  268. $btn-google-color: rgb(204,89,71);
  269. .btn-google {
  270. @include button-variant(lighten($btn-google-color, 50%), $btn-google-color, darken($btn-google-color, 20%));
  271. }
  272. input.searching {
  273. background: #fff url(/images/loading_s.gif) right no-repeat;
  274. }
  275. .search-list {
  276. padding: 0;
  277. li {
  278. list-style: none;
  279. }
  280. .list-link {
  281. padding-bottom: 5px;
  282. a {
  283. display: block;
  284. word-break: break-all;
  285. font-weight: bold;
  286. text-decoration: none;
  287. span {
  288. font-weight: normal;
  289. }
  290. &:hover {
  291. background: #f0f0f0;
  292. color: #666;
  293. }
  294. }
  295. .search-description {
  296. font-size: .8em;
  297. color: #999;
  298. }
  299. }
  300. .next-link {
  301. a {
  302. display: block;
  303. text-align: center;
  304. }
  305. }
  306. }
  307. // notification
  308. .fk-notif {
  309. display: none;
  310. bottom: 0;
  311. left: 0;
  312. width: 100%;
  313. position: fixed;
  314. z-index: 1029;
  315. padding: 10px;
  316. box-shadow: -1px 0 3px 0px #666;
  317. font-weight: bold;
  318. transition: all .3s;
  319. &.fk-notif-danger {
  320. background: #b94a48;
  321. color: #fff;
  322. a {
  323. color: #f5ecf4;
  324. text-decoration: underline;
  325. &:hover {
  326. text-decoration: none;
  327. }
  328. }
  329. }
  330. &.fk-notif-warning {
  331. background: #fcf8e3;
  332. color: #8a6d3b;
  333. }
  334. }
  335. .on-edit .fk-notif {
  336. bottom: 50px;
  337. z-index: 1061;
  338. }
  339. // external-services
  340. .crowi {
  341. .github-link {
  342. background: #e5f6f8;
  343. padding: 1px;
  344. border-radius: 3px;
  345. display: inline-block;
  346. border: solid 1px #ccc;
  347. color: #555;
  348. text-decoration: none;
  349. &:hover {
  350. background: #afdadf;
  351. }
  352. }
  353. }
  354. .fullscreen-layer {
  355. position: fixed;
  356. top: 0;
  357. left: 0;
  358. width: 100%;
  359. height: 0;
  360. background: rgba(0, 0, 0, .5);
  361. z-index: 9999;
  362. opacity: 0;
  363. -webkit-transition: opacity .3s ease-out;
  364. -moz-transition: opacity .3s ease-out;
  365. transition: opacity .3s ease-out;
  366. & > * {
  367. box-shadow: 0 0 20px rgba(0, 0, 0, .8);
  368. }
  369. }
  370. .overlay-on {
  371. .container-fluid,
  372. .crowi-header {
  373. -webkit-filter: blur(5px);
  374. -moz-filter: blur(5px);
  375. filter: blur(5px);
  376. }
  377. .fullscreen-layer {
  378. opacity: 1;
  379. height: 100%;
  380. }
  381. }
  382. #presentation-container {
  383. position: absolute;
  384. top: 5%;
  385. left: 5%;
  386. width: 90%;
  387. height: 90%;
  388. background: #000;
  389. iframe {
  390. width: 100%;
  391. height: 100%;
  392. border: 0;
  393. }
  394. }
  395. .cmd-key.mac {
  396. &:after {
  397. content: '⌘';
  398. }
  399. }
  400. .cmd-key.win {
  401. &:after {
  402. content: 'Ctrl';
  403. }
  404. }