github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/controller/static/semantic/src/definitions/globals/site.less (about) 1 /*! 2 * # Semantic UI - Site 3 * http://github.com/semantic-org/semantic-ui/ 4 * 5 * 6 * Copyright 2014 Contributors 7 * Released under the MIT license 8 * http://opensource.org/licenses/MIT 9 * 10 */ 11 12 13 /******************************* 14 Theme 15 *******************************/ 16 17 @type : 'global'; 18 @element : 'site'; 19 20 @import (multiple) '../../theme.config'; 21 22 /******************************* 23 Page 24 *******************************/ 25 26 .loadFonts(); 27 28 html, 29 body { 30 height: 100%; 31 } 32 33 html { 34 font-size: @emSize; 35 } 36 37 body { 38 margin: 0px; 39 padding: 0px; 40 min-width: @pageMinWidth; 41 background: @pageBackground; 42 font-family: @pageFont; 43 font-size: @fontSize; 44 line-height: @lineHeight; 45 color: @textColor; 46 font-smoothing: @fontSmoothing; 47 } 48 49 /******************************* 50 Headers 51 *******************************/ 52 53 h1, 54 h2, 55 h3, 56 h4, 57 h5 { 58 font-family: @headerFont; 59 line-height: @headerLineHeight; 60 margin: @headerMargin; 61 font-weight: @headerFontWeight; 62 padding: 0em; 63 } 64 65 h1 { 66 min-height: 1rem; 67 font-size: @h1; 68 } 69 h2 { 70 font-size: @h2; 71 } 72 h3 { 73 font-size: @h3; 74 } 75 h4 { 76 font-size: @h4; 77 } 78 h5 { 79 font-size: @h5; 80 } 81 82 h1:first-child, 83 h2:first-child, 84 h3:first-child, 85 h4:first-child, 86 h5:first-child { 87 margin-top: 0em; 88 } 89 90 h1:last-child, 91 h2:last-child, 92 h3:last-child, 93 h4:last-child, 94 h5:last-child { 95 margin-bottom: 0em; 96 } 97 98 99 /******************************* 100 Text 101 *******************************/ 102 103 p { 104 margin: @paragraphMargin; 105 line-height: @paragraphLineHeight; 106 } 107 p:first-child { 108 margin-top: 0em; 109 } 110 p:last-child { 111 margin-bottom: 0em; 112 } 113 114 /*------------------- 115 Links 116 --------------------*/ 117 118 a { 119 color: @linkColor; 120 text-decoration: @linkUnderline; 121 } 122 a:hover { 123 color: @linkHoverColor; 124 } 125 126 /******************************* 127 Highlighting 128 *******************************/ 129 130 /* Site */ 131 ::-webkit-selection { 132 background-color: @highlightBackground; 133 color: @highlightColor; 134 } 135 ::-moz-selection { 136 background-color: @highlightBackground; 137 color: @highlightColor; 138 } 139 ::selection { 140 background-color: @highlightBackground; 141 color: @highlightColor; 142 } 143 144 /* Form */ 145 textarea::-webkit-selection, 146 input::-webkit-selection { 147 background-color: @inputHighlightBackground; 148 color: @inputHighlightColor; 149 } 150 textarea::-moz-selection, 151 input::-moz-selection { 152 background-color: @inputHighlightBackground; 153 color: @inputHighlightColor; 154 } 155 textarea::selection, 156 input::selection { 157 background-color: @inputHighlightBackground; 158 color: @inputHighlightColor; 159 } 160 161 162 .loadUIOverrides();