crowi.scss 6.8 KB

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