Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.91 KB | None | 0 0
  1. @import 'https://fonts.googleapis.com/css?family=Roboto:400,300,500,700,900,300italic,400italic,500italic,700italic,900italic';
  2. html,
  3. body {
  4. height: 100%;
  5. direction: ltr;
  6. }
  7.  
  8. body {
  9. font-family: Calibri;
  10. margin: 0;
  11. padding: 0;
  12. font-size: 100%
  13. }
  14.  
  15. div.main {
  16. width: 100%;
  17. max-width: 1920px;
  18. background: #9932CC; /* לבן #FFF */
  19. margin: 0 auto;
  20. position: relative;
  21. }
  22.  
  23. p.clear{
  24. height:0;
  25. clear:both;
  26. }
  27.  
  28.  
  29. div.row-full{
  30. width:100%;
  31. margin:0px;
  32. }
  33.  
  34. div.column-1{
  35. width:25%;
  36. display:inline-block;
  37. }
  38.  
  39. div.column-2{
  40. width:75%;
  41. float:right;
  42. }
  43.  
  44. div.row-up-1{ /* בתוכו מכיל את הקוביות */
  45. width:100%;
  46. overflow:hidden;
  47. display: block;
  48. height: auto;
  49. position: relative;
  50. }
  51.  
  52. div.black {
  53. width: 70%;
  54. height: 565px;
  55. background: #000;
  56. float:left;
  57. padding:0 px;
  58. margin-left: 50px;
  59. }
  60.  
  61. div.red {
  62. width: 22%;
  63. height: 270px;
  64. background: #F80606;
  65. float:left;
  66. margin: 0px;
  67. }
  68.  
  69. div.medium-blue {
  70. width: 24%;
  71. height: 270px;
  72. background: #0D62B3; /* כחול בינוני */
  73. float:left;
  74. }
  75.  
  76. div.dark-blue {
  77. width: 24%;
  78. height: 270px;
  79. background: #1A247B; /* כחול כהה */
  80. float:left;
  81. margin: 0 0 0 55px;
  82. }
  83.  
  84. div.red-corner {
  85. width: 22%;
  86. height: 270px;
  87. background: #F80606;
  88. float:left;
  89. }
  90.  
  91. div.light-blue {
  92. width: 22%;
  93. height: 270px;
  94. background: #63C2C8; /* תכלת */
  95. float:left;
  96. display: block;
  97. margin: 35px;
  98. }
  99.  
  100. div.white {
  101. width: 70%;
  102. height: 300px;
  103. background: #FFF;
  104. float:left;
  105. color: #000;
  106. font-size:450%;
  107. font-weight: 900;
  108. text-align:center;
  109. vertical-align: middle;
  110. line-height: 500%;
  111. padding-top:50px;
  112. }
  113.  
  114.  
  115. div.resize-blocks {
  116. width: 40% !important; /* הכוונה 40% מרוחב הדוב בו נמצאת הקובייה */
  117. height: 270px !important;
  118. }‏
  119.  
  120. /*
  121.  
  122. div.Parent {
  123. position: relative;
  124. width: 100%;
  125. height: 100vh;
  126. display: block;
  127. -webkit-box-sizing: border-box;
  128. -moz-box-sizing: border-box;
  129. box-sizing: border-box;
  130. overflow:hidden;
  131. }
  132.  
  133. div.Parent .Child {
  134. position: relative;
  135. width: 241px;
  136. height: 270px;
  137. display: inline-block;
  138. float:left;
  139. -webkit-box-sizing: border-box;
  140. -moz-box-sizing: border-box;
  141. box-sizing: border-box;
  142. background: #000;} /* ברירת מחדל */
  143.  
  144.  
  145.  
  146. /* ככל שיש יותר ילדים, כך כל ילד משפיע על ה"אח" שלו ומזיז אותו יותר הצידה */
  147. /*
  148. .Parent .Child:nth-child(1) ~ :nth-child(2) {
  149. margin-left: calc(300px * -.03);
  150. }
  151.  
  152. .Parent .Child:nth-child(2) ~ :nth-child(3) {
  153. margin-left: calc(300px * .05);
  154. }
  155.  
  156. .Parent .Child:nth-child(3) ~ :nth-child(4) {
  157. margin-left: calc(300px * -.03);
  158. }
  159.  
  160. .Parent .Child:nth-child(4) ~ :nth-child(5) {
  161. margin-left: calc(300px * .05);
  162. }
  163.  
  164.  
  165.  
  166. @media screen and (max-width: 500px) {
  167. .Parent .Child {
  168. width: 53px !important;
  169. height: 53px !important;
  170. }
  171. */
  172.  
  173. /* וכאן להקטין את 163 שהגדרנו קודם למידה החדשה - 53 */
  174. /*
  175. .Parent .Child:nth-child(1) ~ :nth-child(2) {
  176. margin-left: calc(53px * -.08 );
  177. }
  178.  
  179. .Parent .Child:nth-child(2) ~ :nth-child(3) {
  180. margin-left: calc(53px * .05); /* הבא יהיה כפול 3, וככה הלאה */
  181. /* }
  182. }
  183.  
  184. */
  185.  
  186.  
  187.  
  188.  
  189. div.row-up-2{
  190. width:100%;
  191. overflow:hidden;
  192. margin-bottom:30px;
  193. display:block;
  194. }
  195.  
  196. div.row-down-2{
  197. display:block;
  198. }
  199. div.column-left {
  200. width:37%;
  201. height:650px;
  202. display:inline;
  203. float:left;
  204. margin-left:50px;
  205. }
  206.  
  207. div.column-middle{
  208. width:37%;
  209. height:650px;
  210. display:inline;
  211. float:left;
  212. }
  213.  
  214. div.column-right{
  215. width:21%;
  216. height:650px;
  217. display: block;
  218. overflow:hidden;
  219. float:right;
  220. margin-right:0px;
  221.  
  222. }
  223.  
  224. div.row-3{
  225. height:600;
  226. }
  227.  
  228. /*
  229.  
  230. .group-under-black {
  231. margin-top:25px;
  232. display:block;
  233. width:auto;
  234. }
  235.  
  236. .div-table {
  237. display: table;
  238. table-layout: fixed;
  239. width: 100%;
  240. }
  241.  
  242. .div-table .table-row {
  243. display: table-row;
  244. width: 100%;
  245. height: auto;
  246. position: relative;
  247. }
  248.  
  249. .div-table .table-cell {
  250. display: table-cell;
  251. width: auto;
  252. height: auto;
  253. vertical-align: middle;
  254. border: 1px solid;
  255. }
  256.  
  257. */
  258.  
  259. /*Menu */
  260.  
  261.  
  262.  
  263. div.topnav {
  264. overflow: hidden;
  265. max-width:1920px;
  266. height:80px;
  267. background-color: #DDDDDF;
  268. margin: 0 auto 10px;
  269. color: #000;
  270. }
  271.  
  272.  
  273. div.menu{
  274. text-align: center;
  275. padding: 0px;
  276. display: inline-block;
  277. border-right: 1px solid #8c8b8b;
  278. margin-left: 0px;
  279. margin-top: 12px;
  280. }
  281.  
  282. div.topnav a {
  283. float: left;
  284. display: block;
  285. color: #000;
  286. text-align: center;
  287. padding: 10px 20px;
  288. text-decoration: none;
  289. font-size: 20px;
  290. vertical-align:middle;
  291. }
  292.  
  293. div.topnav a:hover {
  294. color: #1C19D3;
  295. }
  296.  
  297.  
  298. div.topnav a.active {
  299. background-color: #DDDDDF;
  300. color: #000;
  301. }
  302.  
  303.  
  304. div.topnav.icon {
  305. display: none;
  306. }
  307.  
  308.  
  309.  
  310. /* להדביק בתחתית דף הCSS */
  311. .topnav #menu:not(.expand),
  312. .topnav #menu.expand {
  313. display: block;
  314. }
  315.  
  316.  
  317. @media only screen and (max-width: 1024px) {‏
  318. .clearfix {
  319. clear: both;
  320. }
  321.  
  322. .topnav #menu:not(.expand) {
  323. display: none !important;
  324. }
  325.  
  326. .topnav #menu.expand {
  327. display: block !important;
  328. }
  329.  
  330. .topnav #menu ~ a.icon {
  331. display: inline-block !important;
  332. height: 100% !important;
  333. padding: 20px 17px 0;
  334. font-size: 23px;
  335. line-height: 23px;
  336. }
  337.  
  338. .topnav #menu {
  339. position: absolute;
  340. top:0;
  341. left:0;
  342. background: inherit;
  343. z-index: 2;
  344. min-height: calc(100% - 80px);
  345. margin-top:80px;
  346. background: rgba(221,221,223,0.9);
  347. width: 75%;
  348. }
  349.  
  350. .topnav #menu .menu {
  351. display: block;
  352. width: 100%;
  353. border-right: 0;
  354. }
  355.  
  356. .topnav #menu .menu a {
  357. display: block;
  358. width: 100%;
  359. text-align: left;
  360. float: none;
  361. padding-top: 0;
  362. }
  363.  
  364. .topnav #menu .menu:not(:last-child) {
  365. border-bottom:1px solid #8c8b8b;
  366. }
  367. }
  368.  
  369.  
  370. .clearfix {
  371. clear: both;
  372. }
  373.  
  374.  
  375. /* Tablet */
  376. @media only screen and (min-width: 764px) and (max-width: 1024px) {
  377.  
  378. div.main {
  379. width: 100%;
  380. max-width: 1024px;
  381. background: #9932CC; /* לבן #FFF */
  382. margin: 0 auto;
  383. position: relative;
  384. }
  385.  
  386.  
  387. div .column-1 {
  388. display:none;
  389. }
  390.  
  391. div.black{
  392. display:none;
  393. }
  394.  
  395. .row-up-1 .cube { /* including cube בתוכו מכיל את הקוביות */
  396. width: 20%;
  397. height: 200px;
  398. }
  399.  
  400.  
  401. div .column-1 .white{
  402. display:none;
  403. }
  404. div.column-2{
  405. width:100%;
  406. }
  407. div.red.cube-margin-left{
  408. margin-left:45px !important;
  409. }
  410.  
  411. div.white{
  412. display:none;
  413. }
  414.  
  415.  
  416. .row-up-1 .white-cube-tablet{
  417. height: 200px;
  418. width: 50%;
  419. background: #FFF;
  420. float:right;
  421. margin-right: 45px;
  422. color: #000;
  423. font-size:200%;
  424. font-weight: 900;
  425. text-align:center;
  426. vertical-align: middle;
  427. line-height: 200%;
  428. padding-top:20px;
  429. color:#1148A0;
  430.  
  431.  
  432. }
  433.  
  434.  
  435. }
  436.  
  437.  
  438.  
  439. <!DOCTYPE html>
  440. <html lang="en">
  441.  
  442. <head>
  443. <meta charset="UTF-8">
  444. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
  445.  
  446. <title></title>
  447. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  448. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
  449. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
  450. <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
  451. </head>
  452.  
  453. <body>
  454. <section class="container-fluid">
  455.  
  456. <div class="main">
  457.  
  458. <div class="topnav">
  459. <div id="menu" class="collapse">
  460. <div class="menu"><a href="#Home">Home</a></div>
  461. <div class="menu"><a href="#News">News</a></div>
  462. <div class="menu"><a href="#Gallery">Gallery</a></div>
  463. <div class="menu"><a href="#About us">About us</a></div>
  464. <div class="menu" style="border-right:none;"><a href="#Contact">Contact</a></div>
  465. </div>
  466. <a href="javascript:void(0);" class="icon" onclick="myFunction()">&#9776;</a>
  467. </div>
  468.  
  469. <div style="width: 100%; margin: 0 auto; position: relative;">
  470. <div class="row-full">
  471. <div class="column-1">
  472. <div class="black">&nbsp;</div>
  473.  
  474. </div>
  475.  
  476. <div class="column-2">
  477. <div class="row-up-1"> <!-- including cube בתוכו מכיל את הקוביות-->
  478. <div class="red cube cube-margin-left "> &nbsp; </div>
  479. <div class="medium-blue cube">&nbsp;</div>
  480. <div class="dark-blue cube">&nbsp;</div>
  481. <div class="red-corner cube ">&nbsp;</div>
  482. <div class="clearfix"></div>
  483. </div>
  484. <div class="row-up-1">
  485. <div class="white cube">Free TExt Free TExt Free TExt Free</div>
  486. <div class="white-cube-tablet">Free TExt </div>
  487. <div class="light-blue cube">&nbsp;</div>
  488. <div class="clearfix"></div>
  489. </div>
  490. </div>
  491. </div>
  492.  
  493.  
  494. <!--
  495. <div style="height:600px;">
  496. <div class="Parent">
  497. <div class="Child resize-blocks" style="background:#fe0000; margin-left:50px; margin-top:40px;float:left;"></div> /* אדום */
  498.  
  499. <div class="Child" style="background:#1a247b; margin:0px; width: 280px; padding-top:0px;
  500. height: 270px;"></div> /* כחול כהה */
  501.  
  502. <div class="Child resize-blocks" style="background:#fe0000; margin-left:80px;" ></div> /* אדום */
  503.  
  504. <div class="Child" style="background:#0D62B3; margin-right:50px; width: 290px;
  505. height: 270px;"></div> /* כחול בינוני */
  506.  
  507. <div class="Child" style="background:#fe0000; display:block; margin-right:80px; width: 270px; float:right;
  508. height: 280px;"></div> /* אדום */
  509. </div>
  510.  
  511.  
  512. <div class="Parent" >
  513. <div class="Child" style="background:#0D62B3; margin-left:50px; width: 280px;
  514. height: 270px; "></div> /* כחול בינוני */
  515.  
  516. <div class="Child resize-blocks" style="background:#fe0000; margin:30 0 0 0px;"></div> /* אדום */
  517.  
  518. <div class="Child" style="background:#63c2c8; width: 280px; height: 270px; margin: 0 0 0 15px;"></div> /* תכלת */
  519.  
  520. <div class="Child resize-blocks" style="background:#fe0000; margin:30 0 30 55px;"></div> /* אדום */
  521.  
  522. <div class="Child" style="background:#1a247b; margin: 0 0 0 30px; width: 270px; height: 270px; display:block;"></div> /* כחול כהה */
  523. </div>
  524.  
  525. </div>
  526. -->
  527.  
  528. <div class="row-full">
  529. <div class="column-left" style="background:green;">
  530. <div class="row-up-2">
  531. <div class="resize-blocks" style="background:#fe0000; float:left; display:inline-block;"></div> /* אדום */
  532. <div style="background:#1a247b; margin:0px; width:43%; height:270px; float:left;"></div> /* כחול כהה */
  533. </div>
  534. <div class="row-down-2">
  535. <div style="background:#0D62B3; width:43%; height:270px; float:left;margin-top:30px; display:inline-block;"></div> /* כחול בינוני */
  536. <div class="resize-blocks" style="background:#fe0000; float:left; margin-top:30px; "></div> /* אדום */
  537.  
  538. </div>
  539. </div>
  540.  
  541. <div class="column-middle" style="background:yellow;">
  542. <div class="row-up-2" >
  543. <div class="resize-blocks" style="background:#fe0000;float:left; display:inline-block; " ></div> /* אדום */
  544. <div style="background:#0D62B3;float:left;width:43%; height:270px; "></div> /* כחול בינוני */
  545.  
  546. </div>
  547. <div class="row-down-2">
  548. <div style="background:#63c2c8; float:left; width:43%; height:270px; margin-top:30px; display:inline-block;"></div> /* תכלת */
  549. <div class="resize-blocks" style="background:#fe0000; margin-top:30px; float:left;"></div>
  550. </div>
  551. </div>
  552.  
  553. <div class="column-right" style="background:brown;">
  554. <div class="row-3">
  555. <div style="background:#fe0000; display:block; width:72%; height:290px; margin-left:30px;"></div>
  556. </div>
  557.  
  558. <div style="background:#1a247b; float:left; width:72%; height:270px; margin: 0 0 0 30px;"></div> /* כחול כהה */
  559.  
  560.  
  561. </div>
  562.  
  563. </div>
  564.  
  565. <p class="clear"></p>
  566.  
  567. </div>
  568.  
  569. </div>
  570. </section>
  571.  
  572. <script>
  573. function myFunction() {
  574. /*
  575. // לא צריכים את זה יותר!
  576. var x = document.getElementById("myTopnav");
  577. if (x.className === "topnav") {
  578. x.className += " responsive";
  579. } else {
  580. x.className = "topnav";
  581. }
  582. */
  583.  
  584. var myMobileMenu = document.querySelector('#menu');
  585. if(myMobileMenu.className === 'expand') {
  586. myMobileMenu.className = 'collapse';
  587. }
  588. else {
  589. myMobileMenu.className = 'expand';
  590. }
  591. }
  592. </script>
  593. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
  594. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
  595. </body>
  596. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement