Skip to content

Commit

Permalink
Merge branch 'main' into release/0.2 and bumping to 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Jan 24, 2022
2 parents 5a251e9 + 39af76c commit 2002b88
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
retention-days: 7

- name: Deploy to gh-pages
if: github.ref == 'refs/heads/main'
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion pyansys_sphinx_theme/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""

# major, minor, patch
version_info = 0, 2, 0
version_info = 0, 2, 1

# Nice string for the version
__version__ = '.'.join(map(str, version_info))
255 changes: 252 additions & 3 deletions pyansys_sphinx_theme/static/css/theme.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* Provided by the Sphinx base theme template at build time */
@import "../basic.css";
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@600&display=swap');


@font-face {
font-family: "Source Sans Pro Light";
Expand All @@ -11,7 +13,6 @@
src: url(../fonts/SourceSansPro-Regular.ttf);
}


:root {
/* Ansys colors */
--ansysGold: 255, 183, 27; /* #FFB71B */
Expand Down Expand Up @@ -143,8 +144,9 @@

.docutils {
color: #C89211;
font-family: "Source Code Pro", "Courier New", monospace;
font-family: 'Inconsolata';
font-weight: bold;
font-size: 15.5px;
}

.sig-prename {
Expand All @@ -154,7 +156,7 @@

.sig-name.descname {
color: #C89211;
/* font-family: 'Source Sans Pro', sans-serif; */
/* font-family: ' Source Sans Pro', sans-serif; */
}

.sig-name {
Expand All @@ -166,3 +168,250 @@
i.fa-github-square:before {
color: #ffffff !important;
}

/* Increase empty-space around classes, methods, properties, etc. that are descendants
of other items */
dl.class dl.py {
margin-top: 2.5em;
margin-bottom: 2.5em;
}

/* Reduce empty-space around Notes and Examples headings */
p.rubric {
margin-top: 0.75em;
margin-bottom: 0.75em;
}



/*
###############
table
###############
*/

table {
width:100%;
max-width: 100%;
border-spacing: 0;
border-collapse: collapse;
overflow: hidden;
vertical-align: middle;

/* Disabling scroll bars */
overflow-y: scroll;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
}

tr {
background-color: white;
}

th {
background-color: rgb(255, 183, 27, 0.55);
}

tr:nth-child(odd){
background-color: white;
}

tr:nth-child(even){
background-color: rgb(255, 183, 27, 0.15);
}

/*
#####################
Table-centered
#####################
Same as table but with horizontally centered text.
Use as:
.. table::
:class: table-centered
+---------------------------+-------------------+
| | MAPDL Command |
+===========================+===================+
| **GUI commands** | * ``*ASK`` |
| +-------------------+
| ...
| ...
*/
table.table-centered {
width:100%;
max-width: 100%;
border-spacing: 0;
border-collapse: collapse;
overflow: hidden;
vertical-align: middle;
text-align: center;

/* Disabling scroll bars */
overflow-y: scroll;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
}

.table-centered tr {
background-color: white;
text-align: center;
}

.table-centered th {
background-color: rgb(255, 183, 27, 0.55);
text-align: center;
}

.table-centered tr:nth-child(odd){
text-align: center;
background-color: white;
}

.table-centered tr:nth-child(even){
background-color: rgb(255, 183, 27, 0.15);
text-align: center;
}


/*
###############
longtable
###############
*/

table.longtable tr:hover td {
background-color: rgb(255, 183, 27, 0.6);
}

/*
#########################
longtable-centered
#########################
Use as:
.. table::
:class: longtable-centered
+---------------------------+-------------------+
| | MAPDL Command |
+===========================+===================+
| **GUI commands** | * ``*ASK`` |
| +-------------------+
| ...
| ...
*/

table.longtable-centered {
text-align: center;
}

.longtable-centered tr {
text-align: center;
}

.longtable-centered th {
text-align: center;
}

.longtable-centered tr:nth-child(odd){
text-align: center;
}

.longtable-centered tr:nth-child(even){
text-align: center;
}

table.longtable-centered tr:hover td {
background-color: rgb(255, 183, 27, 0.6);
text-align: center;
}

/*
##############
DataFrame
##############
Not sure why the odd columns (white) are rendered gray.
I do not think we will be able to call this class.
*/

.dataframe tr{
background-color: white;
}

.dataframe tr:nth-child(odd){
background-color: white !important;
}

.dataframe tr:nth-child(even){
background-color: rgb(255, 183, 27, 0.15);
}

.dataframe tr:hover td {
background-color: rgb(255, 183, 27, 0.6);
}


/*
#########################
DataFrame-centered
#########################
Not sure why the odd columns (white) are rendered gray.
I do not think we will be able to call this class.
*/

.dataframe-centered tr{
background-color: white;
text-align: center;
}

.dataframe-centered tr:nth-child(odd){
background-color: white !important;
text-align: center;
}

.dataframe-centered tr:nth-child(even){
background-color: rgb(255, 183, 27, 0.15);
text-align: center;
}

.dataframe-centered tr:hover td {
background-color: rgb(255, 183, 27, 0.6);
text-align: center;
}

.dataframe thead th {
text-align: center;
}



/*
###############
Autosummary
###############
*/
/* .autosummary {
text-align: left;
} */

.autosummary tr:nth-child(odd){
background-color: white;
}

.autosummary tr:nth-child(even){
background-color: white;
}




0 comments on commit 2002b88

Please sign in to comment.