fix css form registration

pull/2480/head
Alex Aragón 8 years ago
parent 72ef121a36
commit 36d5c6e70f
  1. 155
      app/Resources/public/css/base.css
  2. 2
      main/auth/inscription.php
  3. 2
      main/inc/lib/legal.lib.php
  4. 2
      main/template/default/layout/footer.js.tpl

@ -5292,7 +5292,162 @@ div#chat-remote-video video {
font-weight: bold; font-weight: bold;
margin-bottom: 25px; margin-bottom: 25px;
} }
/*************** SCROLLBAR BASE CSS ***************/
.scroll-wrapper {
overflow: hidden !important;
padding: 0 !important;
position: relative;
height: 300px;
}
.scroll-wrapper > .scroll-content {
border: none !important;
box-sizing: content-box !important;
height: auto;
left: 0;
margin: 0;
max-height: none;
max-width: none !important;
overflow: scroll !important;
padding: 0;
position: relative !important;
top: 0;
width: auto !important;
}
.scroll-wrapper > .scroll-content::-webkit-scrollbar {
height: 0;
width: 0;
}
.scroll-element {
display: none;
}
.scroll-element, .scroll-element div {
box-sizing: content-box;
}
.scroll-element.scroll-x.scroll-scrollx_visible,
.scroll-element.scroll-y.scroll-scrolly_visible {
display: block;
}
.scroll-element .scroll-bar,
.scroll-element .scroll-arrow {
cursor: default;
}
.scroll-textarea {
border: 1px solid #cccccc;
border-top-color: #999999;
}
.scroll-textarea > .scroll-content {
overflow: hidden !important;
}
.scroll-textarea > .scroll-content > textarea {
border: none !important;
box-sizing: border-box;
height: 100% !important;
margin: 0;
max-height: none !important;
max-width: none !important;
overflow: scroll !important;
outline: none;
padding: 2px;
position: relative !important;
top: 0;
width: 100% !important;
}
.scroll-textarea > .scroll-content > textarea::-webkit-scrollbar {
height: 0;
width: 0;
}
/*************** SIMPLE INNER SCROLLBAR ***************/
.scrollbar-inner > .scroll-element,
.scrollbar-inner > .scroll-element div
{
border: none;
margin: 0;
padding: 0;
position: absolute;
z-index: 10;
}
.scrollbar-inner > .scroll-element div {
display: block;
height: 100%;
left: 0;
top: 0;
width: 100%;
}
.scrollbar-inner > .scroll-element.scroll-x {
bottom: 2px;
height: 8px;
left: 0;
width: 100%;
}
.scrollbar-inner > .scroll-element.scroll-y {
height: 100%;
right: 2px;
top: 0;
width: 8px;
}
.scrollbar-inner > .scroll-element .scroll-element_outer {
overflow: hidden;
}
.scrollbar-inner > .scroll-element .scroll-element_outer,
.scrollbar-inner > .scroll-element .scroll-element_track,
.scrollbar-inner > .scroll-element .scroll-bar {
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
}
.scrollbar-inner > .scroll-element .scroll-element_track,
.scrollbar-inner > .scroll-element .scroll-bar {
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
filter: alpha(opacity=40);
opacity: 0.4;
}
.scrollbar-inner > .scroll-element .scroll-element_track { background-color: #e0e0e0; }
.scrollbar-inner > .scroll-element .scroll-bar { background-color: #c2c2c2; }
.scrollbar-inner > .scroll-element:hover .scroll-bar { background-color: #919191; }
.scrollbar-inner > .scroll-element.scroll-draggable .scroll-bar { background-color: #919191; }
/* update scrollbar offset if both scrolls are visible */
.scrollbar-inner > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_track { left: -12px; }
.scrollbar-inner > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_track { top: -12px; }
.scrollbar-inner > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_size { left: -12px; }
.scrollbar-inner > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_size { top: -12px; }
/* FORM REGISTER */ /* FORM REGISTER */
.terms-conditions{
padding: 15px 10px;
background-color: #DDD;
margin-bottom: 10px;
border-radius: 5px;
border: 1px solid #ccc;
}
.help-registration{
background-color: #ececec;
box-shadow: none;
}
#registration #status .radio{ #registration #status .radio{
display: inline-block; display: inline-block;

@ -481,7 +481,7 @@ if (file_exists($home.'register_top_'.$user_selected_language.'.html')) {
$open = str_replace('{rel_path}', api_get_path(REL_PATH), $home_top_temp); $open = str_replace('{rel_path}', api_get_path(REL_PATH), $home_top_temp);
$open = api_to_system_encoding($open, api_detect_encoding(strip_tags($open))); $open = api_to_system_encoding($open, api_detect_encoding(strip_tags($open)));
if (!empty($open)) { if (!empty($open)) {
$content = '<div class="well well-lg">'.$open.'</div>'; $content = '<div class="well well-sm help-registration">'.$open.'</div>';
} }
} }

@ -215,7 +215,7 @@ class LegalManager
switch ($term_preview['type']) { switch ($term_preview['type']) {
case 0: case 0:
if (!empty($term_preview['content'])) { if (!empty($term_preview['content'])) {
$preview = '<div class="legal-terms">'.$term_preview['content'].'</div><br />'; $preview = '<div class="terms-conditions"><div id="legal-terms" class="scrollbar-inner">'.$term_preview['content'].'</div></div>';
} }
$preview .= get_lang('ByClickingRegisterYouAgreeTermsAndConditions'); $preview .= get_lang('ByClickingRegisterYouAgreeTermsAndConditions');
$courseInfo = api_get_course_info(); $courseInfo = api_get_course_info();

@ -11,6 +11,8 @@
}); });
}); });
$('.scrollbar-inner').scrollbar();
// Date time settings. // Date time settings.
moment.locale('{{ locale }}'); moment.locale('{{ locale }}');
$.datepicker.setDefaults($.datepicker.regional["{{ locale }}"]); $.datepicker.setDefaults($.datepicker.regional["{{ locale }}"]);

Loading…
Cancel
Save