crowi.scss 7.1 KB

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