Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Feb 3, 2020
1 parent 9f6504b commit 084df75
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 34 deletions.
3 changes: 2 additions & 1 deletion Packing/Spec/0SpecContainer/.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ const fix_element = (page)=>{

copy_button.reset_right = ()=>{
pre_st = get_style(pre);
let x = pre.getBoundingClientRect().right - (window.innerWidth-7.5);
let container = document.getElementById("page-display-container");
let x = pre.getBoundingClientRect().right - (container.getBoundingClientRect().left+container.clientWidth);
if (x<0) x = 0; else
{
let max_x = pre.getBoundingClientRect().width - copy_button.getBoundingClientRect().width;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
body {
background-color: #F0F0F0;
margin: 0px;
overflow: hidden;
overflow: hidden;
}

.page-base {
Expand Down Expand Up @@ -102,19 +102,19 @@

margin: 0;

position: relative;
position: relative;
}
.code-block-copier {
cursor: pointer;
padding: 2px;
padding: 2px;

position: absolute;
top: 0;
position: absolute;
top: 0;

border: thin solid;
border-radius: 3.7px 0px 3.7px 3.7px;
box-shadow: -2px 2px 3px #0000004a;
background: linear-gradient(0deg, #f0f0f0, white);
border: thin solid;
border-radius: 3.7px 0px 3.7px 3.7px;
box-shadow: -2px 2px 3px #0000004a;
background: linear-gradient(0deg, #f0f0f0, white);
}
.inline-code {
background: #F0F0F0;
Expand Down Expand Up @@ -640,7 +640,6 @@

if (code.parentElement.tagName == "PRE")
{

let pre = code.parentElement;
pre.className = 'code-block';

Expand Down Expand Up @@ -675,7 +674,8 @@

copy_button.reset_right = ()=>{
pre_st = get_style(pre);
let x = pre.getBoundingClientRect().right - (window.innerWidth-7.5);
let container = document.getElementById("page-display-container");
let x = pre.getBoundingClientRect().right - (container.getBoundingClientRect().left+container.clientWidth);
if (x<0) x = 0; else
{
let max_x = pre.getBoundingClientRect().width - copy_button.getBoundingClientRect().width;
Expand Down
22 changes: 11 additions & 11 deletions Packing/Spec/Справка OpenCLABC.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
body {
background-color: #F0F0F0;
margin: 0px;
overflow: hidden;
overflow: hidden;
}

.page-base {
Expand Down Expand Up @@ -102,19 +102,19 @@

margin: 0;

position: relative;
position: relative;
}
.code-block-copier {
cursor: pointer;
padding: 2px;
padding: 2px;

position: absolute;
top: 0;
position: absolute;
top: 0;

border: thin solid;
border-radius: 3.7px 0px 3.7px 3.7px;
box-shadow: -2px 2px 3px #0000004a;
background: linear-gradient(0deg, #f0f0f0, white);
border: thin solid;
border-radius: 3.7px 0px 3.7px 3.7px;
box-shadow: -2px 2px 3px #0000004a;
background: linear-gradient(0deg, #f0f0f0, white);
}
.inline-code {
background: #F0F0F0;
Expand Down Expand Up @@ -640,7 +640,6 @@

if (code.parentElement.tagName == "PRE")
{

let pre = code.parentElement;
pre.className = 'code-block';

Expand Down Expand Up @@ -675,7 +674,8 @@

copy_button.reset_right = ()=>{
pre_st = get_style(pre);
let x = pre.getBoundingClientRect().right - (window.innerWidth-7.5);
let container = document.getElementById("page-display-container");
let x = pre.getBoundingClientRect().right - (container.getBoundingClientRect().left+container.clientWidth);
if (x<0) x = 0; else
{
let max_x = pre.getBoundingClientRect().width - copy_button.getBoundingClientRect().width;
Expand Down
22 changes: 11 additions & 11 deletions Packing/Spec/Справка OpenGLABC.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
body {
background-color: #F0F0F0;
margin: 0px;
overflow: hidden;
overflow: hidden;
}

.page-base {
Expand Down Expand Up @@ -102,19 +102,19 @@

margin: 0;

position: relative;
position: relative;
}
.code-block-copier {
cursor: pointer;
padding: 2px;
padding: 2px;

position: absolute;
top: 0;
position: absolute;
top: 0;

border: thin solid;
border-radius: 3.7px 0px 3.7px 3.7px;
box-shadow: -2px 2px 3px #0000004a;
background: linear-gradient(0deg, #f0f0f0, white);
border: thin solid;
border-radius: 3.7px 0px 3.7px 3.7px;
box-shadow: -2px 2px 3px #0000004a;
background: linear-gradient(0deg, #f0f0f0, white);
}
.inline-code {
background: #F0F0F0;
Expand Down Expand Up @@ -640,7 +640,6 @@

if (code.parentElement.tagName == "PRE")
{

let pre = code.parentElement;
pre.className = 'code-block';

Expand Down Expand Up @@ -675,7 +674,8 @@

copy_button.reset_right = ()=>{
pre_st = get_style(pre);
let x = pre.getBoundingClientRect().right - (window.innerWidth-7.5);
let container = document.getElementById("page-display-container");
let x = pre.getBoundingClientRect().right - (container.getBoundingClientRect().left+container.clientWidth);
if (x<0) x = 0; else
{
let max_x = pre.getBoundingClientRect().width - copy_button.getBoundingClientRect().width;
Expand Down

0 comments on commit 084df75

Please sign in to comment.