crowi.scss 6.9 KB

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