crowi.scss 6.9 KB

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