/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

@import "base/environment";

body.ic-full-screen-lti-tool .tool_content_wrapper {
  // Full-width external tools
  // are 100% height. This stops the body from
  // throwing vertical scrollbars
  overflow-y: hidden;
  // Full-width external tools hide footer, so
  // we know iframe container height can stay 100vh
  height: 100vh;
}

#footer {
  display: none;
}

iframe#tool_content {
  margin-bottom: -10px;
}

/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

@import "base/environment";

body.ic-full-screen-lti-tool .tool_content_wrapper {
  // Full-width external tools hide footer, so
  // we know iframe container height can stay 100vh
  height: 100vh;
}

#footer {
  display: none;
}

iframe#tool_content {
  margin-bottom: -10px;
}

Fix scrolling of external tools on iPads
Fix scrolling of external tools on iPads

Scrolling of external tools was broken on iPads due to this
"overflow-y: hidden" CSS rule.

Test plan
* Open Commons on an iPad
* Scrolling the page should work

Fixes CM-931

Change-Id: I6739fbb3a16e6d9d30c76733a8d34b491ee2d8dc
Reviewed-on: https://gerrit.instructure.com/207331
Tested-by: Jenkins
Reviewed-by: Jacob Burroughs <8ecea6e385af5cf9f53123f5ca17fb5fd6a6d4b2@instructure.com>
Reviewed-by: Weston Dransfield <e9203059795dc94e28a8831c65eb7869e818825e@instructure.com>
QA-Review: Weston Dransfield <e9203059795dc94e28a8831c65eb7869e818825e@instructure.com>
Product-Review: Jozsef Kozma <bf21f698be2bf01591fc3ec2dfc1ff497c25bc30@instructure.com>
