crowi.scss 6.9 KB

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