responsive.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. /* media queries responsive */
  2. /* Typical screen resolutions (only width matters) are:
  3. 320*
  4. 480*
  5. 640*
  6. 720* (samsung S3)
  7. 800*
  8. 1024*
  9. 1152
  10. 1280*
  11. 1360
  12. 1400
  13. 1440*
  14. 1600*
  15. 1680
  16. 1920*
  17. +more*
  18. The more frequent ones have been marked with *
  19. */
  20. /* Phone */
  21. @media (max-width: 320px) {
  22. header #header_center, header #header_right, header #header_left {
  23. display: none;
  24. }
  25. .navbar {
  26. margin-top: 0em;
  27. }
  28. #main_content .span3 #login_block {
  29. width: 160px;
  30. float: left;
  31. }
  32. #main_content .span3 #help_block {
  33. width: 60px;
  34. float: right;
  35. margin-left: 10px;
  36. margin-right: 10px;
  37. }
  38. /* No view as link*/
  39. #view_as_link {
  40. display: none;
  41. }
  42. /* Smaller brand */
  43. .navbar .brand {
  44. font-size: 14px;
  45. text-shadow: 0px;
  46. }
  47. /* In order to avoid clicking in the main title instead of the expand button */
  48. .subnav .navbar-inner .in {
  49. margin-top: 45px;
  50. }
  51. #main_content .span3 #login_block {
  52. width: 180px;
  53. }
  54. #main_content .span3 #help_block {
  55. width: 100px;
  56. }
  57. /* only for the course tools */
  58. #course_tools .row > [class*="span"], #course_tools .row-fluid > [class*="span"] {
  59. float: left;
  60. margin-left: 20px;
  61. }
  62. /* Course- home - Show 2 icons instead of one */
  63. .course-tool {
  64. float: left;
  65. height: 110px;
  66. width: 110px;
  67. }
  68. .course-tool h4 {
  69. font-size: 15px;
  70. }
  71. /* in admin, reduce block height but increase width (from 47%) as there
  72. will be only one for the whole width */
  73. #settings .span6 {
  74. min-height: none;
  75. width: 95%;
  76. }
  77. .section-mycourses .menu-column, .section-mycampus .menu-column {
  78. width: 95%;
  79. }
  80. .section-mycampus .menu-column #login_block {
  81. width: 95%;
  82. }
  83. .section-mycourses .menu-column #user_image_block,
  84. .section-mycourses .menu-column #profile_block,
  85. .section-mycourses .menu-column #skill_block,
  86. .section-mycourses .menu-column #search_block,
  87. .section-mycourses .menu-column #classes_block,
  88. .section-mycourses .menu-column #reservation_block,
  89. .section-mycourses .menu-column #skill_block,
  90. .section-mycampus .menu-column #help_block,
  91. .section-mycourses .menu-column #notice_block {
  92. display: none;
  93. }
  94. .section-mycampus #homepage {
  95. width: 260px;
  96. }
  97. .section-mycampus #hot_courses {
  98. width: 260px;
  99. }
  100. .section-mycourses #top_main_content {
  101. margin-right: 15px;
  102. }
  103. .section-mycourses #main_content {
  104. margin-right: 15px;
  105. width: 260px;
  106. }
  107. .section-mycourses .course-box .course-box-actions {
  108. display: none;
  109. }
  110. .section-mycampus .hot-course-box, .section-mycourses .course-box {
  111. width: 95%;
  112. }
  113. footer {
  114. margin-top: 0px;
  115. }
  116. }
  117. @media (min-width: 321px) and (max-width: 480px) {
  118. header #header_center, header #header_right, header #header_left {
  119. display: none;
  120. }
  121. .navbar {
  122. margin-top: 0em;
  123. }
  124. .subnav .navbar-inner .in {
  125. margin-top: 45px;
  126. }
  127. /* No chat in mobiles */
  128. #chatmain {
  129. display: none;
  130. }
  131. /* No topbar */
  132. #topbar {
  133. display: none;
  134. }
  135. /* No view as link*/
  136. #view_as_link {
  137. display: none;
  138. }
  139. /* Brand fix */
  140. .navbar .brand {
  141. font-size: 14px;
  142. text-shadow: 0px;
  143. }
  144. .subnav .dropdown-toggle {
  145. display: none;
  146. }
  147. .subnav .nav > li > a, .navbar .dropdown-menu a {
  148. color: white;
  149. }
  150. /* Footer fixes */
  151. footer {
  152. border-top: 1px solid #CCCCCC;
  153. background-color: #fff;
  154. background-image: none;
  155. color: #666;
  156. }
  157. footer #footer_left a, footer #footer_center a, footer #footer_right a {
  158. color: #999;
  159. }
  160. #footer_left, #footer_right #admin_name, #footer_right #software_name {
  161. text-align: center !important;
  162. }
  163. footer .container .row {
  164. padding-top: 15px;
  165. }
  166. /* No resize font */
  167. .resize_font {
  168. display: none;
  169. }
  170. h3 {
  171. font-size: 18px;
  172. }
  173. h4 {
  174. font-size: 16px;
  175. }
  176. /* No notifications */
  177. .notification-panel {
  178. display: none;
  179. }
  180. /* only for the course tools */
  181. #course_tools .row > [class*="span"], #course_tools .row-fluid > [class*="span"] {
  182. float: left;
  183. margin-left: 10px;
  184. }
  185. /* Course- home - Show 2 icons instead of one */
  186. .course-tool {
  187. float: left;
  188. height: 150px;
  189. width: 160px;
  190. }
  191. .course-tool h4 {
  192. font-size: 14px;
  193. }
  194. .subbav .nav > li > a:hover,
  195. .subbav .dropdown-menu a:hover {
  196. background-color: #555;
  197. }
  198. #main_content .span3 #login_block {
  199. width: 280px;
  200. float: left;
  201. }
  202. #main_content .span3 #help_block {
  203. width: 100px;
  204. float: right;
  205. margin-left: 10px;
  206. margin-right: 10px;
  207. }
  208. /* in admin, reduce block height but increase width (from 47%) as there
  209. will be only one for the whole width */
  210. #settings .span6 {
  211. min-height: none;
  212. width: 95%;
  213. }
  214. .section-mycourses .menu-column, .section-mycampus .menu-column {
  215. width: 95%;
  216. }
  217. .section-mycampus .menu-column #login_block {
  218. width: 95%;
  219. }
  220. .section-mycourses .menu-column #user_image_block,
  221. .section-mycourses .menu-column #profile_block,
  222. .section-mycourses .menu-column #skill_block,
  223. .section-mycourses .menu-column #search_block,
  224. .section-mycourses .menu-column #classes_block,
  225. .section-mycourses .menu-column #reservation_block,
  226. .section-mycourses .menu-column #skill_block,
  227. .section-mycampus .menu-column #help_block,
  228. .section-mycourses .menu-column #notice_block {
  229. display: none;
  230. }
  231. .section-mycampus #homepage {
  232. width: 400px;
  233. }
  234. .section-mycampus #hot_courses {
  235. width: 400px;
  236. }
  237. .section-mycourses #top_main_content {
  238. margin-right: 15px;
  239. }
  240. .section-mycourses #main_content {
  241. margin-right: 15px;
  242. width: 400px;
  243. }
  244. .section-mycourses .course-box .course-box-actions {
  245. display: none;
  246. }
  247. .section-mycampus .hot-course-box, .section-mycourses .course-box {
  248. width: 95%;
  249. }
  250. footer {
  251. margin-top: 0px;
  252. }
  253. }
  254. @media (min-width: 481px) and (max-width: 800px) {
  255. /* No topbar */
  256. #topbar {
  257. display: none;
  258. }
  259. /* only for the course tools */
  260. #course_tools .row > [class*="span"], #course_tools .row-fluid > [class*="span"] {
  261. float: left;
  262. }
  263. .course-tool {
  264. width: 210px;
  265. }
  266. .course-tool h4 {
  267. font-size: 14px;
  268. }
  269. .subnav .dropdown-toggle {
  270. display: none;
  271. }
  272. header #header_center, header #header_right {
  273. display: none;
  274. }
  275. #footer_right #admin_name, #footer_right #software_name {
  276. text-align: center !important;
  277. }
  278. .subnav .nav > li > a, .navbar .dropdown-menu a {
  279. color: white;
  280. }
  281. footer .container .row {
  282. padding-top: 15px;
  283. }
  284. .notification-panel {
  285. display: none;
  286. }
  287. /* Remove any padding from the body */
  288. body {
  289. padding-top: 0;
  290. }
  291. #topbar_push {
  292. height: 0px;
  293. }
  294. /* Subnav */
  295. .subnav {
  296. border: 1px solid #fff;
  297. position: static;
  298. top: auto;
  299. z-index: auto;
  300. width: 100%;
  301. height: auto;
  302. -webkit-box-shadow: none;
  303. -moz-box-shadow: none;
  304. box-shadow: none;
  305. }
  306. .subnav .nav > li {
  307. float: none;
  308. }
  309. .subnav .nav > li > a {
  310. border: 0;
  311. }
  312. .subnav .nav > li + li > a {
  313. border-top: 1px solid #e5e5e5;
  314. }
  315. .subnav .nav > li:first-child > a,
  316. .subnav .nav > li:first-child > a:hover {
  317. -webkit-border-radius: 4px 4px 0 0;
  318. -moz-border-radius: 4px 4px 0 0;
  319. border-radius: 4px 4px 0 0;
  320. }
  321. .subnav .navbar-inner li a:hover {
  322. background-color: #666;
  323. color: #fff;
  324. }
  325. /* .new_actions */
  326. .new_actions {
  327. border: 1px solid #fff;
  328. position: static;
  329. top: auto;
  330. z-index: auto;
  331. width: 100%;
  332. height: auto;
  333. -webkit-box-shadow: none;
  334. -moz-box-shadow: none;
  335. box-shadow: none;
  336. text-align: center;
  337. }
  338. .new_actions .nav > li {
  339. float: none;
  340. }
  341. .new_actions .nav > li > a {
  342. border: 0;
  343. }
  344. .new_actions .nav > li + li > a {
  345. border-top: 1px solid #e5e5e5;
  346. }
  347. .new_actions .nav > li:first-child > a,
  348. .new_actions .nav > li:first-child > a:hover {
  349. -webkit-border-radius: 4px 4px 0 0;
  350. -moz-border-radius: 4px 4px 0 0;
  351. border-radius: 4px 4px 0 0;
  352. }
  353. #section-social .row > [class*="span"], #section-social .row-fluid > [class*="span"] {
  354. float: left;
  355. }
  356. /* Some fixes for w~720px */
  357. .section-mycampus #top_main_content .content-column {
  358. float: none;
  359. }
  360. .section-mycampus #homepage {
  361. float: left;
  362. width: 450px;
  363. }
  364. .section-mycampus #hot_courses {
  365. float: left;
  366. width: 660px;
  367. }
  368. .section-mycampus #hot_courses .page-header {
  369. width: 650px;
  370. }
  371. .section-mycourses .course-box .course-box-actions {
  372. display: none;
  373. }
  374. .section-mycampus .hot-course-box, .section-mycourses .course-box {
  375. width: 660px;
  376. }
  377. /* Footer fixes */
  378. footer {
  379. border-top: 1px solid #CCCCCC;
  380. background-color: #fff;
  381. background-image: none;
  382. color: #666;
  383. }
  384. footer #footer_left a, footer #footer_center a, footer #footer_right a {
  385. color: #999;
  386. }
  387. #footer_left, #footer_right #admin_name, #footer_right #software_name {
  388. text-align: center !important;
  389. }
  390. footer .container .row {
  391. padding-top: 15px;
  392. }
  393. }
  394. @media (min-width: 800px) {
  395. .advmultiselect [class*="span4"] {
  396. margin-left: 10px;
  397. }
  398. }
  399. @media (min-width: 801px) and (max-width: 979px) {
  400. /* No topbar */
  401. #topbar {
  402. display: none;
  403. }
  404. /* fixes tabs */
  405. .subnav .nav-tabs > li > a, .subnav .nav-pills > li > a {
  406. padding-left: 6px;
  407. padding-right: 6px;
  408. }
  409. .subnav .dropdown-toggle {
  410. display: none;
  411. }
  412. .subnav .nav > li > a, .navbar .dropdown-menu a {
  413. color: #ccc;
  414. }
  415. .subnav .nav > li > a:hover,
  416. .subnav .dropdown-menu a:hover {
  417. }
  418. .course-tool {
  419. width: 220px;
  420. }
  421. }
  422. @media (max-width: 979px) {
  423. /* Remove any padding from the body */
  424. body {
  425. padding-top: 0;
  426. }
  427. #topbar_push {
  428. height: 0px;
  429. }
  430. .section-social .span9 {
  431. width: 530px;
  432. }
  433. }
  434. @media (min-width: 980px) and (max-width: 1200px) {
  435. /* fixes tabs */
  436. .subnav .nav-tabs > li > a, .subnav .nav-pills > li > a {
  437. padding-left: 6px;
  438. padding-right: 6px;
  439. }
  440. /* only for the course tools */
  441. #course_tools .row > [class*="span"], #course_tools .row-fluid > [class*="span"] {
  442. float: left;
  443. }
  444. .course-tool {
  445. width: 280px;
  446. }
  447. .section-social .span9, .section-mycourses .span9 {
  448. width: 680px;
  449. }
  450. .section-social .social-menu {
  451. width: 200px;
  452. }
  453. .section-social .span5 {
  454. width: 350px;
  455. }
  456. }
  457. /* LARGE DESKTOP SCREENS */
  458. @media (min-width: 1201px) {
  459. #top_main_content .span12 {
  460. /* width: 98%; */
  461. }
  462. /* only for the course tools */
  463. #course_tools .row > [class*="span"], #course_tools .row-fluid > [class*="span"] {
  464. float: left;
  465. }
  466. .course-tool {
  467. width: 260px;
  468. }
  469. .btn-invitations {
  470. margin-left: 120px;
  471. }
  472. .btn-msg {
  473. padding-left: 27px;
  474. }
  475. .btn-inv {
  476. padding-left: 27px;
  477. padding-right:5px;
  478. }
  479. .btn-inv-off {
  480. padding-left: 27px;
  481. padding-right:5px;
  482. }
  483. }