crowi.scss 5.8 KB

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