crowi.scss 6.7 KB

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