Changeset 3365:11eb6b993152 for admin/style/scss
- Timestamp:
- 10/26/16 14:09:23 (9 years ago)
- Branch:
- default
- Location:
- admin/style/scss
- Files:
-
- 2 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/style/scss/default.scss
r3355 r3365 26 26 --------------------------------------------------- */ 27 27 @import "partials/layout"; 28 29 /** -------------------------------------------------- 30 Colors 31 --------------------------------------------------- */ 32 @import "partials/colors"; 28 33 29 34 /** -------------------------------------------------- … … 70 75 @import "partials/classes"; 71 76 @import "partials/utils"; 77 @import "partials/mediaqueries"; -
admin/style/scss/init/_config.scss
r3355 r3365 4 4 // Do not support IE less than IE9 5 5 $browser-minimum-versions: ( 6 "ie": " 9"6 "ie": "10" 7 7 ); 8 8 $graceful-usage-threshold: 100; … … 31 31 32 32 // Palette de base 33 33 34 $blue: #137bbb; 34 35 $green: #9ac123; … … 41 42 42 43 $gray-very-dark: shade($gray, 72%); // #323232 (near to #333 used before) 44 $gray-semi-dark: shade($gray, 25%); // #868686 (near to #999 used before) 43 45 $gray-light: tint($gray, 30%); // #c9c9c9 (near to #ccc used before) 44 46 $gray-very-light: tint($gray, 85%); // #f3f3f3 (near to #f7f7f7 used before) … … 46 48 $white: #fff; 47 49 $black: #000; 50 51 // Couleurs secondaires 52 53 48 54 49 55 // Application … … 62 68 63 69 // Autres 70 64 71 $css-img-path: 'img'; // utile pour le mixin de fallback svg 65 72 -
admin/style/scss/init/_mixins-functions.scss
r3355 r3365 1 1 // mixin svg fallback 2 2 @mixin svg( 3 4 3 $file-name, 4 $css-img-path: $css-img-path) 5 5 { 6 7 6 background-image: inline-image($file-name+'.png'); 7 background-image: inline-image($file-name+'.svg'), none; 8 8 } 9 9 10 10 @mixin bg-with-svg( 11 12 13 14 15 11 $file-name, 12 $css-img-path: $css-img-path, 13 $repeat: no-repeat, 14 $position: 50% 50%, 15 $bg-color: transparent) 16 16 { 17 18 17 background: inline-image($file-name+'.png') $repeat, $position, $bg-color; 18 background-image: inline-image($file-name+'.svg'), none; 19 19 } 20 20 21 // Mix from Nico3333 (https://github.com/nico3333fr/ROCSSTI/blob/master/src/css/rocssti-fr.css#L637) 22 // and ffood (http://www.ffoodd.fr/cache-cache-css/) 21 23 @mixin visually-hidden { 22 border: 0; 23 clip: rect(0 0 0 0); 24 height: 1px; 25 margin: -1px; 26 overflow: hidden; 27 padding: 0; 28 position: absolute; 29 width: 1px; 24 border: 0; 25 clip: rect(0 0 0 0); 26 clip-path: inset(50%); 27 height: 1px; 28 margin: -1px; 29 overflow: hidden; 30 padding: 0; 31 position: absolute; 32 width: 1px; 33 white-space: nowrap; 34 } 35 @mixin visually-hidden-focus { 36 clip: auto; 37 clip-path: none; 38 height: auto; 39 overflow: visible; 40 position: static; 41 width: auto; 42 white-space: normal; 30 43 } 31 44 32 45 // Remove any unit from a value 33 46 @function strip-unit( 34 47 $value) 35 48 { 36 49 @return $value / ($value * 0 + 1); 37 50 } 38 51 39 52 // Compute absolute value (in em or rem) depending on font-size of the html element (given in %) 40 53 @function relative-to-screen( 41 42 54 $value, // em or rem value 55 $html-font-size) // in % 43 56 { 44 57 @return $value / (strip-unit($html-font-size) / 100); 45 58 } -
admin/style/scss/init/_rebase.scss
r3355 r3365 154 154 margin: 0; 155 155 } 156 /* Hide only visually, but have it available for screenreaders: h5bp.com/v */ 156 157 /* Screen-reader only */ 157 158 .visually-hidden { 158 159 @include visually-hidden; 160 &:focus, 161 &:active { 162 @include visually-hidden-focus; 163 } 159 164 } -
admin/style/scss/partials/_buttons.scss
r3355 r3365 46 46 input.button.start { 47 47 color: #fff; 48 background-color: #25A6E1; 49 background-image: -webkit-gradient(linear, left top, left bottom, from(#25A6E1), to(#188BC0)); 50 background-image: linear-gradient(#25A6E1, #188BC0); 51 border-color: #25A6E1; 48 background-color: #25a6e1; 49 @include background-image(linear-gradient(to bottom, #25a6e1, #188bc0)); 50 border-color: #25a6e1; 52 51 text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); 53 52 } … … 59 58 a.button.submit:hover, 60 59 a.button.submit:focus { 61 background-color: #188BC0; 62 background-image: -webkit-gradient(linear, left top, left bottom, from(#188BC0), to(#25A6E1)); 63 background-image: linear-gradient(#188BC0, #25A6E1); 64 border-color: #188BC0; 60 background-color: #188bc0; 61 @include background-image(linear-gradient(to bottom, #188bc0, #25a6e1)); 62 border-color: #188bc0; 65 63 } 66 64 … … 80 78 a.button.reset { 81 79 color: #000; 82 background-color: #EAEAEA; 83 background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#EAEAEA)); 84 background-image: linear-gradient(#f9f9f9, #EAEAEA); 80 background-color: #eaeaea; 81 @include background-image(linear-gradient(to bottom, #f9f9f9, #eaeaea)); 85 82 background-repeat: repeat-x; 86 border-color: #dfdfdf #dfdfdf # C5C5C5;83 border-color: #dfdfdf #dfdfdf #c5c5c5; 87 84 text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9); 88 85 } … … 110 107 a.button.reset:focus, 111 108 a.button:focus { 112 background-color: #DADADA; 113 background-image: -webkit-gradient( linear, left top, left bottom, from(#EAEAEA), to(#DADADA)); 114 background-image: linear-gradient(#EAEAEA, #DADADA); 109 background-color: #dadada; 110 @include background-image(linear-gradient(to bottom, #eaeaea, #dadada)); 115 111 background-repeat: repeat-x; 116 border-color: # CCCCCC #CCCCCC #B5B5B5;112 border-color: #cccccc #cccccc #b5b5b5; 117 113 } 118 114 … … 132 128 input.delete:focus, 133 129 a.button.delete:focus { 134 color: #FFFFFF; 135 background-color: #B33630; 136 background-image: -webkit-gradient( linear, left top, left bottom, from(#DC5F59), to(#B33630)); 137 background-image: linear-gradient(#DC5F59, #B33630); 130 color: #ffffff; 131 background-color: #b33630; 132 @include background-image(linear-gradient(to bottom, #dc5f59, #b33630)); 138 133 background-repeat: repeat-x; 139 border-color: # CD504A;134 border-color: #cd504a; 140 135 text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); 141 136 } … … 149 144 color: #000; 150 145 background-color: #bee74b; 151 background-image: -webkit-gradient(linear, left top, left bottom, from(#bee74b), to(#9BCA1C)); 152 background-image: linear-gradient(#bee74b, #9BCA1C); 146 @include background-image(linear-gradient(to bottom, #bee74b, #9bca1c)); 153 147 border-color: #bee74b; 154 148 padding: .33em 1.33em .5em; 155 149 text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); 156 font-weight: normal;157 font-size: 1.16em;150 // font-weight: normal; 151 // font-size: 1.16em; 158 152 } 159 153 … … 161 155 .button.add:active, 162 156 .button.add:focus { 163 background-color: #9BCA1C; 164 background-image: -webkit-gradient(linear, left top, left bottom, from(#9BCA1C), to(#bee74b)); 165 background-image: linear-gradient(#9BCA1C, #bee74b); 166 border-color: #9BCA1C; 157 background-color: #9bca1c; 158 @include background-image(linear-gradient(to bottom, #9bca1c, #bee74b)); 159 border-color: #9bca1c; 167 160 } 168 161 -
admin/style/scss/partials/_charte.scss
r3355 r3365 1 1 .guideline #content h2 { 2 color: # D33800;2 color: #d33800; 3 3 padding: 2em 0 0 0; 4 4 margin: 1em 0; -
admin/style/scss/partials/_classes.scss
r3355 r3365 32 32 33 33 .ac_over { 34 background-color: #2373 A8;34 background-color: #2373a8; 35 35 color: white; 36 36 } -
admin/style/scss/partials/_common.scss
r3355 r3365 1 1 /* Typographie */ 2 2 3 // base // 3 4 html { … … 32 33 } 33 34 font-family: $sans-serif; 34 color: $primary-color;35 background: $primary-background;36 35 } 37 36 #wrapper { … … 51 50 line-height: 1.25; 52 51 padding: 0 0 1.5em; 53 color: $ternary-color;54 52 } 55 53 h3, .as_h3 { … … 58 56 line-height: 1.5; 59 57 margin-top: 1em; 60 color: $secondary-color;61 58 } 62 59 h4, .as_h4 { 63 60 font-size: 1.16em; 64 61 line-height: 1.5; 65 color: $ternary-color;66 62 } 67 63 h5 { … … 69 65 line-height: 1.5; 70 66 font-weight: bold; 71 color: $ternary-color;72 67 } 73 68 h6 { 74 69 font-size: 1em; 75 70 line-height: 1.5; 76 color: $ternary-color;77 71 } 78 72 -
admin/style/scss/partials/_header.scss
r3355 r3365 2 2 3 3 #prelude { 4 line-height: 1.5; 5 margin: 0; 6 padding: 0; 7 overflow: hidden; 8 position: absolute; 9 top: 3em; 10 left: 0; 11 background: #A2CBE9; 12 width: 100%; 13 z-index: 100; 4 line-height: 1.5; 5 margin: 0; 6 padding: 0; 7 overflow: hidden; 8 position: absolute; 9 top: 3em; 10 left: 0; 11 background: $light-blue; 12 width: 100%; 13 z-index: 100; 14 li { 15 list-style-type: none; 16 margin: 0; 17 background: transparent; 18 display: inline; 19 a { 20 padding: 3px 16px 3px 8px; 21 background: $light-blue; 22 color: $black; 23 text-decoration: underline; 24 &:hover, &:focus { 25 background: $white; 26 } 27 } 28 } 14 29 } 15 16 #prelude li {17 list-style-type: none;18 margin: 0;19 background: transparent;20 display: inline;21 }22 23 #prelude li a {24 padding: 3px 16px 3px 8px;25 background: #A2CBE9;26 color: #000;27 text-decoration: underline;28 }29 30 #prelude li a:hover,31 #prelude li a:focus {32 background: #FFF;33 }34 35 30 36 31 /* si le prélude est affiché on repousse les trucs dessous */ 37 32 38 33 #wrapper.with-prelude { 39 34 padding-top: 1em; 40 35 } 41 36 42 37 #help-button.with-prelude, 43 38 #collapser.with-prelude { 44 39 top: 1em; 45 40 } 46 47 41 48 42 /* header global h1, form#top-info-blog, ul#top-info-user */ 49 43 50 44 #header a { 51 color: #FFF;45 color: $white; 52 46 } 53 47 54 48 #header img { 55 56 49 vertical-align: middle; 50 padding-left: .5em; 57 51 } 58 59 52 60 53 /* h1 */ 61 54 62 55 h1 { 63 text-indent: 100%; 64 width: 16.5em; 56 text-indent: 100%; 57 width: 16.5em; 58 a { 59 position: absolute; 60 top: 0; 61 left: 0; 62 width: 150px; 63 height: 3em; 64 color: $white; 65 background: transparent url(dc_logos/b-dotclear120.png) no-repeat 0 6px; 66 transition: none; 67 &:hover, 68 &:focus { 69 background-position: 0 -94px; 70 background-color: transparent; 71 transition: none; 72 } 73 &:link { 74 transition-timing-function: ease-in-out; 75 } 76 } 65 77 } 66 67 h1 a {68 position: absolute;69 top: 0;70 left: 0;71 width: 150px;72 height: 3em;73 color: #fff;74 background: transparent url(dc_logos/b-dotclear120.png) no-repeat 0 6px;75 transition: none;76 }77 78 h1 a:hover,79 h1 a:focus {80 background-position: 0 -94px;81 background-color: transparent;82 transition: none;83 }84 85 h1 a:link {86 transition-timing-function: ease-in-out;87 }88 89 78 90 79 /* top-info-blog */ 91 80 92 81 #top-info-blog select { 93 82 max-width: 20em; 94 83 } 95 84 96 85 #top-info-blog a { 97 86 margin-left: 1.5em; 98 87 } 99 88 100 89 #top-info-blog input[type=submit] { 101 background: #000;102 border-color: #999;103 90 background: $black; 91 border-color: $gray-semi-dark; 92 margin-left: .33em; 104 93 } 105 94 106 95 #top-info-blog input[type=submit]:hover { 107 background: #999;96 background: $gray-semi-dark; 108 97 } 109 98 110 99 #top-info-blog p { 111 112 100 display: inline-block; 101 margin: 0; 113 102 } 114 115 103 116 104 /* top-info-user */ 117 105 118 106 #top-info-user { 119 120 121 107 padding-right: 18px; 108 list-style-type: none; 109 text-align: right; 122 110 } 123 111 124 112 #top-info-user li { 125 126 127 128 border-left: 1px solid #999;113 display: inline-block; 114 margin-left: .5em; 115 padding-left: .5em; 116 border-left: 1px solid $gray-semi-dark; 129 117 } 130 118 131 119 #top-info-user li:first-child { 132 120 border-left: none; 133 121 } 134 122 135 123 #top-info-user a.active { 136 border-bottom-color: #fff;137 138 139 background-color: #fff;140 color: #333;141 124 border-bottom-color: $white; 125 margin: 0; 126 padding: 18px .5em; 127 background-color: $white; 128 color: $primary-color; 129 font-weight: bold; 142 130 } 131 132 /* ------------------------------------------------------------------------------------ 133 UN POIL DE MEDIA QUERIES 134 ------------------------------------------------------------------------------------ */ 135 136 @media screen and (max-width: $xl-screen) { 137 #top-info-user { 138 padding-right: .5em; 139 } 140 #top-info-user a.active { 141 padding: 2px 8px; 142 border-width: 0; 143 border-radius: 6px; 144 } 145 } 146 147 @media screen and (max-width: $xxs-screen) { 148 h1, 149 h1 a { 150 padding: 0; 151 } 152 } 153 154 @media screen and (max-width: $xs-screen) { 155 h1 a:link { 156 background: transparent url(dc_logos/b-dotclear120.png) no-repeat -270px 6px; 157 } 158 h1 a:hover, 159 h1 a:focus { 160 background: url(dc_logos/b-dotclear120.png) no-repeat -270px -94px; 161 } 162 } -
admin/style/scss/partials/_layout.scss
r3355 r3365 1 // Admin layout 1 2 #dotclear-admin { 2 3 display: flex; … … 6 7 7 8 #header { 8 background: $ternary-background; 9 color: $white; 10 border-bottom: 4px solid $light-blue; 11 width: 99.99%; 12 /* Bugfix Chrome >= 49.0.2623.108 */ 9 width: 99.99%; /* Bugfix Chrome >= 49.0.2623.108 */ 13 10 display: table; 14 11 position: relative; … … 31 28 width: 100%; 32 29 z-index: 10; 33 background: $secondary-background url(bg_wrapper.png) repeat-y 14em;34 30 flex: 1; 35 31 } … … 49 45 margin: 0 0 0 14em; 50 46 padding: .5em 1.5em .75em 2.5em; 51 background: $white;52 47 } 53 48 … … 59 54 padding-bottom: 1em; 60 55 overflow: hidden; 61 background: $secondary-background;62 56 } 63 57 … … 67 61 padding: .5em 0 .5em 1em; 68 62 text-align: left; 69 border-top: 1px solid $gray-light; // #ccc;70 background-color: $white;71 63 } 72 64 … … 82 74 overflow: hidden; 83 75 display: block; 84 background: $light-blue; // #f3f3f3 url(../images/collapser-hide.png) no-repeat center bottom;85 76 border-right: 0; // 1px solid #999; 86 77 border-bottom: 0; … … 93 84 } 94 85 95 96 86 /* if main-menu is hidden */ 97 98 #wrapper.hide-mm {99 background: $white;100 }101 87 102 88 .hide-mm #main { … … 118 104 .hide-mm #collapser { 119 105 left: 0; 120 // background: #e3e3e3 url(../images/collapser-show.png) no-repeat center bottom;121 106 } 122 107 … … 128 113 display: block; 129 114 } 130 131 115 132 116 /* -------------------------------------------------------------- layout: two-cols */ … … 227 211 width: 100%; 228 212 margin: 0; 229 background: $ternary-background;230 213 font-size: 1.5em; 231 214 text-indent: 1em; 232 215 line-height: 1.5em; 233 216 font-weight: normal; 234 color: $white;235 217 } 236 218 … … 307 289 clear: both; 308 290 } 309 310 291 311 292 /* … … 346 327 } 347 328 348 349 329 /* ------------------------------------------------------------------------------------ 350 330 UN POIL DE MEDIA QUERIES 351 331 ------------------------------------------------------------------------------------ */ 352 332 353 @media screen and (min-width: $xl-screen) { 354 #wrapper { 355 background: $secondary-background url(bg_wrapper.png) repeat-y 17em; 356 } 333 @media screen and (max-width: $xl-screen) { 357 334 #main { 358 335 margin-left: -17em; … … 370 347 width: 19.5em; 371 348 } 372 }373 374 @media screen and (max-width: $l-screen) {375 349 #top-info-blog #switchblog { 376 350 max-width: 16em; … … 383 357 width: 100%; 384 358 text-align: right; 385 background: $gray-very-dark;386 359 } 387 360 #header h1, 388 361 #header h1 a { 389 362 width: 120px; 390 padding: 0;391 363 margin: 0; 392 364 } … … 400 372 display: block; 401 373 width: 100%; 402 background: $ternary-background;403 padding-right: 0;404 }405 #top-info-user li:last-child {406 padding-right: 1em;407 }408 #top-info-user a.active {409 padding: 2px 8px;410 background: #999;411 color: #FFF;412 border-width: 0;413 border-radius: 6px;414 374 } 415 375 .three-boxes, … … 439 399 height: 26px; 440 400 width: 26px; 441 background-color: $light-blue;442 padding: 0;443 401 margin: 0; 444 font-size: .83em;445 line-height: 68px;446 402 overflow: hidden; 447 403 } … … 478 434 height: 42px; 479 435 } 480 h1 a:link {481 background: transparent url(dc_logos/b-dotclear120.png) no-repeat -270px 6px;482 border-right: 1px solid $gray-light;483 }484 h1 a:hover,485 h1 a:focus {486 background: url(dc_logos/b-dotclear120.png) no-repeat -270px -94px;487 border-right: 1px solid $light-blue;488 }489 436 #wrapper, 490 437 #main, … … 495 442 margin: 0; 496 443 } 497 #dashboard-main {498 padding: 0;499 }500 444 #main-menu a { 501 445 display: block; … … 508 452 .hide-mm #content { 509 453 margin: 0; 510 padding: 0 .5em !important;511 454 } 512 455 #collapser { … … 515 458 #main #content > h2 { 516 459 margin: 0 -.25em 1em; 517 padding: 6px 30px 4px .5em;518 460 } 519 461 #dashboard-boxes .box.medium, … … 529 471 #filters-form .cell { 530 472 display: inline-block; 531 border: none;532 padding: 1em;533 473 vertical-align: bottom; 534 474 } … … 537 477 float: left; 538 478 width: 50%; 539 border-top: 1px solid #ddd;540 padding: .25em;541 }542 .pseudo-tabs li:first-child,543 .pseudo-tabs li:nth-of-type(2) {544 border-top: none;545 479 } 546 480 } 547 481 548 482 @media screen and (max-width: $xxs-screen) { 549 h1,550 h1 a {551 padding: 0;552 border-right: $gray-very-dark !important;553 }554 483 #top-info-blog label, 555 484 .nomobile { … … 569 498 #content.with-help #help { 570 499 width: 28rem; 571 font-size: 1.2rem // 12px;572 500 } 573 501 p.top-add { 574 502 margin-bottom: .5em; 575 text-align: center;576 }577 .multi-part {578 padding-left: 0;579 503 } 580 504 .part-tabs ul { 581 505 margin: 1em 0; 582 padding: 0 .5em;583 506 } 584 507 .part-tabs li a { … … 588 511 #icons p { 589 512 width: 9em; 590 padding: 1em .25em;591 513 } 592 514 .media-item { … … 601 523 .box.current-theme { 602 524 margin: 5px; 603 padding: 10px;604 525 width: 100%; 605 526 } … … 612 533 min-width: 14em; 613 534 } 614 th,615 td {616 padding: 0.3em 1em 0.3em 0;617 }618 535 .pseudo-tabs li { 619 536 display: block; 620 537 width: 100%; 621 538 float: none; 622 border-top: 1px solid #ddd !important; 623 } 624 .pseudo-tabs li:first-child { 625 border-top: none; 626 } 627 } 539 } 540 } -
admin/style/scss/partials/_plugins.scss
r3355 r3365 50 50 .modules tr.expand td:first-child { 51 51 font-weight: bold; 52 background: # DFE5E7;52 background: #dfe5e7; 53 53 } 54 54 -
admin/style/scss/partials/_tables.scss
r3355 r3365 37 37 38 38 tr.line input[type=text] { 39 background: # FFF;39 background: #fff; 40 40 } 41 41
Note: See TracChangeset
for help on using the changeset viewer.