crowi.scss 7.1 KB

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