crowi.scss 6.7 KB

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