vonko1988

CSS_presentation_homework_task4.css

Feb 8th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 9.01 KB | None | 0 0
  1. /*Resets*/
  2.  
  3. div, ul, li {
  4.     margin: 0;
  5.     padding: 0;
  6. }
  7.  
  8. /*Font importation*/
  9. @font-face {
  10.     font-family: Digital;
  11.     src: url("Calculator.ttf");
  12. }
  13.  
  14. body {
  15.     color: #3e4a57;
  16. }
  17.  
  18. /*The div "fixer" is put in order to hold the responsivness of the table.
  19. Otherwise the table breaks when the window is resized*/
  20. div#fixer {
  21.     width: 500px;
  22. }
  23.  
  24. /*Styling the window of the calculator*/
  25. div#outter {
  26.     border: none;
  27.     display: inline-block;
  28.     border-radius: 0.4em;
  29.     box-shadow: 0px 0px 10px #3e4a57;
  30.     padding: 0.6em;
  31.     0.4em 0.4em;
  32.     background: #e1ebf7; /* Old browsers */
  33.     background: #ebeff4; /* Old browsers */
  34.     background: -moz-linear-gradient(45deg, #ebeff4 0%, #b2d0ea 26%, #dce4ea 47%, #b0d3f2 71%, #c6dcef 100%); /* FF3.6+ */
  35.     background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#ebeff4), color-stop(26%,#b2d0ea), color-stop(47%,#dce4ea), color-stop(71%,#b0d3f2), color-stop(100%,#c6dcef)); /* Chrome,Safari4+ */
  36.     background: -webkit-linear-gradient(45deg, #ebeff4 0%,#b2d0ea 26%,#dce4ea 47%,#b0d3f2 71%,#c6dcef 100%); /* Chrome10+,Safari5.1+ */
  37.     background: -o-linear-gradient(45deg, #ebeff4 0%,#b2d0ea 26%,#dce4ea 47%,#b0d3f2 71%,#c6dcef 100%); /* Opera 11.10+ */
  38.     background: -ms-linear-gradient(45deg, #ebeff4 0%,#b2d0ea 26%,#dce4ea 47%,#b0d3f2 71%,#c6dcef 100%); /* IE10+ */
  39.     background: linear-gradient(45deg, #ebeff4 0%,#b2d0ea 26%,#dce4ea 47%,#b0d3f2 71%,#c6dcef 100%); /* W3C */
  40.     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ebeff4', endColorstr='#c6dcef',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  41. }
  42.  
  43. img {
  44.     margin-left: 2px;
  45. }
  46.  
  47.  
  48. div#outter > input {
  49.     position: relative;
  50.     float: right;
  51.     top: -10px;
  52. }
  53.  
  54.  
  55. div#outter > span {
  56.     position: relative;
  57.     margin-left: 0.2em;
  58.     bottom: 0.2em;
  59.     color: black;
  60. }
  61.  
  62. /*The menu panel*/
  63. div#inner {
  64.     position: relative;
  65.     border: 1px solid #949494;
  66.     box-shadow: 0 0 5px white;
  67.     padding: 0;
  68.     text-align: left;
  69.     background: #f2f2f2; /* Old browsers */
  70.     background: -moz-linear-gradient(top, #f2f2f2 0%, #e8e8e8 2%, #cfd2e3 3%, #cfd2e3 100%); /* FF3.6+ */
  71.     background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(2%,#e8e8e8), color-stop(3%,#cfd2e3), color-stop(100%,#cfd2e3)); /* Chrome,Safari4+ */
  72.     background: -webkit-linear-gradient(top, #f2f2f2 0%,#e8e8e8 2%,#cfd2e3 3%,#cfd2e3 100%); /* Chrome10+,Safari5.1+ */
  73.     background: -o-linear-gradient(top, #f2f2f2 0%,#e8e8e8 2%,#cfd2e3 3%,#cfd2e3 100%); /* Opera 11.10+ */
  74.     background: -ms-linear-gradient(top, #f2f2f2 0%,#e8e8e8 2%,#cfd2e3 3%,#cfd2e3 100%); /* IE10+ */
  75.     background: linear-gradient(to bottom, #f2f2f2 0%,#e8e8e8 2%,#cfd2e3 3%,#cfd2e3 100%); /* W3C */
  76.     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f2f2', endColorstr='#cfd2e3',GradientType=0 ); /* IE6-9 */
  77. }
  78.  
  79.     div#inner a {
  80.         text-decoration: none;
  81.         color: black;
  82.         font-size: 0.9em;
  83.         border: 1px solid transparent;
  84.         border-radius: 0.3em;
  85.         padding: 0 0.4em 0 0.4em;
  86.         position: relative;
  87.         top: 1px;
  88.     }
  89.  
  90.         div#inner a:hover {
  91.             border: 1px solid #90959a;
  92.         }
  93.  
  94.         div#inner a:first-of-type {
  95.             margin-left: 0.2em;
  96.         }
  97.  
  98.  
  99. /*The table*/
  100. table#mainTable {
  101.     border-top: 1px solid #90959a;
  102.     padding: 0.5em;
  103.     border-spacing: 0.3em;
  104.     background: #ecf4fb; /* Old browsers */
  105.     background: -moz-linear-gradient(top, #ecf4fb 0%, #dae2ee 100%); /* FF3.6+ */
  106.     background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ecf4fb), color-stop(100%,#dae2ee)); /* Chrome,Safari4+ */
  107.     background: -webkit-linear-gradient(top, #ecf4fb 0%,#dae2ee 100%); /* Chrome10+,Safari5.1+ */
  108.     background: -o-linear-gradient(top, #ecf4fb 0%,#dae2ee 100%); /* Opera 11.10+ */
  109.     background: -ms-linear-gradient(top, #ecf4fb 0%,#dae2ee 100%); /* IE10+ */
  110.     background: linear-gradient(to bottom, #ecf4fb 0%,#dae2ee 100%); /* W3C */
  111.     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ecf4fb', endColorstr='#dae2ee',GradientType=0 ); /* IE6-9 */
  112. }
  113.  
  114.  
  115. /*The display of the calculator*/
  116. td#display {
  117.     text-align: right;
  118.     font-size: 1.5em;
  119.     border-radius: 0.1em;
  120.     padding: 0.6em 0.2em 0.2em 0.2em;
  121.     font-family: Digital;
  122.     font-weight: bold;
  123.     color: black;
  124.     background: #e5edf6; /* Old browsers */
  125.     background: -moz-linear-gradient(top, #e5edf6 0%, #e5edf6 28%, #ffffff 70%, #ffffff 100%); /* FF3.6+ */
  126.     background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5edf6), color-stop(28%,#e5edf6), color-stop(70%,#ffffff), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
  127.     background: -webkit-linear-gradient(top, #e5edf6 0%,#e5edf6 28%,#ffffff 70%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
  128.     background: -o-linear-gradient(top, #e5edf6 0%,#e5edf6 28%,#ffffff 70%,#ffffff 100%); /* Opera 11.10+ */
  129.     background: -ms-linear-gradient(top, #e5edf6 0%,#e5edf6 28%,#ffffff 70%,#ffffff 100%); /* IE10+ */
  130.     background: linear-gradient(to bottom, #e5edf6 0%,#e5edf6 28%,#ffffff 70%,#ffffff 100%); /* W3C */
  131.     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5edf6', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
  132. }
  133.  
  134.  
  135. td {
  136.     border: 1px solid #949494;
  137.     border-spacing: 0.4em;
  138.     border-radius: 0.1em;
  139. }
  140.  
  141. /*The styles of the small table with numbers at the top*/
  142.  
  143. table#numericTable {
  144.     font-size: 0.7em;
  145.     font-family: Cursive;
  146.     font-weight: lighter;
  147.     border-spacing: 0;
  148.     width: 100%;
  149. }
  150.  
  151.     table#numericTable td {
  152.         padding: 0 0 0 1.2em;
  153.         border: none;
  154.     }
  155.  
  156.  
  157. /*The cells with radio buttons on the left*/
  158.  
  159. td.radioTd {
  160.     padding-right: 1.7em;
  161.     font-size: 0.8em;
  162. }
  163.  
  164.  
  165. ul {
  166.     list-style-type: none;
  167. }
  168.  
  169.  
  170. /*The buttons of the calculator*/
  171. td.button {
  172.     padding: 0;
  173.     text-align: center;
  174.     border: none;
  175.     height: 1.5em;
  176. }
  177.  
  178.     td.button input {
  179.         width: 100%;
  180.         height: 30px;
  181.         border: 1px solid #949494;
  182.         color: #445366;
  183.         border-radius: 0.2em;
  184.         background: #f0f6fc; /* Old browsers */
  185.         background: -moz-linear-gradient(top, #f0f6fc 0%, #f0f6fc 38%, #d0e0ed 62%, #d0e0ed 94%, #ffffff 100%); /* FF3.6+ */
  186.         background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f0f6fc), color-stop(38%,#f0f6fc), color-stop(62%,#d0e0ed), color-stop(94%,#d0e0ed), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
  187.         background: -webkit-linear-gradient(top, #f0f6fc 0%,#f0f6fc 38%,#d0e0ed 62%,#d0e0ed 94%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
  188.         background: -o-linear-gradient(top, #f0f6fc 0%,#f0f6fc 38%,#d0e0ed 62%,#d0e0ed 94%,#ffffff 100%); /* Opera 11.10+ */
  189.         background: -ms-linear-gradient(top, #f0f6fc 0%,#f0f6fc 38%,#d0e0ed 62%,#d0e0ed 94%,#ffffff 100%); /* IE10+ */
  190.         background: linear-gradient(to bottom, #f0f6fc 0%,#f0f6fc 38%,#d0e0ed 62%,#d0e0ed 94%,#ffffff 100%); /* W3C */
  191.         filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f6fc', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
  192.     }
  193.  
  194.  
  195.         td.button input.numbers {
  196.             background: #f0f9fe;
  197.             font-size: 1em;
  198.         }
  199.  
  200.  
  201.         td.button input:hover {
  202.             box-shadow: 0 0 7px #fccb5a;
  203.             background: #f5ede8; /* Old browsers */
  204.             background: -moz-linear-gradient(top, #f5ede8 0%, #f5ede8 38%, #fccb5a 61%, #fccb5a 89%, #f9f1de 100%); /* FF3.6+ */
  205.             background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5ede8), color-stop(38%,#f5ede8), color-stop(61%,#fccb5a), color-stop(89%,#fccb5a), color-stop(100%,#f9f1de)); /* Chrome,Safari4+ */
  206.             background: -webkit-linear-gradient(top, #f5ede8 0%,#f5ede8 38%,#fccb5a 61%,#fccb5a 89%,#f9f1de 100%); /* Chrome10+,Safari5.1+ */
  207.             background: -o-linear-gradient(top, #f5ede8 0%,#f5ede8 38%,#fccb5a 61%,#fccb5a 89%,#f9f1de 100%); /* Opera 11.10+ */
  208.             background: -ms-linear-gradient(top, #f5ede8 0%,#f5ede8 38%,#fccb5a 61%,#fccb5a 89%,#f9f1de 100%); /* IE10+ */
  209.             background: linear-gradient(to bottom, #f5ede8 0%,#f5ede8 38%,#fccb5a 61%,#fccb5a 89%,#f9f1de 100%); /* W3C */
  210.             filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5ede8', endColorstr='#f9f1de',GradientType=0 ); /* IE6-9 */
  211.         }
  212.  
  213.         /*Styling of the disabled buttons*/
  214.         td.button input[disabled="disabled"] {
  215.             background: transparent;
  216.             font-weight: bold;
  217.         }
  218.  
  219.             td.button input[disabled="disabled"]:hover {
  220.                 background: transparent;
  221.                 box-shadow: none;
  222.             }
  223.  
  224.             td.button input[disabled="disabled"]#notBold {
  225.                 font-weight: normal;
  226.             }
  227.  
  228.         /*Styling of the buttons requiring slightly different style*/
  229.         td.button input#equals {
  230.             height: 66px;
  231.             font-size: 1.5em;
  232.         }
Advertisement
Add Comment
Please, Sign In to add comment